emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Invalid or undefined bitmap" when launched with -Q


From: Peter Dyballa
Subject: Re: "Invalid or undefined bitmap" when launched with -Q
Date: Sat, 12 Aug 2006 23:19:28 +0200


Am 12.08.2006 um 16:27 schrieb Richard Stallman:

    These are the only three lines in *Messages*:

            (/usr/local/bin/emacs-22.0.50 -Q)
For information about the GNU Project and its goals, type C-h C-p.
            Invalid or undefined bitmap

Please find out which bitmap gets the error.
Or at least find out what code generates the error.
(We should probably put more info in the error message.)

The string "Invalid or undefined bitmap" is output by line #1193 in xfaces.c in function load_pixmap():

              add_to_log ("Invalid or undefined bitmap %s", name, Qnil);

Setting a breakpoint at load_pixmap and add_to_log, Emacs goes the first time through this block (lines #1190-1199):

  if (bitmap_id < 0)
    {
      add_to_log ("Invalid or undefined bitmap %s", name, Qnil);
      bitmap_id = 0;

      if (w_ptr)
        *w_ptr = 0;
      if (h_ptr)
        *h_ptr = 0;
    }

Gdb prints:

        Breakpoint 1 at 0xc9420: file xfaces.c, line 1163.
        Breakpoint 2 at 0x3408c: file xdisp.c, line 7169.
        Breakpoint 3 at 0x1542c0: file sysdep.c, line 1393.

run
cont

the first frame appears, no tool-bar yet, the wrong colour for menu names

Breakpoint 1, load_pixmap (f=0x9a8420, name=60552283, w_ptr=0x9f5324, h_ptr=0x9f5328) at xfaces.c:1163
        
   'next' makes the tool-bar appear and corrects the colour
   then I can change in this frame to the *Messages* buffer
   it already has the 'Invalid...' message

Breakpoint 2, add_to_log (format=0x28dc10 "Invalid or undefined bitmap %s", arg1=60552283, arg2=58721289) at xdisp.c:7169
        
Checking the value from 'bitmap_id = x_create_bitmap_from_file (f, name);' I get -1, so the if takes the add_to_log route.


Adding x_create_bitmap_from_file to the breakpoints, line #499 in image.c (fd = openp (Vx_bitmap_file_path, file, Qnil, &found, Qnil);) I can see that fd is -1. The struct dpyinfo contains 1 as bitmaps_last, so the for loop is executed once. While id is 0, dpyinfo->bitmaps[id].refcount is 2, and dpyinfo->bitmaps[id].file is 0x0.

Stepping into openp and landing in lread.c I can print the value of fn in line #1207:

$9 = 0xbfffc2c8 "/usr/X11R6/include/X11/bitmaps\270\221\277\377\302 \360"

which doesn't look right (I have the directory /usr/X11R6/include/X11/ bitmaps), and so we end in Breakpoint 2.

So there seems to be some error in C?

Is there something more to debug by me?


I have this x resource:

        Emacs*bitmapIcon:       on


--
Greetings

  Pete

"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former."
                                    -- Albert Einstein






reply via email to

[Prev in Thread] Current Thread [Next in Thread]