pcb

[GTK HID] DRC window causes pcb to crash

Bug #908022 reported by Bert Timmerman
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
pcb
Fix Released
Undecided
Unassigned

Bug Description

Hi all,

[GTK HID] DRC window causes pcb to crash.

Steps to reproduce:

1: Open a layout (for example "example/LED2.pcb")

2: Open the "DRC window" from the "Info" pull down menu.

3: Click the "Refresh" button in the DRC dialog window.

4: Pcb crashes with the CLI message:

<quote>
failed to create pixmap

Gdk-ERROR **: The program 'pcb' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadDrawable (invalid Pixmap or Window parameter)'.
  (Details: serial 12180 error_code 9 request_code 55 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
aborting...
Aborted (core dumped)
</quote>

The "Design Rule Checker" was NOT run from the "Connects" pull down menu prior to opening the DRC dialog window.

Another series of steps to reproduce:

1: Open a layout (for example "example/LED2.pcb")

2: Start the "Design Rule Checker" from the "Connects" pull down menu.

3: Pcb crashes with the same CLI message.

Kind regards, Bert Timmerman.

Tags: drc
Revision history for this message
Felix Ruoff (felixruoff) wrote :

I can't reproduce this error. I have tried it with git head and 20101129 on Ubuntu 11.10 .
Can you please give some more details:
- Which pcb version
- Which distribution
Kind regards,
Felix

Revision history for this message
Bert Timmerman (bert-timmerman) wrote :
Download full text (8.7 KiB)

Hi,

It took me some time to get back to this bug (too busy day job ...).

The pcb version is git HEAD as of April 18th 2012.

The distribution is Fedora 13 (no pending updates).

Here follows a backtrace:

[bert@hostname pcb]$ gdb src/pcb
GNU gdb (GDB) Fedora (7.1-34.fc13)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/bert/workspace/devel/pcb/src/pcb...done.
(gdb) run
Starting program: /home/bert/workspace/devel/pcb/src/pcb
[Thread debugging using libthread_db enabled]
Detaching after fork from child process 27523.
sh: /home/bert/workspace/devel/pcb/src/../share/pcb/ListLibraryContents.sh: No such file or directory
[New Thread 0xb3b61b70 (LWP 27524)]
[New Thread 0xb2fffb70 (LWP 27525)]
[New Thread 0xb23ffb70 (LWP 27526)]
[New Thread 0xb19feb70 (LWP 27527)]
[New Thread 0xb0ffdb70 (LWP 27528)]
[Thread 0xb19feb70 (LWP 27527) exited]
[Thread 0xb23ffb70 (LWP 27526) exited]
[Thread 0xb0ffdb70 (LWP 27528) exited]
[Thread 0xb3b61b70 (LWP 27524) exited]
[New Thread 0xb0ffdb70 (LWP 27529)]
[New Thread 0xb3b61b70 (LWP 27530)]
[New Thread 0xb19feb70 (LWP 27531)]
[New Thread 0xb23ffb70 (LWP 27532)]
[New Thread 0xb03ffb70 (LWP 27533)]
[Thread 0xb0ffdb70 (LWP 27529) exited]
[Thread 0xb03ffb70 (LWP 27533) exited]
[Thread 0xb23ffb70 (LWP 27532) exited]
[Thread 0xb19feb70 (LWP 27531) exited]
[Thread 0xb2fffb70 (LWP 27525) exited]
failed to create pixmap

Gdk-ERROR **: The program 'pcb' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadDrawable (invalid Pixmap or Window parameter)'.
  (Details: serial 14647 error_code 9 request_code 55 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
aborting...

Program received signal SIGABRT, Aborted.
0x00110424 in __kernel_vsyscall ()
(gdb) bt
#0 0x00110424 in __kernel_vsyscall ()
#1 0x00d63bd1 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2 0x00d654aa in abort () at abort.c:92
#3 0x02b160d6 in IA__g_logv (log_domain=0x4785714 "Gdk", log_level=<value optimized out>, format=0x47a30f3 "%s", args1=0xbfffdebc "\370\203\307\b\t")
    at gmessages.c:549
#4 0x02b16107 in IA__g_log (log_domain=0x4785714 "Gdk", log_level=G_LOG_LEVEL_ERROR, format=0x47a30f3 "%s") at gmessages.c:569
#5 0x0476de93 in gdk_x_error (display=0x81dfea0, error=0xbfffdf8c) at gdkmain-x11.c:466
#6 0x00555121 in _XError (dpy=0x81dfea0, rep=0x890c818) at XlibInt.c:3103
#7 0x0055b957 in process_responses (dpy=<value optimized out>, wait_for_first_event=0, current_error=0xb...

Read more...

Revision history for this message
Ed Simmons (ly5-1f-c1q) wrote :

I can confirm this bug using latest build of PCB from git (pulled just now, rebuilt and checked)

System info, using Nvidia graphics card, dual head 2x HD screens, Ubuntu Studio desktop environment.

#: uname -a
Linux ed-desktop 2.6.38-14-generic-pae #58-Ubuntu SMP Tue Mar 27 19:06:30 UTC 2012 i686 i686 i386 GNU/Linux

#: lsb_release -r
Release: 11.04

Running the DRC check seems to cause the crash, as others stated displaying empty DRC check window looks to be ok.

Changed in pcb:
status: New → Confirmed
Traumflug (mah-jump-ing)
Changed in geda-project:
importance: Undecided → Critical
status: New → Confirmed
Revision history for this message
Traumflug (mah-jump-ing) wrote :

I can't reproduce this with current Git HEAD. No messages to the command line, much less a crash. There was some work on the DRC mechanism recently, so it's very likely a crash would have been noticed.

In case the problem persists, please open a new bug. Regardless, thanks for reporting!

Changed in geda-project:
status: Confirmed → Fix Released
Revision history for this message
Chad Parker (parker-charles) wrote :

Already marked complete in gEDA project, marking complete in "pcb".

Changed in pcb:
status: Confirmed → Fix Released
Revision history for this message
Bert Timmerman (bert-timmerman) wrote :

Hi Chad,

I just reproduced on my Fedora-13 box.

It's still not working for me (never use DRC, because of this).

Kind regards,

Bert Timmerman.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.