done (bug #346733 in gnome's BTS)
Attilio
Mike Emmel wrote:
> No the screen should return at least one valid visual this is a bug.
>
> Verify that we are indeed returning null everytime and file the bug.
> I'll fix it.
> I'm surprised.
>
> On 7/5/06, Attilio Fiandrotti <[EMAIL PROTECTED]> wrote:
>
>>Hi
>>
>>i'm not sure the diagnosis is correct, but when
>>
>>GList *
>>gdk_screen_list_visuals (GdkScreen *screen)
>>{
>> GList *list = NULL;
>> gint i;
>>
>> for (i = 0; visuals[i]; i++)
>> list = g_list_append (list, visuals[i]);
>>
>> return list;
>>}
>>
>>runs, the for() cycle , like in many other points of the code, never
>>executes and hence returned list is always NULL and, in the case of the
>>GIMP i was trying to run, gdk_rgb_choose_visual() receives a null pointer.
>>Maybe it should have been
>>
>>for (i = 0; i < G_N_ELEMENTS (formats); i++) {
>> list = g_list_append (list, visuals[i]);
>>}
>>
>>? should i report to Bugzilla too?
>>
>>ciao
>>
>>Attilio
>>
>>
>>Program received signal SIGSEGV, Segmentation fault.
>>0xa7a48b34 in gdk_rgb_choose_visual (screen=0x8425018) at gdkrgb.c:460
>>460 best_visual = tmp_list->data;
>>(gdb) bt
>>#0 0xa7a48b34 in gdk_rgb_choose_visual (screen=0x8425018) at gdkrgb.c:460
>>#1 0xa7a4da4f in IA__gdk_screen_get_rgb_colormap (screen=0x8425018) at
>>gdkrgb.c:3673
>>#2 0x08065ce5 in gui_init (gimp=0x8456068, no_splash=0) at gui.c:203
>>#3 0x08062f51 in app_run (full_prog_name=0xafec1ba1
>>"/home/attilio/gtkdfb29/bin/gimp", gimp_argc=0, gimp_argv=0xafec0458,
>> alternate_system_gimprc=0x0, alternate_gimprc=0x0,
>>session_name=0x0, batch_interpreter=0x0, batch_commands=0x8454850,
>> no_interface=0, no_data=0, no_fonts=0, no_splash=0, be_verbose=0,
>>use_shm=1, use_cpu_accel=1, console_messages=0,
>> stack_trace_mode=GIMP_STACK_TRACE_NEVER,
>>pdb_compat_mode=GIMP_PDB_COMPAT_ON) at app_procs.c:273
>>#4 0x08064a26 in main (argc=1, argv=0xafec0454) at main.c:473
>>
>
>
> _______________________________________________
> directfb-dev mailing list
> [email protected]
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
>
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev