Bug 192121 - math/gnuplot: crashes with failed assertions when built with wx 3.0
Summary: math/gnuplot: crashes with failed assertions when built with wx 3.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Greg Lewis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-25 20:49 UTC by russo
Modified: 2014-07-26 15:51 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description russo 2014-07-25 20:49:06 UTC
On 21 July, bapt@FreeBSD.org committed version 4.6.5_4 of math/gnuplot, with the comment "Switch to wx 3.0"

But this switch had already been undone on 17 April 2014 when 4.6.5_2 was committed, because "gnuplot is apparently not ready to work with newer versions" of wx than 2.8.

This is the subject of bug report https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=188628 .  That bug was closed when gnuplot was set back to requiring wx 2.8.  

I am now seeing gnuplot crashing just as it was before 4.6.5_2 got committed.  The program builds and installs fine, but any attempt to plot while "wxt" is the selected terminal type (it is the default) will cause crashes:

> gnuplot

        G N U P L O T
        Version 4.6 patchlevel 5    last modified February 2014
        Build System: FreeBSD i386

        Copyright (C) 1986-1993, 1998, 2004, 2007-2014
        Thomas Williams, Colin Kelley and many others

        gnuplot home:     http://www.gnuplot.info
        faq, bugs, etc:   type "help FAQ"
        immediate help:   type "help"  (plot window: hit 'h')

Terminal type set to 'wxt'
gnuplot> plot x**2
./src/gtk/dcclient.cpp(2043): assert "m_window" failed in DoGetSize(): GetSize() doesn't work without window [in thread 4f9dbc00]
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
Assertion failed: (!xcb_xlib_unknown_req_in_deq), function dequeue_pending_request, file xcb_io.c, line 179.
Abort trap: 6 (core dumped)


The fix is trivial.  Change the line "USE_WX=  3.0" back to "USE_WX= 2.8" (reverting one of the changes made in the most recent commit).  Doing so restores gnuplot to proper function with wx.
Comment 1 John Marino freebsd_committer freebsd_triage 2014-07-25 21:13:23 UTC
over to maintainer
Comment 2 commit-hook freebsd_committer freebsd_triage 2014-07-26 15:50:23 UTC
A commit references this bug:

Author: glewis
Date: Sat Jul 26 15:49:51 UTC 2014
New revision: 362977
URL: http://svnweb.freebsd.org/changeset/ports/362977

Log:
  . Revert WX version to 2.8 and add a comment about not updating it to 3.x
    since that breaks.

  PR:		192121

Changes:
  head/math/gnuplot/Makefile
Comment 3 Greg Lewis freebsd_committer freebsd_triage 2014-07-26 15:51:34 UTC
I've reverted the change and added a comment to try and prevent this happening in future.  Thanks for the report!