Opened 12 years ago

Last modified 6 years ago

#37107 new defect

R.app crashes when trying to load tk@8.5.13_0+quartz

Reported by: andrekw@… Owned by: kjellpk (Kjell Konis)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: cooljeanius (Eric Gallager), chrstphrchvz (Christopher Chavez)
Port: tk R-app R-framework

Description

Starting with a blank macports install, I installed R.app and its dependencies. The application crashes when trying to load the tk library, which was installed with quartz enabled and x11 disabled by default. Reinstalling tk and forcing the +x11 variant to be used fixes the issue.

Change History (8)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to kjell.konis@…

comment:2 Changed 12 years ago by jmroot (Joshua Root)

Can you attach the crash log?

comment:3 Changed 12 years ago by kjellpk (Kjell Konis)

Maintainer here: this is a well-known issue with R and quartz tcltk. The work around is to use X11 tcltk.

comment:4 Changed 12 years ago by kjellpk (Kjell Konis)

I submitted a patch to #35845 that removes tcltk from the default variants. Unfortunately this is the best short-term resolution I can think of.

comment:5 Changed 12 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:6 Changed 12 years ago by larryv (Lawrence Velázquez)

Port: R-framework added

I removed +tcltk from the default variants of R-framework in r103614.

comment:7 Changed 6 years ago by chrstphrchvz (Christopher Chavez)

Note that R-framework has been removed, and R would be a relevant port for this ticket.

If the tk +x11 workaround is still required, then I can open a pull request for R to add the following:

+PortGroup active_variants 1.1

[…]

 variant tcltk description {enable use of tcltk} {
+    # Known crash with Tk Aqua, see https://trac.macports.org/ticket/37107#comment:3
+    require_active_variants tk x11 quartz
+
     depends_lib-append      port:tcl \
                             port:tk
     configure.args-delete   --without-tcltk
     configure.args-append   --with-tcltk \
                             --with-tcl-config=${prefix}/lib/tclConfig.sh \
                             --with-tk-config=${prefix}/lib/tkConfig.sh
 }

comment:8 Changed 6 years ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added
Note: See TracTickets for help on using tickets.