Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

char array isn't initialized #14

Closed
GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment
Closed

char array isn't initialized #14

GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Run the example/pysh.py
2. Create an MEDM panel, with a text entry (with format set to "string") for PV 
"MTEST:COMMAND".
3. Execute.

What is the expected output? What do you see instead?
MEDM text entry widget should display empty string. But instead the following 
error is shown by MEDM,
medmUpdateChannelCb: Bad status [400] for T1:TEST-SYS_STR: No reasonable data 
conversion between client and server types

And on the server side, error is,
filename="../../../../src/cas/generic/casStrmClient.cc" line number=895
No conversion between src & dest types no conversion between event app type=16 
and DBR type=18 Element count=60

Original issue reported on code.google.com by [email protected] on 3 Mar 2015 at 7:41

@GoogleCodeExporter
Copy link
Author

After investigation, the real problem is with empty strings. It causes invalid 
gdd value. The fix is to ensure the string is null terminated and thus 
resulting a valid gdd value. Commit 436aa63248415a2604356d754fbdd21ec8426af0

Original comment by [email protected] on 4 Mar 2015 at 10:05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants