Search found 9 matches
- Thu Jul 19, 2018 9:50 am
- Forum: Platform Related Issues
- Topic: Infinite backtrace of wxapp_poll_fun() while sending on socket from a thread to another
- Replies: 5
- Views: 1929
Re: Infinite backtrace of wxapp_poll_fun() while sending on socket from a thread to another
@DavidHart, for Sure I do this. ----------------------- I found the issue, both components tries to Initialize Wx library using different function. This led to this strange behavior. I solved it by adding a condition checking if `wxTheApp` is NULL or no to allow the second initialization. ----------...
- Sun Jul 15, 2018 10:33 am
- Forum: Platform Related Issues
- Topic: Infinite backtrace of wxapp_poll_fun() while sending on socket from a thread to another
- Replies: 5
- Views: 1929
Re: Infinite backtrace of wxapp_poll_fun() while sending on socket from a thread to another
Hi, It looks like you are using wx-2.8. Did you try to update to 3.0/3.1? It would also be nice to know where it crashes - produce a debug build of wx and your application (with symbols). Thank you. Upgrading to Wx 3.0 is a dream, but it's not currently possible. Debugging got me that it always cra...
- Thu Jul 12, 2018 7:55 am
- Forum: Platform Related Issues
- Topic: Infinite backtrace of wxapp_poll_fun() while sending on socket from a thread to another
- Replies: 5
- Views: 1929
Infinite backtrace of wxapp_poll_fun() while sending on socket from a thread to another
We have two components that run in separate processes fine and communicates over TCP socket. We decided to merge both, that each component runs in a different thread and still communicates on the same TCP socket. When using batch mode, it works great. But when launch our GUI main frame it crashes wi...
- Wed Jun 06, 2018 12:11 pm
- Forum: C++ Development
- Topic: Wxwidget 2.8 - wxPostEvent crashes
- Replies: 14
- Views: 3702
Re: Wxwidget 2.8 - wxPostEvent crashes
Looking at the glib source, there are a few occasions where malloc() calls malloc_printerr() with an error message. It would have been nice to know which one it was in this case. https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/malloc.c;h=7889fb19613c8d2e16612e17ae73cd65e72b16b8;hb=8e448310d...
- Tue Jun 05, 2018 9:07 am
- Forum: C++ Development
- Topic: Wxwidget 2.8 - wxPostEvent crashes
- Replies: 14
- Views: 3702
Re: Wxwidget 2.8 - wxPostEvent crashes
Did you also use the deep copy in the SetMessage* methods? In case of using C++ strings, the answer is No. But currently with C-strings, yes. I will make a trial of C++ strings with deep copying in `SetMessage` and Custom Copy Constructor. Can you find out which message malloc_printerr() is trying ...
- Mon Jun 04, 2018 10:02 am
- Forum: C++ Development
- Topic: Wxwidget 2.8 - wxPostEvent crashes
- Replies: 14
- Views: 3702
Re: Wxwidget 2.8 - wxPostEvent crashes
@DavidHart, Here is the original copy constructor CustomGUIMessageEvent::CustomGUIMessageEvent(const CustomGUIMessageEvent& rOther) : wxNotifyEvent(rOther) , m_strMessage(rOther.m_strMessage) , m_strMessageTitle(rOther.m_strMessageTitle) { } I made the following trials 1. replacing ` m_strMessag...
- Tue May 29, 2018 3:01 pm
- Forum: C++ Development
- Topic: Wxwidget 2.8 - wxPostEvent crashes
- Replies: 14
- Views: 3702
Re: Wxwidget 2.8 - wxPostEvent crashes
Ok, that code looks fine. I checked the code for AddPendingEvent() in wx 2.8.12, the list of pending events is protected with a critical section, so that should be safe, too. As the assert happens in malloc(), is it possible that you just run out of memory? Did you check the memory usage of your ap...
- Tue May 29, 2018 10:43 am
- Forum: C++ Development
- Topic: Wxwidget 2.8 - wxPostEvent crashes
- Replies: 14
- Views: 3702
Re: Wxwidget 2.8 - wxPostEvent crashes
Did you override the Clone() method in CustomGUIMessageEvent? If no: You have to. And make sure to create deep copies of the strings. If yes: Please show the code. Yes I did, #ifndef CUSTOM_GUI_MESSAGE_EVENT #define CUSTOM_GUI_MESSAGE_EVENT #include <wx/event.h> class CustomGUIMessageEvent: public ...
- Mon May 28, 2018 2:29 pm
- Forum: C++ Development
- Topic: Wxwidget 2.8 - wxPostEvent crashes
- Replies: 14
- Views: 3702
Wxwidget 2.8 - wxPostEvent crashes
[*]I've a huge multi-threaded app that utilizes events to update the GUI. So with a custom Event, wxPostEvent crashes with the following log : #0 0x00007ffff5464885 in raise () from /lib64/libc.so.6 #1 0x00007ffff5465e61 in abort () from /lib64/libc.so.6 #2 0x00007ffff54a587f in __libc_message () fr...