|
From: Daniel J S. <dan...@ie...> - 2017-07-05 03:00:13
|
On 07/04/2017 08:17 PM, Daniel J Sebald wrote:
>> /* Define a new application type, each gui should derive a class from
>> wxApp */
>> class wxtApp : public wxApp
>> {
>> public:
>> #if defined(WXT_MULTITHREADED) && defined(WX_NEEDS_XINITTHREADS) &&
>> defined(X11)
>> /* Magic fix needed by wxgtk3.0 */
>> wxtApp() : wxApp() { XInitThreads(); }
>> #endif
>
> I'm not having any problems building/running if I just comment out this
> line. Then again, from my wx-config test, I might be using GTK2 rather
> than GTK3, which might be the issue if "wxgtk3.0" is in the comment.
>
> This looks to have been a thread from 2013. Maybe we should open a bug
> report and move the discussion there in hopes of finding someone for
> which that crash can be replicated when there is no XInitThreads().
Actually, I can replicate the problem, and I found the bug report.
FWIW, I posted some comments and links here:
https://sourceforge.net/p/gnuplot/bugs/1401/?limit=25&page=1#aab6
I suspect a fix not involving manual XInitThreads() might be work beyond
the current release. (Is it that graphics/GUI action is taking place in
the secondary thread when it isn't supposed to?)
Anyway, I think gnuplot configure is obligated to add -lX11, given the
situation.
Dan
|