-
Notifications
You must be signed in to change notification settings - Fork 63
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
Segmentation Fault in python3.7 #101
Comments
I also get Segmentation fault while using python 3.6.9. Any ideas as to the source of the issue? |
I'm getting segfaults in both Python 3.5.4 and 3.7.3 Running my code in gdb results in a similar error to that posted above by mikcox:
|
could you try my fork https://github.com/HanYangZhao/python-mercuryapi? I think i have a fix. It's a bug in the invoke_exception_callback with the python GIL |
@HanYangZhao I have tried your fork and the problem persist. There is any different way to use your .start_reading that avoid the Segmentation fault? What I have noticed is: Any suggestions? |
Could you try
If that doesn't work, could you post the actually error running with gdb? |
I have tried to run the program with gdb but I get this error, and I cannot get a meaningful error log from the program.
My program is very simple:
Usually I get segmentation fault as soon multiple tags get read at the same time, very quickly. |
Ok try these suggestions
I don't think your problem is related to the original problem, so if you can create a separate issue it would be appreciated. Hope that helps |
Hello!
First off, thanks a ton for this library. I've been using it extensively and it's saved us a ton of time!
I recently ran into an issue on a new application where I need to be running python3.7. It seems that things work okay to install python-mercuryapi via pip3 / python3.7, but while running my actual reader script with python3.7 I get a Segmentation Fault.
For this project, I'm on a raspberry pi running Raspbian Stretch.
My code is roughly the following:
Debugging my script with
gdb python3
gives me the following insight:Interestingly, the exact same script works fine if I run it using python3.5. I've also tried running it using python2.7, but because of the issue described in #28 (which I think should be reopened now after ef5bff9, by the way) I'm not able to run it with python2.7 yet either.
Do you have any insight as to why we might be hitting a segfault in python3.7 only?
The text was updated successfully, but these errors were encountered: