Hi, Thanks for your insight. I got the GTK warning when I try to perform an action with the Rattle GUI (v2.5.30), for example loading data. The problem is that this error obviously prevents the program to run. I found many users reporting this issue but no one seems to have a clue.
You're certainly a very advanced user with some kind of custom install of R. As you can use rattle you should certainly have something I don't. Cheers, Morgan ----Message d'origine---- De: simon.urba...@r-project.org Date: 04.05.2010 16:44 À: <spont...@bluewin.ch> Copie: <r-sig-...@stat. math.ethz.ch> Objet: Re: [R-SIG-Mac] R2.11 Rattle & Co Morgan, On May 4, 2010, at 3:12 AM, Morgan wrote: > Dear fellow R and Mac users, > > I try to promote open source tools for practicals with my students, but I > have some issues with the installation of Rattle (great GUI for data mining) on Mac OSX computers (10.6.3 | X11). > I'm trying to install it since last week without any success. I need it up and running in a short future that's why I request your help. > > I followed the official installation procedure: > http://datamining.togaware.com/survivor/Install_Macintosh.html Just as a side note - that is not a good idea - external docs are unfortunately very often wrong and/or out of date. Please consult canonical sources instead. > 1) Download and install GTK+ (25MB) from: > http://r.research.att.com/gtk2-framework.dmg That is the wrong download for R 2.11.0 as you would see on the canonical page: http://r.research.att.com/ > 2) Download and install GGobi (5MB) from: > http://www.ggobi.org/downloads/ggobi-2.1.8.dmg> 3) Installed R2.11(latest) | gfortran 4.2.3 | tcltk-8.5.5-x11 + updated all packages > 4) install.packages("rattle", dependencies=c("Depends", "Suggests")) > > When loading Rattle, it asked for a newer GTK so I installed (on my > initiative) GTK+ 2.18.5 framework I found at: http://R.research.att.com/libs/GTK_2.18.5-X11.pkg> Alright now I can load Rattle but it doesn't work at all, it keeps returning errors of two different kinds: > 1) > Tue May 4 08:43:24 COMPUTER.unil.ch R[379] <Error>: CGContextSetFont: invalid context 0x0 > Tue May 4 08:43:24 COMPUTER.unil.ch R[379] <Error>: CGContextSetFontSize: invalid context 0x0 > .......The list is much longer but always concerns CGContext something AFAICT this is just benign error from rattle/RGtk2 - it's probably trying to draw something before the window is ready. The stack trace is attached in case the maintainers want to have a look. It does not affect the usability AFAICT. > 2) ( R:2190): Gtk- WARNING **: Unable to find default local directory monitor type( R:2190): Gtk-WARNING **: Unable to find default local directory monitor type > Again, this is merely a warning - GTK+ does produce spurious warnings quite regularly. This time I can't seem to be able to reproduce this one. Cheers, Simon --- Breakpoint 1, 0x00007fff824f7557 in CGContextSetFont () (gdb) bt #0 0x00007fff824f7557 in CGContextSetFont () #1 0x00000001030ec313 in _cairo_quartz_font_scaled_glyph_init () #2 0x00000001030c766d in _cairo_scaled_glyph_lookup () #3 0x00000001030e36d4 in _cairo_xlib_surface_show_glyphs () #4 0x00000001030cae99 in _cairo_surface_show_text_glyphs () #5 0x00000001030b6555 in _cairo_gstate_show_text_glyphs () #6 0x00000001030aeb56 in cairo_show_glyphs () #7 0x0000000103095941 in pango_cairo_renderer_show_text_glyphs () #8 0x0000000103095cef in pango_cairo_renderer_draw_glyphs () #9 0x000000010319df2d in pango_renderer_draw_glyphs () #10 0x000000010309476a in _pango_cairo_do_glyph_string () #11 0x000000010319df2d in pango_renderer_draw_glyphs () #12 0x000000010319e612 in pango_renderer_draw_layout_line () #13 0x000000010319eab5 in pango_renderer_draw_layout () #14 0x00000001015baef1 in gdk_draw_layout_with_colors () #15 0x00000001015bb0d6 in gdk_draw_layout () #16 0x0000000102c20f41 in gtk_default_draw_layout () #17 0x0000000102b993f4 in gtk_label_expose () #18 0x0000000102ba886f in _gtk_marshal_BOOLEAN__BOXED () #19 0x00000001032cf7af in g_closure_invoke () #20 0x00000001032e54a4 in signal_emit_unlocked_R () #21 0x00000001032e6ae5 in g_signal_emit_valist () #22 0x00000001032e7234 in g_signal_emit () #23 0x0000000102cb179e in gtk_widget_event_internal () #24 0x0000000102b1ee3d in gtk_container_propagate_expose () #25 0x0000000102b1f9a8 in gtk_container_expose () #26 0x0000000102ba886f in _gtk_marshal_BOOLEAN__BOXED () #27 0x00000001032cf7af in g_closure_invoke () #28 0x00000001032e54a4 in signal_emit_unlocked_R () #29 0x00000001032e6ae5 in g_signal_emit_valist () #30 0x00000001032e7234 in g_signal_emit () #31 0x0000000102cb179e in gtk_widget_event_internal () #32 0x0000000102b1ee3d in gtk_container_propagate_expose () #33 0x0000000102aefceb in gtk_box_forall () #34 0x0000000102b1f9a8 in gtk_container_expose () #35 0x0000000102ba886f in _gtk_marshal_BOOLEAN__BOXED () #36 0x00000001032cf7af in g_closure_invoke () #37 0x00000001032e54a4 in signal_emit_unlocked_R () #38 0x00000001032e6ae5 in g_signal_emit_valist () #39 0x00000001032e7234 in g_signal_emit () #40 0x0000000102cb179e in gtk_widget_event_internal () #41 0x0000000102b1ee3d in gtk_container_propagate_expose () #42 0x0000000102b1f9a8 in gtk_container_expose () #43 0x0000000102af6531 in gtk_button_expose () #44 0x0000000102ba886f in _gtk_marshal_BOOLEAN__BOXED () #45 0x00000001032cf7af in g_closure_invoke () #46 0x00000001032e54a4 in signal_emit_unlocked_R () #47 0x00000001032e6ae5 in g_signal_emit_valist () #48 0x00000001032e7234 in g_signal_emit () #49 0x0000000102cb179e in gtk_widget_event_internal () #50 0x0000000102b1ee3d in gtk_container_propagate_expose () #51 0x0000000102ca07ae in gtk_tree_view_expose () #52 0x0000000102ba886f in _gtk_marshal_BOOLEAN__BOXED () #53 0x00000001032cf6d2 in g_closure_invoke () #54 0x00000001032e54a4 in signal_emit_unlocked_R () #55 0x00000001032e6ae5 in g_signal_emit_valist () #56 0x00000001032e7234 in g_signal_emit () #57 0x0000000102cb179e in gtk_widget_event_internal () #58 0x0000000102ba285f in gtk_main_do_event () #59 0x00000001015d1baa in _gdk_window_process_updates_recurse () #60 0x00000001015d1bea in _gdk_window_process_updates_recurse () #61 0x00000001015d1bea in _gdk_window_process_updates_recurse () #62 0x00000001015cdad5 in gdk_window_process_updates_internal () #63 0x00000001015cfd21 in gdk_window_process_all_updates () #64 0x0000000102b1fb41 in gtk_container_idle_sizer () #65 0x00000001015ad629 in gdk_threads_dispatch () #66 0x0000000103355087 in g_main_context_dispatch () #67 0x00000001033586d0 in g_main_context_iterate () #68 0x0000000103358bc3 in g_main_context_iteration () #69 0x0000000102ba28a5 in gtk_main_iteration_do () #70 0x00000001028dd046 in S_gtk_main_iteration_do () #71 0x000000010007a08b in do_dotcall () #72 0x000000010009dd6c in Rf_eval () #73 0x000000010009fbc5 in do_set () #74 0x000000010009db8c in Rf_eval () #75 0x00000001000a2894 in do_begin () #76 0x000000010009db8c in Rf_eval () #77 0x00000001000a04d4 in Rf_applyClosure () #78 0x000000010009daa2 in Rf_eval () #79 0x000000010009fbc5 in do_set () #80 0x000000010009db8c in Rf_eval () #81 0x00000001000a2894 in do_begin () #82 0x000000010009db8c in Rf_eval () #83 0x00000001000a04d4 in Rf_applyClosure () #84 0x000000010009daa2 in Rf_eval () #85 0x000000010009ee16 in do_while () #86 0x000000010009db8c in Rf_eval () #87 0x00000001000a2894 in do_begin () #88 0x000000010009db8c in Rf_eval () #89 0x00000001000a04d4 in Rf_applyClosure () #90 0x000000010009daa2 in Rf_eval () #91 0x00000001000a2894 in do_begin () #92 0x000000010009db8c in Rf_eval () #93 0x00000001000a04d4 in Rf_applyClosure () #94 0x000000010009daa2 in Rf_eval () #95 0x00000001000ce228 in Rf_ReplIteration () #96 0x00000001000ce521 in R_ReplConsole () #97 0x00000001000cea30 in run_Rmainloop () #98 0x0000000100000eeb in main () > I addressed these to the developer but he's not a Mac user and has no idea of a workaround and suggested me to write this email. > Do someone have an idea to solve these issues or can someone try to install > it and tell me the outcome? Any help, hint would be much appreciated so we can keep using Mac and open source applications at my university. > Kind Regards, > MorganUniversité de Lausanne > > > > > [[alternative HTML version deleted]] > > _______________________________________________ > R-SIG-Mac mailing list > R-SIG-Mac@stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/r-sig-mac _______________________________________________ R-SIG-Mac mailing list R-SIG-Mac@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-mac