-
Notifications
You must be signed in to change notification settings - Fork 2
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
MFRC522.new blocks when used on Gtk3 #4
Comments
Sorry, I am not familiar with GUI. I think it's related to I would suggest that you comment out everything in the initializer, and then uncomment one by one to see which one is blocking.
|
It's a bit weird. I'd an old RPi3 B (Raspbian Jessie) with To resume; RPi3 B+ raspbian stretch: mfrc522-2.0.0 pi_piper-2.0.0 it blocks Any ideas? |
How about making them both stretch or jessie? That could be differences in the OS. running jessie on 3B+: https://raspberrypi.stackexchange.com/questions/81725/raspbian-8-on-raspberry-pi-3-b |
Yes, it's |
Replacing It is easy to do so because only 3 methods, ( |
[NOTE: this issue has been solved, please look at the end] ok, I was doing some testing... require 'gtk3' program versions: ruby 2.3.3p222 (2016-11-21) [arm-linux-gnueabihf] hardware: RPi 3B+ Raspbian Stretch comments: -This same program works well on RPi 3B (no plus) Raspbian Jessie
segfault log: test_gtk.rb:15: [BUG] Segmentation fault at 0xe92d000e -- Control frame information ----------------------------------------------- -- Ruby level backtrace information ---------------------------------------- -- Other runtime information -----------------------------------------------
00010000-00011000 r-xp 00000000 b3:02 147846 /usr/bin/ruby2.3 [NOTE] [SOLVED] This is unfortunate because this ruby version is the one which gets installed with sudo apt-get install ruby on RPi Raspbian Stretch. Notice that Raspbian Jessie installs ruby 2.1 and the bug doesn't appear Conclusion: using rvm with ruby 2.5 should be strongly recommended. You can close the ticket. Thanks for your attention |
The last time I tested this gem, I was using ruby 2.3 that comes from Raspbian Stretch on RPi 3(no plus). I thought it was Raspbian Stretch 2017-11-29. |
Which one? gtk3, pi_piper? It's the combination of gtk3 and PiPiper::Bcm2835.init on ruby 2.3.3p222 (2016-11-21) [arm-linux-gnueabihf] which makes the bug arise (and the culprit is the ruby interpreter). It works perfectly well on ruby 2.5 |
OK, I forgot I only used terminal to test it. It's not related to this issue. I'll add a notice for those who want to use with GUI in the readme file. |
reported as a bug: https://bugs.launchpad.net/raspbian/+bug/1803538 |
I'm trying to use mfrc522 with gtk3 on an RPi 3B+ with raspbian stretch. Code is
If I comment
rfid = MFRC522.new
gtk window is displayed. If I uncomment, execution blocks onrfid = MFRC522.new
mfrc522
code on console (without gtk) to read uid works wellThe text was updated successfully, but these errors were encountered: