Bug 155255 - comms/xnecview crashes with Gdk-CRITICAL error
Summary: comms/xnecview crashes with Gdk-CRITICAL error
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Soeren Straarup
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-04 08:40 UTC by russo
Modified: 2011-04-13 20:51 UTC (History)
0 users

See Also:


Attachments
file.txt (2.57 KB, text/plain)
2011-03-04 08:40 UTC, russo
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description russo 2011-03-04 08:40:10 UTC
Some time ago xnecview, which I used to use regularly on this system, after some upgrade or other started crashing with the error:

(xnecview:77768): Gdk-CRITICAL **: IA__gdk_window_set_back_pixmap: assertion `pixmap == NULL || gdk_drawable_get_depth (window) == gdk_drawable_get_depth (pixmap)' failed

This is repeatable on any NEC output, including old NEC output I had lying around from the days when I used xnecview regularly.

Fix: The attached patch fixes the issue.  It is taken from a Debian bug fix I found in their bug tracker, dated 2008:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=484725

This patch completely fixes the issue I have observed, and all my old NEC files (including the one in the "How To Repeat" section above) are viewable after the patch.


Patch attached with submission follows:
How-To-Repeat: Run xnecview on any valid NEC input file, such as
----CUT-----
CM EXAMPLE 3. VERTICAL HALF WAVELENGTH ANTENNA OVER GROUND
CM EXTENDED THIN WIRE KERNEL USED
CM 1. PERFECT GROUND
CM with phased vertical some distance away
CE PATTERN CALCULATIONS
GW 0 9 0.0 0.0 2.0 0.0 0.0 7.0 0.00051
GW 1 9 2.5 0.0 2.0 2.5 0.0 7.0 0.00051
GE 0
EX 0 0 5 0 1.0 0.0 0.0 0.0
EX 0 1 5 0 -1.0 1.e-16 0.0 0.0
GN 2 0 0 0 13.0 .002 0.0 0.0
FR 0 1 0 0 30.0 0.0 0.0 0.0
EN
-----CUT------

The program will put up a blank window, and will crash if any interaction is attempted.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-03-04 08:40:20 UTC
Responsible Changed
From-To: freebsd-ports-bugs->xride

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2011-04-13 20:49:48 UTC
xride       2011-04-13 19:49:39 UTC

  FreeBSD ports repository

  Modified files:
    comms/xnecview       Makefile 
  Added files:
    comms/xnecview/files patch-xwin.c 
  Log:
  Fixed Gdk-CRITICAL error
  
  PR:             ports/155255
  Submitted by:   Tom Russo <russo@bogodyn.org>
  
  Revision  Changes    Path
  1.14      +1 -1      ports/comms/xnecview/Makefile
  1.4       +80 -0     ports/comms/xnecview/files/patch-xwin.c (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Soeren Straarup freebsd_committer freebsd_triage 2011-04-13 20:50:56 UTC
State Changed
From-To: open->closed

Committed, Thanks