(no subject)

George Liaskos geo.liaskos at gmail.com
Wed Nov 30 12:58:30 UTC 2011


On Wed, Nov 30, 2011 at 1:32 PM, Koop Mast <kwm at rainbow-runner.nl> wrote:
> On Mon, 2011-11-28 at 21:56 +0100, Rene Ladan wrote:
>> Hi,
>>
>> if I compile the attached program with 'gcc -o testgdk `pkg-config
>> gtk+-2.0 --libs --cflags` testgdk.c' it fails with this assertion:
>>
>> (process:55495): Gdk-CRITICAL **: IA__gdk_screen_get_root_window:
>> assertion `GDK_IS_SCREEN (screen)' failed
>>
>> This is on an amd64-10 system with clang kernel/world and gcc ports.
>> All ports are at their current version except the X.org ports for which
>> I defined WITHOUT_NOUVEAU to let the binary NVidia driver work.
>>
>> It also fails with the xorg-dev ports.
>>
>> Is this a bug?
>>
>> Regards,
>> René
>> _____________
>
> According to the docs that function needs a argument.
>
> http://developer.gnome.org/gdk/stable/GdkScreen.html#gdk-screen-get-root-window
>
> -Koop

The function is actually gdk_get_default_root_window(void), I am
trying to port chromium 16 and the browser crashes at startup with the
assertion that Rene mentioned.

You can see the offending code here, line 63:
http://git.chromium.org/gitweb/?p=chromium/chromium.git;a=blob;f=chrome/browser/ui/window_sizer_gtk.cc;h=6746eea4fc5a0d843dfab3ed433fcb3be15b015a;hb=HEAD

I did some debugging and i found that default_display is always NULL
and thus gdk_screen_get_default (void) always returns NULL, please see
gdkdisplaymanager.c:217
https://github.com/garnacho/gtk/blob/master/gdk/gdkdisplaymanager.c

Thank you for looking into this.


Regards,
George


More information about the freebsd-gnome mailing list