Summary: | FIXED IN SVN: X11 ONLY: crash/hang when using Gtk2 packages | ||
---|---|---|---|
Product: | [Applications] rkward | Reporter: | RKWard Team <rkward-devel> |
Component: | general | Assignee: | RKWard Team <rkward-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | All | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
RKWard Team
2008-01-23 23:37:17 UTC
Logged In: YES user\_id=300591 Originator: NO I see the same issue \(also on Debian, but downloaded RGtk2 from CRAN via R\). The issue is not 100% reproducible, but perhaps 98% so. If you run > Sys.setenv \(DISPLAY=":0.123412"\) > library \(RGtk2\) there is no hang, but RGtk2 complains about failing to initialize. Now do > gdkDisplayOpen\(":0.0"\) and you get the hang, again, so this is where the problem is at. Somehow the issue seems to be that RGtk2 \(running in the "R thread" in RKWard\) tries to talk to the X server concurrently with Qt. However, I don't really understand, why this should be a problem, since RGtk2 should use its own XDisplay/connection, which should be fine, as far as I am aware. Also in RKWard 0.4.9 there is no such problem. Unfortunately, I have no good idea on this at all. Any help will be much appreciated. Starting rkward with \# rkward --sync makes the problem go away most \(but not all\) of the time. The issue has changed somewhat \(without any changes on rkward's side\). library \(RGtk2\) does not hang, now. However, calling gdkDisplayOpen\(":0"\) after that, makes the R thread hang, while the main thread continues. library\(gWidgetsRGtk2\) causes similar symptoms. Any help is still much appreciated. - **summary**: rkward 0.5.0a hangs when loading the RGtk2 package --> 0.5.0x hangs when loading Gtk2 packages Minor update: After a recent fix, on Windows, RGtk2 and friends appear to work fine. On Linux / X11 the situation is unchanged. Debugging indicates that the R thread is stuck waiting in XSync\(\) or \_XReply\(\) \(typically from within gdk\_display\_open\(\)\). - **summary**: 0.5.0x hangs when loading Gtk2 packages --> X11 ONLY: 0.5.0x hangs when loading Gtk2 packages An experimental fix is in SVN: http://p.sf.net/rkward/svn . If you are affected by this problem, please give this a try. - **summary**: X11 ONLY: 0.5.0x hangs when loading Gtk2 packages --> NEEDS TESTING: X11 ONLY: crash/hang when using Gtk2 packages The experimental fix caused troubles, and I have reverted it. Instead, in the SVN version, the R backend now runs in a separate process \(at least by default\). This fixes the incompatiblities with rJava and RGtk2 on X11. Please test\! - **summary**: NEEDS TESTING: X11 ONLY: crash/hang when using Gtk2 packages --> FIXED IN SVN: X11 ONLY: crash/hang when using Gtk2 packages - **status**: open --> open-fixed - **status**: open-fixed --> closed-fixed |