After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 408133 - Opening 2nd instance of magnifier causes core dump
Opening 2nd instance of magnifier causes core dump
Status: RESOLVED FIXED
Product: gnome-mag
Classification: Deprecated
Component: magnifier-utility
0.14.x
Other Linux
: Normal normal
: ---
Assigned To: bill.haneman
bill.haneman
Depends on:
Blocks:
 
 
Reported: 2007-02-15 06:42 UTC by Daniel Holbach
Modified: 2007-06-03 23:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to fix opening of a second instance of gnome-mag (805 bytes, patch)
2007-02-15 06:44 UTC, Daniel Holbach
committed Details | Review
correct the ambiguity in the if-then-else (6.54 KB, patch)
2007-05-14 16:56 UTC, Carlos Eduardo Rodrigues Diógenes
committed Details | Review
the last patch correct the ambiguity but insert a logic bug that his new one correct (1.11 KB, patch)
2007-06-03 23:17 UTC, Carlos Eduardo Rodrigues Diógenes
committed Details | Review

Description Daniel Holbach 2007-02-15 06:42:37 UTC
Forwarded from: https://launchpad.net/ubuntu/+source/gnome-mag/+bug/85183

Using Ubuntu Edgy. When a 2nd instance of magnifier is opened it crashes with a core dump.

Reproducible: Always

Steps to Reproduce:

1) Open a terminal type "magnifier"
2) Open a 2nd terminal, type "magnifier"

Expected result:
A second magnifier opens, or a message saying magnifier is already open

Actual Result:
The program crashes with a core dump.

Attached is a proposed patch that will display a message that another magnifier is already running then close properly.
Comment 1 Daniel Holbach 2007-02-15 06:44:03 UTC
Created attachment 82582 [details] [review]
patch to fix opening of a second instance of gnome-mag

patch by Michael Broadbent <michael.broadbent@ubuntu.com> to make starting of a second instance of gnome-mag not crash, but fail properly
Comment 2 Carlos Eduardo Rodrigues Diógenes 2007-03-03 01:15:53 UTC
I had three types of behavior here:

1 - Two instances running, but the second interfering in the first;

2 - One instance running and when trying to run the another I get:
GTK Accessibility Module initialized

(lt-magnifier:8993): Bonobo-WARNING **: Assigning a default value to a non readable property 'source-display-screen'

(lt-magnifier:8993): Bonobo-WARNING **: Assigning a default value to a non readable property 'target-display-screen'

** ERROR **: Error registering magnifier server.

aborting...
Aborted

3 - The first instance giving the following messages:
The program 'lt-magnifier' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 2707 error_code 3 request_code 3 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.)

and the second giving the messages in '2'.

This patch doesn't correct this behavior, but clarify a bit the messages.

More work need to be done to address this issue!
Comment 3 Carlos Eduardo Rodrigues Diógenes 2007-05-14 16:56:19 UTC
Created attachment 88164 [details] [review]
correct the ambiguity in the if-then-else
Comment 4 Carlos Eduardo Rodrigues Diógenes 2007-05-14 17:53:26 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 5 Carlos Eduardo Rodrigues Diógenes 2007-06-03 23:17:47 UTC
Created attachment 89303 [details] [review]
the last patch correct the ambiguity but insert a logic bug that his new one correct