Skip to content

pi_piper with gtk aborts ruby interpreter (RPi Raspbian Stretch) #93

@xetum

Description

@xetum

program:

require 'gtk3'
require 'pi_piper'

win = Gtk::Window.new
win.window_position = :center
win.border_width = 5

win.signal_connect("destroy") { Gtk.main_quit }

pin = PiPiper::Pin.new(pin: 24, direction: :out)

win.show_all
Gtk.main

aborts with:

/var/lib/gems/2.3.0/gems/pi_piper-2.0.0/lib/pi_piper/platform.rb:11: [BUG] Segmentation fault at 0xe92d000e
ruby 2.3.3p222 (2016-11-21) [arm-linux-gnueabihf]

-- Control frame information -----------------------------------------------
c:0006 p:---- s:0020 e:000019 CFUNC  :init
c:0005 p:0031 s:0017 e:000016 METHOD /var/lib/gems/2.3.0/gems/pi_piper-2.0.0/lib/pi_piper/platform.rb:11
c:0004 p:0254 s:0014 e:000013 METHOD /var/lib/gems/2.3.0/gems/pi_piper-2.0.0/lib/pi_piper/pin.rb:56 [FINISH]
c:0003 p:---- s:0010 e:000009 CFUNC  :new
c:0002 p:0083 s:0006 E:001330 EVAL   test_gtk.rb:12 [FINISH]
c:0001 p:0000 s:0002 E:000578 (none) [FINISH]

Tested on RPi 3B+ Raspbian Stretch. Works well on RPi 3B Raspbian Jessie

Any pointers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions