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

Save dialog crashes on Ubuntu 13.10 #118

Open
knewter opened this issue Nov 28, 2013 · 7 comments
Open

Save dialog crashes on Ubuntu 13.10 #118

knewter opened this issue Nov 28, 2013 · 7 comments
Labels

Comments

@knewter
Copy link

knewter commented Nov 28, 2013

If I click the 'Save' button from the main interface, kidsruby crashes in Ubuntu 13.10.

@hunterboerner
Copy link
Contributor

Is there some sort of log you could give us?

@knewter
Copy link
Author

knewter commented Nov 28, 2013

Oops, didn't even think to run it from the command line to get you a dump. No excuse, I know better than this.

Here you go.

--(jadams@jibbajabba)-(5/pts/4)-(1045/28-Nov-13)--
--($:~)ruby-2.0.0-p247@system-- 
$ kidsruby
QGtkStyle was unable to detect the current GTK+ theme.
/usr/local/kidsruby/app/widgets/main.rb:134: [BUG] Segmentation fault
ruby 1.9.2p320 (2012-04-20 revision 35421) [i686-linux]

-- control frame ----------
c:0009 p:---- s:0026 b:0026 l:000025 d:000025 CFUNC  :method_missing
c:0008 p:0038 s:0024 b:0024 l:000023 d:000023 METHOD /usr/local/kidsruby/app/widgets/main.rb:134
c:0007 p:---- s:0017 b:0017 l:000016 d:000016 FINISH
c:0006 p:---- s:0015 b:0015 l:000014 d:000014 CFUNC  :qt_metacall
c:0005 p:---- s:0013 b:0013 l:000012 d:000012 CFUNC  :method_missing
c:0004 p:0013 s:0009 b:0009 l:000008 d:000008 METHOD /usr/local/kidsruby/vendor/ruby/1.9.1/gems/qtbindings-4.6.3.4/lib/Qt/qtruby4.rb:469
c:0003 p:0128 s:0006 b:0006 l:00064c d:001474 EVAL   /usr/local/kidsruby/main.rb:18
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:00064c d:00064c TOP   
---------------------------
-- Ruby level backtrace information ----------------------------------------
/usr/local/kidsruby/main.rb:18:in `<main>'
/usr/local/kidsruby/vendor/ruby/1.9.1/gems/qtbindings-4.6.3.4/lib/Qt/qtruby4.rb:469:in `exec'
/usr/local/kidsruby/vendor/ruby/1.9.1/gems/qtbindings-4.6.3.4/lib/Qt/qtruby4.rb:469:in `method_missing'
/usr/local/kidsruby/vendor/ruby/1.9.1/gems/qtbindings-4.6.3.4/lib/Qt/qtruby4.rb:469:in `qt_metacall'
/usr/local/kidsruby/app/widgets/main.rb:134:in `saveRubyFile'
/usr/local/kidsruby/app/widgets/main.rb:134:in `method_missing'

-- C level backtrace information -------------------------------------------
/usr/local/kidsruby/ruby/lib/libruby.so.1.9(rb_vm_bugreport+0x72) [0xf7675242]
/usr/local/kidsruby/ruby/lib/libruby.so.1.9(+0x567b7) [0xf754d7b7]
/usr/local/kidsruby/ruby/lib/libruby.so.1.9(rb_bug+0x3a) [0xf754d8aa]
/usr/local/kidsruby/ruby/lib/libruby.so.1.9(+0x10a5e4) [0xf76015e4]
[0xf76ea410]
/usr/local/kidsruby/vendor/dependencies/libQtGui.so.4(_ZNK12QCommonStyle11drawControlEN6QStyle14ControlElementEPK12QStyleOptionP8QPainterPK7QWidget+0x37ad) [0xf6571b4d]
/usr/local/kidsruby/vendor/dependencies/libQtGui.so.4(_ZNK13QWindowsStyle11drawControlEN6QStyle14ControlElementEPK12QStyleOptionP8QPainterPK7QWidget+0x49) [0xf6615b99]
/usr/local/kidsruby/vendor/dependencies/libQtGui.so.4(_ZNK16QCleanlooksStyle11drawControlEN6QStyle14ControlElementEPK12QStyleOptionP8QPainterPK7QWidget+0x462) [0xf65ff782]
/usr/local/kidsruby/vendor/dependencies/libQtGui.so.4(_ZNK9QGtkStyle11drawControlEN6QStyle14ControlElementEPK12QStyleOptionP8QPainterPK7QWidget+0x144) [0xf65d7c54]
/usr/local/kidsruby/vendor/dependencies/libQtGui.so.4(_ZN11QPushButton10paintEventEP11QPaintEvent+0x8b) [0xf66d5c1b]
/usr/local/kidsruby/vendor/dependencies/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent+0x3e6) [0xf627f756]
/usr/local/kidsruby/vendor/dependencies/libQtGui.so.4(_ZN15QAbstractButton5eventEP6QEvent+0x3e) [0xf662c26e]
/usr/local/kidsruby/vendor/dependencies/libQtGui.so.4(_ZN11QPushButton5eventEP6QEvent+0x42) [0xf66d6af2]
/usr/local/kidsruby/vendor/dependencies/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xac) [0xf62214dc]
/usr/local/kidsruby/vendor/dependencies/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x219) [0xf62280b9]
/usr/local/kidsruby/vendor/ruby/1.9.1/gems/qtbindings-4.6.3.4/lib/1.9/libsmokeqtgui.so.3(_ZN12__smokeqtgui14x_QApplication6notifyEP7QObjectP6QEvent+0x77) [0xf57dd49d]
/usr/local/kidsruby/vendor/dependencies/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x7b) [0xf6cceb2b]
/usr/local/kidsruby/vendor/dependencies/libQtGui.so.4(_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x3b6) [0xf6288ac6]
/usr/local/kidsruby/vendor/dependencies/libQtGui.so.4(_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x5a5) [0xf6289905]
/usr/local/kidsruby/vendor/dependencies/libQtGui.so.4(_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x3de) [0xf628973e]
/usr/local/kidsruby/vendor/dependencies/libQtGui.so.4(_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x105) [0xf6288815]
/usr/local/kidsruby/vendor/dependencies/libQtGui.so.4(_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x5a5) [0xf6289905]
/usr/local/kidsruby/vendor/dependencies/libQtGui.so.4(_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x3de) [0xf628973e]
/usr/local/kidsruby/vendor/dependencies/libQtGui.so.4(_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x3de) [0xf628973e]
/usr/local/kidsruby/vendor/dependencies/libQtGui.so.4(_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x3de) [0xf628973e]
/usr/local/kidsruby/vendor/dependencies/libQtGui.so.4(_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore+0x105) [0xf6288815]
/usr/local/kidsruby/vendor/dependencies/libQtGui.so.4(+0x373b00) [0xf645fb00]
/usr/local/kidsruby/vendor/dependencies/libQtGui.so.4(+0x373f8a) [0xf645ff8a]
/usr/local/kidsruby/vendor/dependencies/libQtGui.so.4(_ZN14QWidgetPrivate16syncBackingStoreERK7QRegion+0x62) [0xf6278b72]
/usr/local/kidsruby/vendor/dependencies/libQtGui.so.4(+0x1b9ac8) [0xf62a5ac8]
/usr/local/kidsruby/vendor/dependencies/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0x107a) [0xf62b1f0a]
/usr/local/kidsruby/vendor/dependencies/libQtGui.so.4(+0x1f56fa) [0xf62e16fa]
/lib/i386-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x13e) [0xf4b9383e]
[(nil)]

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

/usr/bin/kidsruby: line 7:  2497 Aborted                 (core dumped) ruby /usr/local/kidsruby/main.rb

@hunterboerner
Copy link
Contributor

What version of KidsRuby are you running?

EDIT: Qt version too.

@hunterboerner
Copy link
Contributor

@deadprogram may know what's going on.

@deadprogram
Copy link
Member

The version of Ruby that KidsRuby currently supports is 1.9.2 p-290. This is due to the Qtbindings gem (https://github.com/ryanmelt/qtbindings) that up until some recent new maintainer activity did not support Ruby 2.0. I see some new commits in that repo, I will try to update to Ruby 2.0 and see what happens... in the meantime, can you try with 1.9.2-p290? I run Ubuntu 13.10 myself, and was not able to repro your issue.

@knewter
Copy link
Author

knewter commented Dec 2, 2013

I modified the kidsruby executable that was installed, changing the last line to:

...
#ruby /usr/local/kidsruby/main.rb
/home/jadams/.rvm/rubies/ruby-1.9.2-p290/bin/ruby /usr/local/kidsruby/main.rb

Then when I try to launch it I get a fun, different segfault:

--(jadams@jibbajabba)-(35/pts/17)-(2318/01-Dec-13)--
--($:~/javascript/highlight.js)(feature/add_elixir_support)ruby-1.9.2-p290-- 
$ kidsruby 
<internal:lib/rubygems/custom_require>:29:in `require': /usr/local/kidsruby/vendor/ruby/1.9.1/gems/qtbindings-4.6.3.4/lib/1.9/qtruby4.so: wrong ELF class: ELFCLASS32 - /usr/local/kidsruby/vendor/ruby/1.9.1/gems/qtbindings-4.6.3.4/lib/1.9/qtruby4.so (LoadError)
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from /usr/local/kidsruby/vendor/ruby/1.9.1/gems/qtbindings-4.6.3.4/lib/Qt4.rb:19:in `<top (required)>'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from /usr/local/kidsruby/vendor/ruby/1.9.1/gems/qtbindings-4.6.3.4/lib/Qt.rb:1:in `<top (required)>'
    from <internal:lib/rubygems/custom_require>:33:in `require'
    from <internal:lib/rubygems/custom_require>:33:in `rescue in require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from /usr/local/kidsruby/main.rb:3:in `<main>'

This is obviously because qtruby4.so is a 32 bit lib, though I don't know why that is exactly. Perhaps there's an easier way to run it on that specific version - not really sure, I don't deal with 'installed' ruby packages basically ever.

@deadprogram
Copy link
Member

I thought you were running from source. This sounds more like a package problem now... @adzankich created the debian installer.

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

No branches or pull requests

3 participants