R 3.0和GTK + / RGTK2错误 [英] R 3.0 and GTK+ / RGTK2 error

查看:816
本文介绍了R 3.0和GTK + / RGTK2错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mountain Lion Mac上安装了R3.0,经过一些试验和错误之后, http://r.research.att.com/ 用于R3.0:GTK + 2.24.17框架。

我将包加载到R3中。 0并运行其中一个演示。我看到(立即)生成了一个图,但是R立即崩溃。
通常当我运行win $ showAll()
(CairoDevice工作没问题)时发生崩溃。
这是生成错误日志的开始(包含我的配置的详细信息)。
Thanks!




 过程:R [2307] 
路径:/Applications/R.app/Contents/MacOS/R
标识符:org.R-project.R
版本:R 3.0.0 GUI 1.60 Snow Leopard build(6476)
代码类型:X86-64(Native)
父进程:launchd [231]
用户ID:501

日期/时间:2013-04-07 23:54:11.976 +0100
操作系统版本:Mac OS X 10.8.3(12D78)
报告版本:10

自上次报告以来的时间间隔:11186秒
每应用程序间隔自上一次报告:1133 sec
自上次报告以来的每次应用程序崩溃:11
匿名UUID:2C9EB7F4-E0B7-FDC4-7300-075C23CD86BB

崩溃的线程:0调度队列:com .apple.main-thread
$ b $异常类型:EXC_CRASH(SIGABRT)
异常代码:0x0000000000000000,0x0000000000000000

特定于应用程序的信息:
断言失败: (_cairo_status_is_error(status)),函数_cai ro_error,文件cairo-error.c,第68行。


线程0崩溃::调度队列:com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff8afbd212 __pthread_kill + 10
1 libsystem_c.dylib 0x00007fff867ccb54 pthread_kill + 90
2 libsystem_c.dylib 0x00007fff86810dce abort + 143
3 libsystem_c.dylib 0x00007fff86811e2a __assert_rtn + 146
4 libcairo.2.dylib 0x000000010d383cdc _cairo_error + 48
5 libcairo.2.dylib 0x000000010d37c6f7 _cairo_set_error + 19
6 libgtk-x11-2.0.0.dylib 0x000000010eca326a gtk_default_draw_focus + 554
7 libgtk-x11-2.0.0.dylib 0x000000010ec63dfc gtk_range_expose + 1644
8 libgtk-x11-2.0.0.dylib 0x000000010ec7e2b8 gtk_scale_expose + 120
9 libgtk-x11-2.0.0.dylib 0x000000010ec22e79 _gtk_marshal_BOOLEAN__BOXED + 169
10 libgobject-2.0.0.dylib 0x0000000109642455 g_closur e_invoke + 245
11 libgobject-2.0.0.dylib 0x00000001096524c8 signal_emit_unlocked_R + 2216
12 libgobject-2.0.0.dylib 0x0000000109653528 g_signal_emit_valist + 3336
13 libgobject-2.0.0.dylib 0x0000000109653a64 g_signal_emit + 116
14 libgtk-x11-2.0.0.dylib 0x000000010ed38bd8 gtk_widget_event_internal + 664
15 libgtk-x11-2.0.0.dylib 0x000000010eba0fc1 gtk_container_propagate_expose + 369
16 libgtk-x11-2.0.0。 dylib 0x000000010eb72e06 gtk_box_forall + 54
17 libgtk-x11-2.0.0.dylib 0x000000010eba3936 gtk_container_expose + 150
18 libgtk-x11-2.0.0.dylib 0x000000010ec22e79 _gtk_marshal_BOOLEAN__BOXED + 169
19 libgobject-2.0。 0.dylib 0x0000000109642455 g_closure_invoke + 245
20 libgobject-2.0.0.dylib 0x00000001096524c8 signal_emit_unlocked_R + 2216
21 libgobject-2.0.0.dylib 0x0000000109653528 g_signal_emit_valist + 3336
22 libgobj ect-2.0.0.dylib 0x0000000109653a64 g_signal_emit + 116
23 libgtk-x11-2.0.0.dylib 0x000000010ed38bd8 gtk_widget_event_internal + 664
24 libgtk-x11-2.0.0.dylib 0x000000010eba0fc1 gtk_container_propagate_expose


解决方案

我想感谢所有为此问题提供解决方案的人。最终我经过多次试验(和深夜!)后,设法修复它。
提出的基本方法是:


  • 使用自制软件安装GTK +和cairo

    li>
  • 使用macports安装GTK2和cairo


  • 我从未设法制作这项工作与macports,但最终我成功与自制,经过许多无果的尝试。
    我清理了我的PATH,有点杂乱。
    然后,我基本上卸载了X11,GTK +,cairo和所有依赖项。



    我首先安装了XQuartz-2.7.4。

    为了安装所有需要的组件我们遵循此处的指示,并使用自制软件和相关说明安装yarp。大多数人可能会发现这种奇怪的(我做的),但安装yarp按顺序安装所有需要的依赖关系,使GTK +的工作(显然,我只是想安装GTK +和开罗,但它没有工作,或最终RGTk2未能编译)。



    然后我安装了(使用R CMD INSTALL)GTK2,Cairo,cairoDevice和来自源代码的嘎嘎声。
    经过这么多个月的尝试解决这个问题,我简直不敢相信一切都能奏效!

    再次感谢那些为他们的努力和研究做出贡献的人们以解决问题。



    Enzo


    I've installed R3.0 on my Mountain Lion Mac and after some trial and error the version of GTK suggested by http://r.research.att.com/ for R3.0: GTK+ 2.24.17 framework.

    I load the package into R3.0 and run one of the demo. I see (for an instant) that a graph is generated, but immediately R crashes. Typically the crash takes place when I run the line "win$showAll()" (CairoDevice work no problem). This is the beginning of the error log generated (with the details of my configuration). Thanks!


    Process:         R [2307]
    Path:            /Applications/R.app/Contents/MacOS/R
    Identifier:      org.R-project.R
    Version:         R 3.0.0 GUI 1.60 Snow Leopard build (6476)
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [231]
    User ID:         501
    
    Date/Time:       2013-04-07 23:54:11.976 +0100
    OS Version:      Mac OS X 10.8.3 (12D78)
    Report Version:  10
    
    Interval Since Last Report:          11186 sec
    Per-App Interval Since Last Report:  1133 sec
    Per-App Crashes Since Last Report:   11
    Anonymous UUID:                      2C9EB7F4-E0B7-FDC4-7300-075C23CD86BB
    
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    
    Exception Type:  EXC_CRASH (SIGABRT)
    Exception Codes: 0x0000000000000000, 0x0000000000000000
    
    Application Specific Information:
    Assertion failed: (_cairo_status_is_error (status)), function _cairo_error, file cairo-error.c, line 68.
    
    
    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0   libsystem_kernel.dylib          0x00007fff8afbd212 __pthread_kill + 10
    1   libsystem_c.dylib               0x00007fff867ccb54 pthread_kill + 90
    2   libsystem_c.dylib               0x00007fff86810dce abort + 143
    3   libsystem_c.dylib               0x00007fff86811e2a __assert_rtn + 146
    4   libcairo.2.dylib                0x000000010d383cdc _cairo_error + 48
    5   libcairo.2.dylib                0x000000010d37c6f7 _cairo_set_error + 19
    6   libgtk-x11-2.0.0.dylib          0x000000010eca326a gtk_default_draw_focus + 554
    7   libgtk-x11-2.0.0.dylib          0x000000010ec63dfc gtk_range_expose + 1644
    8   libgtk-x11-2.0.0.dylib          0x000000010ec7e2b8 gtk_scale_expose + 120
    9   libgtk-x11-2.0.0.dylib          0x000000010ec22e79 _gtk_marshal_BOOLEAN__BOXED + 169
    10  libgobject-2.0.0.dylib          0x0000000109642455 g_closure_invoke + 245
    11  libgobject-2.0.0.dylib          0x00000001096524c8 signal_emit_unlocked_R + 2216
    12  libgobject-2.0.0.dylib          0x0000000109653528 g_signal_emit_valist + 3336
    13  libgobject-2.0.0.dylib          0x0000000109653a64 g_signal_emit + 116
    14  libgtk-x11-2.0.0.dylib          0x000000010ed38bd8 gtk_widget_event_internal + 664
    15  libgtk-x11-2.0.0.dylib          0x000000010eba0fc1 gtk_container_propagate_expose + 369
    16  libgtk-x11-2.0.0.dylib          0x000000010eb72e06 gtk_box_forall + 54
    17  libgtk-x11-2.0.0.dylib          0x000000010eba3936 gtk_container_expose + 150
    18  libgtk-x11-2.0.0.dylib          0x000000010ec22e79 _gtk_marshal_BOOLEAN__BOXED + 169
    19  libgobject-2.0.0.dylib          0x0000000109642455 g_closure_invoke + 245
    20  libgobject-2.0.0.dylib          0x00000001096524c8 signal_emit_unlocked_R + 2216
    21  libgobject-2.0.0.dylib          0x0000000109653528 g_signal_emit_valist + 3336
    22  libgobject-2.0.0.dylib          0x0000000109653a64 g_signal_emit + 116
    23  libgtk-x11-2.0.0.dylib          0x000000010ed38bd8 gtk_widget_event_internal + 664
    24  libgtk-x11-2.0.0.dylib          0x000000010eba0fc1 gtk_container_propagate_expose 
    

    解决方案

    I want to thank all the people that contributed to a solution of this problem. Eventually I managed to fix it, after numerous trials (and late nights!). The basic methods that have been proposed are:

    • install GTk+ and cairo with homebrew

    • install GTk2 and cairo with macports

    I never managed to make this work with macports, but eventually I've been successful with homebrew, after many fruitless attempts. I cleaned up my PATH that was getting a bit messy. Then I basically uninstalled X11, GTk+, cairo and all their dependencies.

    I've first installed XQuartz-2.7.4.

    For the installation of all the needed components I've followed the instructions found here and installed yarp using homebrew and the associated instructions. Most people may found this bizarre (I did), but installing yarp installed sequentially all the needed dependencies to make GTk+ work (obviously I tried just to install GTk+ and cairo but it never worked or eventually RGTk2 failed to compile).

    I then installed (using R CMD INSTALL) GTk2, Cairo, cairoDevice and rattle from sources. After so many months trying to fix the problem I couldn't believe that everything worked!

    Thanks again to all those that contributed with their effort and their research to fix the problem.

    Enzo

    这篇关于R 3.0和GTK + / RGTK2错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆