[Kde-bindings] [bindings] [Bug 340977] New: [qtruby]Qt::WebView crashed due to threading issues (with confirmed fixes in qtbindings)
margueritesu
i at marguerite.su
Sat Nov 15 06:59:27 UTC 2014
https://bugs.kde.org/show_bug.cgi?id=340977
Bug ID: 340977
Summary: [qtruby]Qt::WebView crashed due to threading issues
(with confirmed fixes in qtbindings)
Product: bindings
Version: unspecified
Platform: openSUSE RPMs
OS: Linux
Status: UNCONFIRMED
Severity: crash
Priority: NOR
Component: general
Assignee: kde-bindings at kde.org
Reporter: i at marguerite.su
Created attachment 89591
--> https://bugs.kde.org/attachment.cgi?id=89591&action=edit
full error log
Hi,
My ruby version is 2.1.4 and qtruby version 4.14.3. (latest I think)
When I ran a sample script like this:
#!/usr/bin/ruby
require 'Qt'
require 'qtwebkit'
app = Qt::Application.new(ARGV)
web = Qt::WebView.new
web.load Qt::Url.new('http://www.baidu.com/')
web.resize 1024, 640
web.show
app.exec
it crashed randomly (sometimes crash at startup, sometime crash after clicking
one or two links)
The error output is (part of, it's too long for one comment):
/usr/lib64/ruby/site_ruby/2.1.0/Qt/qtruby4.rb:469: [BUG]
vm_call0_cfunc_with_frame: cfp consistency error
ruby 2.1.4p265 (2014-10-27 revision 48166) [x86_64-linux-gnu]
-- Control frame information -----------------------------------------------
c:0005 p:---- s:0015 e:000014 CFUNC :respond_to_missing?
c:0004 p:---- s:0013 e:000012 CFUNC :method_missing
c:0003 p:0009 s:0009 e:000008 METHOD
/usr/lib64/ruby/site_ruby/2.1.0/Qt/qtruby4.rb:469
c:0002 p:0097 s:0006 E:0012a8 EVAL ./test_Webview.rb:10 [FINISH]
c:0001 p:0000 s:0002 E:002408 TOP [FINISH]
-- Ruby level backtrace information ----------------------------------------
./test_Webview.rb:10:in `<main>'
/usr/lib64/ruby/site_ruby/2.1.0/Qt/qtruby4.rb:469:in `exec'
/usr/lib64/ruby/site_ruby/2.1.0/Qt/qtruby4.rb:469:in `method_missing'
/usr/lib64/ruby/site_ruby/2.1.0/Qt/qtruby4.rb:469:in `respond_to_missing?'
This is the same behaviour as https://github.com/ryanmelt/qtbindings/issues/51
describes.
Its comments indicates that this is a threading issue and qtbindings after
4.8.5.1 (it follows Qt version) doesn't have this problem.
I think these commits might help:
https://github.com/ryanmelt/qtbindings/commit/ffb3c6a664ba9cfb30e7f5fd1cbcb63212880d1a#diff-8
https://github.com/ryanmelt/qtbindings/commit/40deaa0cb3cfe99b43eca2c52cfc2a0c9aa63f2f
But they mixed stuff in one commits, so I'm not able to tell which codes
resolved the issue or even provide a patch.
Can you please take a look at this and port this into qtruby? (the fix exists
for 11 months, so I think it's pretty stable)
Thanks
Marguerite
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kde-bindings
mailing list