Code::Blocks Forums

User forums => Help => Topic started by: awake on May 31, 2017, 08:02:45 pm

Title: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: awake on May 31, 2017, 08:02:45 pm
All,

Not sure if the problem is actually with the upgrade to 17.04, or something else - but after the upgrade, I've not been able to get wxsmith to successfully open any existing project - all of it shows up in the explorer bar on the left, but only part of it shows up visibly, and the toolbar and side panel do not show. Same behavior with either the stock Ubuntu C:B 16.01 or the Damien_Moore PPA version.

When I tried building a completely new project, wxsmith worked fine ... until the frame began to get slightly complicated: I started with wxFrame, then wxSizer, then wxPanel, then wxSizer (horizontal), which contains two additional sizers (both vertical), one with two buttons and one with a button, a text box, and a radio button. At that point, when leaving the project, C:B crashes.

I'm sure I need to provide additional information, but this is my first posting here (though I've been using C:B successfully for many years), so please let me know what will be most helpful to supply. Thanks!

Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: stahta01 on May 31, 2017, 10:41:37 pm
Not an Ubuntu user; but, there are many CB/wxWidgets problems when running under the Unity desktop.

One poster implied the issue was partly caused by the Ubuntu built wxWidgets/wxGTK; but, I have no idea if that is true.

Tim S.
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: awake on May 31, 2017, 11:22:23 pm
Update - I decided to try building C:B from source to see if that eliminated the problem. New problem: can't build C:B from source using configure/make -- I finally got a clean configure and make, but then I cannot get it to compile. If I compile wxWidgets --using-stl, then I get one set of errors; if I compile wxWidgets without stl, then I get a different set of errors; and either way, I can't seem to figure out a way around the problems. Has anyone successfully compiled C:B on Ubuntu 17.04 using wxWidgets 3.03?? If so, any and all help will be most appreciated!

On edit - as I was typing, Tim's email came in. Tim, I'm compiling wxWidgets 3.03 rather than relying on the built-in wxWidgets libraries. wx-config correctly points to the version I compiled - monolithic, with XRC, unicode - and as I said, trying both using-stl and not.
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: BlueHazzard on May 31, 2017, 11:43:46 pm
without error message it is difficult to help...
have you looked at the wiki:
http://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Linux

there are also some ppas out there:
https://launchpad.net/~damien-moore/+archive/ubuntu/codeblocks-stable
https://launchpad.net/~pasgui/+archive/ppa/

i don't know if there are active...
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: oBFusCATed on June 01, 2017, 01:46:33 am
Don't bother building yourself. Use any of the prebuilt packages, a nightly PPA will be best.

First read this https://wiki.ubuntu.com/Backtrace and them post some backtraces.
If you post the exact steps needed to reproduce the problem, then we could try to reproduce them ourselves and then fix them.
Make sure that the steps executed multiple times result in the same problem.
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: awake on June 01, 2017, 02:07:05 pm
Thanks, BlueHazzard and oBFusCATed. I realized after Blue's reply that I should not have mixed up my topics - better to stay focused on the problem with wxsmith.

oBFusCATed, thanks for pointing me to how to do the backtrace. I have a conference all day today, so it will be this evening before I can do it - but I will indeed do and post the backtrace, and describe the exact steps. Thanks!
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: awake on June 01, 2017, 05:55:03 pm
Got a chance to run an initial sample of this:

Using the Ubuntu 17.04 repository version of codeblocks (version 16.01+dfsg-2) on the following system (uname -a): Linux <my-laptop-name> 4.10.0-21-generic #23-Ubuntu SMP Fri Apr 28 16:14:22 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

The laptop is a Dell Inspiron 15 3000 series running a 7th-generation Intel Core i5 with Intel HD Graphics 620 (Kabylake GT2); 8 GB RAM

Procedure:
 
Open codeblocks
Create a new wxWidgets project; name as desired; accept all defaults
In the blank frame, place a wxBoxSizer  (I'll call this the outer sizer)
In the outer sizer, place a wxPanel
In the panel, place a wxBoxSizer (I'll call this the inner sizer)
In the sizer, place two buttons; just leave them with the default Label and other settings
Set the inner sizer to be wxVERTICAL
Save the project
Attempt to close the project - at this point, C:B crashes

Below is the back trace. I'm sure there is probably more I need to do to provide information - if you can direct me in the right direction, I will be happy to do so.

Code
GNU gdb (Ubuntu 7.12.50.20170314-0ubuntu1) 7.12.50.20170314-git
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from codeblocks...(no debugging symbols found)...done.
(gdb) handle SIG33 pass nostop pnpoprint
Signal        Stop Print Pass to program Description
SIG33         No No Yes Real-time event 33
(gdb) set pagination 0
(gdb) run
Starting program: /usr/bin/codeblocks
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
11:37:55: Warning: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1010,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1009,wx containers,compatible with 2.8).
[New Thread 0x7fffe86ea700 (LWP 9824)]
[New Thread 0x7fffe7ee9700 (LWP 9825)]
[New Thread 0x7fffe74b6700 (LWP 9826)]
[New Thread 0x7fffe5eb8700 (LWP 9827)]
[New Thread 0x7fffe56b7700 (LWP 9828)]
[New Thread 0x7fffe4ca5700 (LWP 9831)]
[New Thread 0x7fffcffff700 (LWP 9832)]
[New Thread 0x7fffcf7fe700 (LWP 9833)]
[New Thread 0x7fffceffd700 (LWP 9834)]
[Thread 0x7fffceffd700 (LWP 9834) exited]
[Thread 0x7fffe5eb8700 (LWP 9827) exited]
[New Thread 0x7fffb1229700 (LWP 9851)]
[New Thread 0x7fffe5eb8700 (LWP 9852)]
Starting Code::Blocks Release 16.01  rev 10692 2016-06-15, 06:57:50 - wx3.0.2 (Linux, unicode) - 64 bit
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading menubar...
SmartIndentHDL: loaded
Cscope: loaded
OccurrencesHighlighting: loaded
FileManager: loaded
OpenFilesList: loaded
wxSmith: loaded
wxSmithMime: loaded
EditorTweaks: loaded
Abbreviations: loaded
NassiShneidermanPlugin: loaded
EditorConfig: loaded
CB_Koders: loaded
ProjectOptionsManipulator: loaded
AStylePlugin: loaded
FilesExtensionHandler: loaded
wxSmithContribItems: loaded
HelpPlugin: loaded
copystrings: loaded
SmartIndentPascal: loaded
cbDragScroll: loaded
Exporter: loaded
Cccc: loaded
AutoVersioning: loaded
Profiler: loaded
ScriptedWizard: loaded
DoxyBlocks: loaded
CppCheck: loaded
ClassWizard: loaded
CodeStat: loaded
RegExTestbed: loaded
SmartIndentPython: loaded
cbKeyBinder: loaded
EnvVars: loaded
SmartIndentXML: loaded
CodeSnippets: loaded
SmartIndentCpp: loaded
SmartIndentLua: loaded
ToDoList: loaded
SmartIndentFortran: loaded
ToolsPlus: loaded
SpellChecker: loaded
ThreadSearch: loaded
Compiler: loaded
HeaderFixup: loaded
BYOGames: loaded
Valgrind: loaded
ProjectsImporter: loaded
ReopenEditor: loaded
HexEditor: loaded
Autosave: loaded
Debugger: loaded
IncrementalSearch: loaded
wxSmithAui: loaded
MouseSap: loaded
CodeCompletion: loaded
SymTab: loaded
lib_finder: loaded
BrowseTracker: loaded
SmartIndentHDL plugin activated
Cscope plugin activated
OccurrencesHighlighting plugin activated
FileManager plugin activated
Open files list plugin activated
wxSmith plugin activated
wxSmith - MIME plugin plugin activated
Editor Tweaks plugin: Building menu
Editor Tweaks plugin: making the menu 15
Editor Tweaks plugin: Folding menu
EditorTweaks plugin activated
Abbreviations plugin activated
NassiShneidermanPlugin plugin activated
EditorConfig plugin for Code::Blocks plugin activated
Koders query plugin activated
Project options manipulator plugin activated
Source code formatter (AStyle) plugin activated
Files extension handler plugin activated
wxSmith - Contrib Items plugin activated
Help plugin plugin activated
Copy Strings to clipboard plugin activated
SmartIndentPascal plugin activated
DragScroll plugin activated
Source Exporter plugin activated
Cccc plugin activated
AutoVersioning plugin activated
Code profiler plugin activated
Project wizard added for 'Empty project'
Project wizard added for 'Fortran application'
Project wizard added for 'Fortran library'
Project wizard added for 'Fortran DLL'
Project wizard added for 'Console application'
Project wizard added for 'D application'
Project wizard added for 'FLTK project'
Project wizard added for 'GLFW project'
Project wizard added for 'GLUT project'
Project wizard added for 'GTK+ project'
Project wizard added for 'Irrlicht project'
Project wizard added for 'Lightfeather project'
Project wizard added for 'Matlab project'
Project wizard added for 'OpenCV project'
Project wizard added for 'OpenGL project'
Project wizard added for 'Ogre project'
Project wizard added for 'Code::Blocks plugin'
Project wizard added for 'QT4 project'
Project wizard added for 'SDL project'
Project wizard added for 'SFML project'
Project wizard added for 'Static library'
Project wizard added for 'Shared library'
Project wizard added for 'wxWidgets project'
Build-target wizard added for 'Console'
Build-target wizard added for 'Static library'
Build-target wizard added for 'wxWidgets'
Project wizard added for 'ARM Project'
Project wizard added for 'AVR Project'
Project wizard added for 'TriCore Project'
Project wizard added for 'PowerPC Project'
Project wizard added for 'MCS51 Project'
File(s) wizard added for 'Empty file'
File(s) wizard added for 'C/C++ source'
File(s) wizard added for 'C/C++ header'
File(s) wizard added for 'Fortran source'
Scripted wizard plugin activated
DoxyBlocks plugin activated
CppCheck plugin activated
Class wizard plugin activated
Code statistics plugin activated
Regular expressions testbed plugin activated
SmartIndentPython plugin activated
Keyboard shortcuts plugin activated
Environment variabl[New Thread 0x7fffceffd700 (LWP 9906)]

(codeblocks:9820): Gtk-CRITICAL **: IA__gtk_tree_model_iter_nth_child: assertion 'n >= 0' failed
[New Thread 0x7fffb0905700 (LWP 9908)]
[Thread 0x7fffb0905700 (LWP 9908) exited]
[Thread 0x7fffe56b7700 (LWP 9828) exited]

** (codeblocks:9820): CRITICAL **: murrine_style_draw_box: assertion 'width >= -1' failed
es plugin activated
SmartIndentXML plugin activated
Code snippets plugin activated
SmartIndentCpp plugin activated
SmartIndentLua plugin activated
Todo List plugin activated
SmartIndentFortran plugin activated
ToolsPlus plugin activated
SpellChecker plugin activated
ThreadSearch plugin activated
Added compiler "GNU GCC Compiler"
Added compiler "Intel C/C++ Compiler"
Added compiler "GDC D Compiler"
Added compiler "GNU Fortran Compiler"
Added compiler "G95 Fortran Compiler"
Added compiler "GNU GCC Compiler for ARM"
Added compiler "GNU GCC Compiler for PowerPC (HighTec)"
Added compiler "PGI Fortran Compiler"
Added compiler "GNU GCC Compiler for LM32"
Added compiler "Small Device C Compiler"
Added compiler "GNU GCC Compiler for MSP430 (HighTec)"
Added compiler "*No Compiler*"
Added compiler "GNU GCC Compiler for LM8"
Added compiler "Tiny C Compiler"
Added compiler "Digital Mars D Compiler"
Added compiler "LLVM D Compiler"
Added compiler "GNU GCC Compiler for ZPU"
Added compiler "GNU GCC Compiler for Blackfin"
Added compiler "GNU GCC Compiler for TriCore (HighTec)"
Added compiler "LLVM Clang Compiler"
Added compiler "GNU GCC Compiler for AVR"
Added compiler "mingw_cross_compiler"
Compiler plugin activated
Header Fixup plugin activated
BYO Games plugin activated
Valgrind plugin activated
Foreign projects importer plugin activated
ReopenEditor plugin activated
HexEditor plugin activated
Autosave plugin activated
Debugger plugin activated
IncrementalSearch plugin activated
wxSmith - Aui plugin activated
MouseSap plugin activated
Code completion plugin activated
Symbol Table Plugin plugin activated
Library finder plugin activated
BrowseTracker plugin activated
Loading toolbar...
ClassBrowser::UpdateClassBrowserView(): No active project available.
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
Initializing plugins...
Generated file /home/uwake/programs/wx/wxsmith/testApp.h
Project's base path: /home/uwake/programs/wx/wxsmith/
Project's common toplevel path: /home/uwake/programs/wx/wxsmith/
Generated file /home/uwake/programs/wx/wxsmith/testApp.cpp
Generated file /home/uwake/programs/wx/wxsmith/testMain.h
Generated file /home/uwake/programs/wx/wxsmith/testMain.cpp
Generated file /home/uwake/programs/wx/wxsmith/wxsmith/testframe.wxs
Generated file /home/uwake/programs/wx/wxsmith/wx_pch.h
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicod[New Thread 0x7fffe56b7700 (LWP 9918)]
[Thread 0x7fffe56b7700 (LWP 9918) exited]
e 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla uni
Thread 1 "codeblocks" received signal SIGSEGV, Segmentation fault.
0x0000000000000061 in ?? ()
(gdb) quit
A debugging session is active.

Inferior 1 [process 9820] will be killed.

Quit anyway? (y or n) y
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: awake on June 01, 2017, 06:24:48 pm
Here is a second run - same version of codeblocks, etc., but this time using the advanced wxWidgets settings and clicking on "Use dynamic libraries" and on "Unicode." This time it lasted longer - I could do the simple frame described above, and close the project without crashing; I could even open it up and close it again without crashing. However, when I started adding additional complexity - within the "inner sizer," adding two additional wxBoxSizers, one with two buttons and one with a button, a text control, and a radio button - then when I save and close the project, it crashes. First part of backtrace included below [had to do this in two posts due to length]:

Code
GNU gdb (Ubuntu 7.12.50.20170314-0ubuntu1) 7.12.50.20170314-git
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from codeblocks...Reading symbols from /usr/lib/debug/.build-id/61/5fb9e48115a766921c25b041645fea6340d9a1.debug...done.
done.
(gdb) handle SIG33 pass nostop noprint
Signal        Stop Print Pass to program Description
SIG33         No No Yes Real-time event 33
(gdb) set pagination 0
(gdb) run
Starting program: /usr/bin/codeblocks
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
12:10:34: Warning: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1010,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1009,wx containers,compatible with 2.8).
[New Thread 0x7fffe86ea700 (LWP 10616)]
[New Thread 0x7fffe7ee9700 (LWP 10617)]
[New Thread 0x7fffe74b6700 (LWP 10618)]
[New Thread 0x7fffe5eb8700 (LWP 10619)]
[New Thread 0x7fffe56b7700 (LWP 10620)]
[New Thread 0x7fffe4ca5700 (LWP 10623)]
[New Thread 0x7fffcffff700 (LWP 10624)]
[New Thread 0x7fffcf7fe700 (LWP 10625)]
[New Thread 0x7fffceffd700 (LWP 10626)]
[New Thread 0x7fffce7fc700 (LWP 10627)]
[Thread 0x7fffce7fc700 (LWP 10627) exited]
[Thread 0x7fffe56b7700 (LWP 10620) exited]
[Thread 0x7fffe5eb8700 (LWP 10619) exited]
[New Thread 0x7fffac96c700 (LWP 10646)]
[New Thread 0x7fffe5eb8700 (LWP 10647)]
Starting Code::Blocks Release 16.01  rev 10692 2016-06-15, 06:57:50 - wx3.0.2 (Linux, unicode) - 64 bit
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading menubar...
SmartIndentHDL: loaded
Cscope: loaded
OccurrencesHighlighting: loaded
FileManager: loaded
OpenFilesList: loaded
wxSmith: loaded
wxSmithMime: loaded
EditorTweaks: loaded
Abbreviations: loaded
NassiShneidermanPlugin: loaded
EditorConfig: loaded
CB_Koders: loaded
ProjectOptionsManipulator: loaded
AStylePlugin: loaded
FilesExtensionHandler: loaded
wxSmithContribItems: loaded
HelpPlugin: loaded
copystrings: loaded
SmartIndentPascal: loaded
cbDragScroll: loaded
Exporter: loaded
Cccc: loaded
AutoVersioning: loaded
Profiler: loaded
ScriptedWizard: loaded
DoxyBlocks: loaded
CppCheck: loaded
ClassWizard: loaded
CodeStat: loaded
RegExTestbed: loaded
SmartIndentPython: loaded
cbKeyBinder: loaded
EnvVars: loaded
SmartIndentXML: loaded
CodeSnippets: loaded
SmartIndentCpp: loaded
SmartIndentLua: loaded
ToDoList: loaded
SmartIndentFortran: loaded
ToolsPlus: loaded
SpellChecker: loaded
ThreadSearch: loaded
Compiler: loaded
HeaderFixup: loaded
BYOGames: loaded
Valgrind: loaded
ProjectsImporter: loaded
ReopenEditor: loaded
HexEditor: loaded
Autosave: loaded
Debugger: loaded
IncrementalSearch: loaded
wxSmithAui: loaded
MouseSap: loaded
CodeCompletion: loaded
SymTab: loaded
lib_finder: loaded
BrowseTracker: loaded
SmartIndentHDL plugin activated
Cscope plugin activated
OccurrencesHighlighting plugin activated
FileManager plugin activated
Open files list plugin activated
wxSmith plugin activated
wxSmith - MIME plugin plugin activated
Editor Tweaks plugin: Building menu
Editor Tweaks plugin: making the menu 15
Editor Tweaks plugin: Folding menu
EditorTweaks plugin activated
Abbreviations plugin activated
NassiShneidermanPlugin plugin activated
EditorConfig plugin for Code::Blocks plugin activated
Koders query plugin activated
Project options manipulator plugin activated
Source code formatter (AStyle) plugin activated
Files extension handler plugin activated
wxSmith - Contrib Items plugin activated
Help plugin plugin activated
Copy Strings to clipboard plugin activated
SmartIndentPascal plugin activated
DragScroll plugin activated
Source Exporter plugin activated
Cccc plugin activated
AutoVersioning plugin activated
Code profiler plugin activated
Project wizard added for 'Empty project'
Project wizard added for 'Fortran application'
Project wizard added for 'Fortran library'
Project wizard added for 'Fortran DLL'
Project wizard added for 'Console application'
Project wizard added for 'D application'
Project wizard added for 'FLTK project'
Project wizard added for 'GLFW project'
Project wizard added for 'GLUT project'
Project wizard added for 'GTK+ project'
Project wizard added for 'Irrlicht project'
Project wizard added for 'Lightfeather project'
Project wizard added for 'Matlab project'
Project wizard added for 'OpenCV project'
Project wizard added for 'OpenGL project'
Project wizard added for 'Ogre project'
Project wizard added for 'Code::Blocks plugin'
Project wizard added for 'QT4 project'
Project wizard added for 'SDL project'
Project wizard added for 'SFML project'
Project wizard added for 'Static library'
Project wizard added for 'Shared library'
Project wizard added for 'wxWidgets project'
Build-target wizard added for 'Console'
Build-target wizard added for 'Static library'
Build-target wizard added for 'wxWidgets'
Project wizard added for 'ARM Project'
Project wizard added for 'AVR Project'
Project wizard added for 'TriCore Project'
Project wizard added for 'PowerPC Project'
Project wizard added for 'MCS51 Project'
File(s) wizard added for 'Empty file'
File(s) wizard added for 'C/C++ source'
File(s) wizard added for 'C/C++ header'
File(s) wizard added for 'Fortran source'
Scripted wizard plugin activated
DoxyBlocks plugin activated
CppCheck plugin activated
Class wizard plugin activated
Code statistics plugin activated
Regular expressions testbed plugin activated
SmartIndentPython plugin activated
Keyboard shortcuts plugin activated
Environment variabl[New Thread 0x7fffe56b7700 (LWP 10701)]

(codeblocks:10612): Gtk-CRITICAL **: IA__gtk_tree_model_iter_nth_child: assertion 'n >= 0' failed
[New Thread 0x7fffce7fc700 (LWP 10703)]
[Thread 0x7fffce7fc700 (LWP 10703) exited]
[Thread 0x7fffceffd700 (LWP 10626) exited]

** (codeblocks:10612): CRITICAL **: murrine_style_draw_box: assertion 'width >= -1' failed
es plugin activated
SmartIndentXML plugin activated
Code snippets plugin activated
SmartIndentCpp plugin activated
SmartIndentLua plugin activated
Todo List plugin activated
SmartIndentFortran plugin activated
ToolsPlus plugin activated
SpellChecker plugin activated
ThreadSearch plugin activated
Added compiler "GNU GCC Compiler"
Added compiler "Intel C/C++ Compiler"
Added compiler "GDC D Compiler"
Added compiler "GNU Fortran Compiler"
Added compiler "G95 Fortran Compiler"
Added compiler "GNU GCC Compiler for ARM"
Added compiler "GNU GCC Compiler for PowerPC (HighTec)"
Added compiler "PGI Fortran Compiler"
Added compiler "GNU GCC Compiler for LM32"
Added compiler "Small Device C Compiler"
Added compiler "GNU GCC Compiler for MSP430 (HighTec)"
Added compiler "*No Compiler*"
Added compiler "GNU GCC Compiler for LM8"
Added compiler "Tiny C Compiler"
Added compiler "Digital Mars D Compiler"
Added compiler "LLVM D Compiler"
Added compiler "GNU GCC Compiler for ZPU"
Added compiler "GNU GCC Compiler for Blackfin"
Added compiler "GNU GCC Compiler for TriCore (HighTec)"
Added compiler "LLVM Clang Compiler"
Added compiler "GNU GCC Compiler for AVR"
Added compiler "mingw_cross_compiler"
Compiler plugin activated
Header Fixup plugin activated
BYO Games plugin activated
Valgrind plugin activated
Foreign projects importer plugin activated
ReopenEditor plugin activated
HexEditor plugin activated
Autosave plugin activated
Debugger plugin activated
IncrementalSearch plugin activated
wxSmith - Aui plugin activated
MouseSap plugin activated
Code completion plugin activated
Symbol Table Plugin plugin activated
Library finder plugin activated
BrowseTracker plugin activated
Loading toolbar...
ClassBrowser::UpdateClassBrowserView(): No active project available.
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
Initializing plugins...
Generated file /home/uwake/programs/wx/wxsmith/testApp.h
Project's base path: /home/uwake/programs/wx/wxsmith/
Project's common toplevel path: /home/uwake/programs/wx/wxsmith/
Generated file /home/uwake/programs/wx/wxsmith/testApp.cpp
Generated file /home/uwake/programs/wx/wxsmith/testMain.h
Generated file /home/uwake/programs/wx/wxsmith/testMain.cpp
Generated file /home/uwake/programs/wx/wxsmith/wxsmith/testframe.wxs
Generated file /home/uwake/programs/wx/wxsmith/wx_pch.h
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicod[New Thread 0x7fffceffd700 (LWP 10707)]
e 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla uni[Thread 0x7fffceffd700 (LWP 10707) exited]
[New Thread 0x7fffa7fff700 (LWP 10763)]
[New Thread 0x7fffceffd700 (LWP 10821)]
versal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Removed test from all deps

<to be continued ...>
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: awake on June 01, 2017, 06:28:18 pm
Backtrace continued:

Code
NativeParser::DeleteParser(): Deleting parser for project 'test'!
ClassBrowser::UpdateClassBrowserView(): No active project available.
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
Loading project file...
Parsing project file...
Loading target gtk
Loading project files...
6 files loaded
Done loading project in 2ms
Project's base path: /home/uwake/programs/wx/wxsmith/
Project's common toplevel path: /home/uwake/programs/wx/wxsmith/
NativeParser::DoFullParsing(): Adding cpp/c files to batch-parser
NativeParser::DoFullParsing(): Added 2 source file(s) for project 'test' to batch-parser...
ClassBrowser::UpdateClassBrowserView(): No active project available.
NativeParser::CreateParser(): Finish creating a new parser for project 'test'
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
NativeParser::OnParserStart(): Starting batch parsing for project 'test'...
NativeParser::OnParserEnd(): Project 'test' parsing stage done!
Project 'test' parsing stage done (6 total parsed files, 328 tokens in 0 minute(s), 0.032 seconds).
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final[Thread 0x7fffceffd700 (LWP 11012) exited]
 encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Reparsing when file changed: /home/uwake/programs/wx/wxsmith/testMain.cpp
NativeParser::OnParserStart(): Starting re-parsing for project 'test'...
Project 'test' parsing stage done (6 total parsed files, 328 tokens in 0 minute(s), 0.007 seconds).
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicod[Thread 0x7fffa7fff700 (LWP 11011) exited]

Thread 1 "codeblocks" received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) quit
A debugging session is active.

Inferior 1 [process 10612] will be killed.

Quit anyway? (y or n) y
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: awake on June 01, 2017, 06:30:51 pm
In both of these backtraces, I notice a warning about a library mismatch (near the beginning), and a couple of assertion failures - not sure if these are clues or false leads ...
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: oBFusCATed on June 01, 2017, 06:51:42 pm
Sorry but there is no info about backtraces in all three logs.
Please make sure you've installed the debug symbols (-dbg packages) and when codeblocks crashes make sure to execute the bt command of "thread apply all bt" command.
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: oBFusCATed on June 01, 2017, 06:53:28 pm
Also make sure to disable the class browser in the Settings -> Editor -> Code completion!
This is known to cause many random problems and crashes.
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: awake on June 01, 2017, 08:18:50 pm
Ah, I see - I didn't scroll down far enough in the wiki page. My apologies, and thanks for being patient with me.

This time it took a couple of tries before it crashed - I kept adding some complexity to the frame, saving, closing the project. On the third round, it crashed. I'm assuming you want just the part that is shown once I issue the backtrace commands; that is what I have included below:

Code
Thread 1 "codeblocks" received signal SIGSEGV, Segmentation fault.
0x000055555af22240 in ?? ()
(gdb) bacjkgtrace full
#0  0x000055555af22240 in  ()
#1  0x0000555555674636 in MainFrame::OnEditMenuUpdateUI(wxUpdateUIEvent&) (this=0x555555ec25a0, event=...) at main.cpp:4050
        ed = 0x0
        eb = 0x55555b0d5000
        hasSel = <optimized out>
        canUndo = true
        canRedo = false
        canPaste = <optimized out>
        canCut = false
        canSelAll = false
        mbar = 0x555556323480
#2  0x00007ffff543306e in wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#3  0x00007ffff55b8b05 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#4  0x00007ffff55b8bfb in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5  0x00007ffff55b8fab in wxEvtHandler::TryHereOnly(wxEvent&) () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#6  0x00007ffff55b8db3 in wxEvtHandler::DoTryChain(wxEvent&) () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#7  0x00007ffff55b9095 in wxEvtHandler::ProcessEvent(wxEvent&) () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#8  0x00007ffff5f287c8 in wxWindowBase::TryAfter(wxEvent&) () at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#9  0x00007ffff5f06a86 in wxToolBarBase::UpdateWindowUI(long) () at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#10 0x00007ffff5f29dd3 in wxWindowBase::SendIdleEvents(wxIdleEvent&) () at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#11 0x00007ffff5f29e20 in wxWindowBase::SendIdleEvents(wxIdleEvent&) () at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#12 0x00007ffff5da125f in wxFrame::SendIdleEvents(wxIdleEvent&) () at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#13 0x00007ffff5de76dd in wxAppBase::ProcessIdle() () at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#14 0x00007ffff5cf42e6 in wxApp::DoIdle() () at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#15 0x00007ffff5cf43c3 in  () at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#16 0x00007ffff437522a in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007ffff43755e0 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007ffff4375902 in g_main_loop_run () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007ffff3b07507 in gtk_main () at /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#20 0x00007ffff5d14335 in wxGUIEventLoop::DoRun() () at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#21 0x00007ffff5474edb in wxEventLoopBase::Run() () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#22 0x00007ffff543a3d6 in wxAppConsoleBase::MainLoop() () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#23 0x00005555555ee09a in CodeBlocksApp::OnRun() (this=0x555555a1c7f0) at app.cpp:850
        retval = <optimized out>
#24 0x00007ffff54c6930 in wxEntry(int&, wchar_t**) () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#25 0x00005555555d647e in main(int, char**) (argc=1, argv=<optimized out>) at app.cpp:322
(gdb) info registerts
rax            0x55555b263360 93825089811296
rbx            0x555556323480 93825006711936
rcx            0x0 0
rdx            0x7ffff62ae8b0 140737323395248
rsi            0x0 0
rdi            0x55555b0d5000 93825088180224
rbp            0x0 0x0
rsp            0x7fffffffd6c8 0x7fffffffd6c8
r8             0x4 4
r9             0x1 1
r10            0x0 0
r11            0x0 0
r12            0x555555ec25a0 93825002120608
r13            0x55555b0d5000 93825088180224
r14            0x7ffff58578f0 140737312553200
r15            0x0 0
rip            0x55555af22240 0x55555af22240
eflags         0x10202 [ IF RF ]
cs             0x33 51
ss             0x2b 43
ds             0x0 0
es             0x0 0
fs             0x0 0
gs             0x0 0
(gdb) x/16i $pc
=> 0x55555af22240: rcr    $0xe4,%al
   0x55555af22243: pop    %rdx
   0x55555af22244: push   %rbp
   0x55555af22245: push   %rbp
   0x55555af22246: add    %al,(%rax)
   0x55555af22248: add    %al,(%rax)
   0x55555af2224a: add    %al,(%rax)
   0x55555af2224c: add    %al,(%rax)
   0x55555af2224e: add    %al,(%rax)
   0x55555af22250: add    %al,(%rax)
   0x55555af22252: add    %al,(%rax)
   0x55555af22254: add    %al,(%rax)
   0x55555af22256: add    %al,(%rax)
   0x55555af22258: add    %al,(%rax)
   0x55555af2225a: add    %al,(%rax)
   0x55555af2225c: add    %al,(%rax)
(gdb) thread apply all backtrace

Thread 13 (Thread 0x7fffceffd700 (LWP 11741)):
#0  0x00007ffff51c2510 in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffff5587a43 in  () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#2  0x00007ffff5588494 in  () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#3  0x00007fffb1297552 in ClassBrowserBuilderThread::Entry() (this=0x55555a9fe4d0) at classbrowserbuilderthread.cpp:204
#4  0x00007ffff5586c72 in wxThread::CallEntry() () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5  0x00007ffff558f303 in  () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#6  0x00007ffff51bc6da in start_thread (arg=0x7fffceffd700) at pthread_create.c:456
#7  0x00007ffff495717f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 12 (Thread 0x7fffe56b7700 (LWP 11687)):
#0  0x00007ffff494cf73 in select () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fffbb77be46 in MonDescriptors::do_select() (this=0x7fffe56b5790) at directorymonitor.cpp:70
#2  0x00007fffbb77be46 in DirMonitorThread::Entry() (this=0x555557076f50) at directorymonitor.cpp:164
#3  0x00007ffff5586c72 in wxThread::CallEntry() () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#4  0x00007ffff558f303 in  () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5  0x00007ffff51bc6da in start_thread (arg=0x7fffe56b7700) at pthread_create.c:456
#6  0x00007ffff495717f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 11 (Thread 0x7fffb1229700 (LWP 11686)):
#0  0x00007ffff51c2510 in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffff5587a43 in  () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#2  0x00007ffff5588494 in  () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#3  0x00007ffff76aeed3 in cbThreadPool::cbWorkerThread::Entry() (this=0x555556faf250) at cbthreadpool.cpp:202
#4  0x00007ffff5586c72 in wxThread::CallEntry() () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5  0x00007ffff558f303 in  () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#6  0x00007ffff51bc6da in start_thread (arg=0x7fffb1229700) at pthread_create.c:456
#7  0x00007ffff495717f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 9 (Thread 0x7fffcf7fe700 (LWP 11668)):
#0  0x00007ffff51c2510 in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffff5587a43 in  () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#2  0x00007ffff5588494 in  () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#3  0x00007ffff7775a3a in BackgroundThread::Entry() (this=0x5555560f7a58) at ./backgroundthread.h:152
#4  0x00007ffff5586c72 in wxThread::CallEntry() () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5  0x00007ffff558f303 in  () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#6  0x00007ffff51bc6da in start_thread (arg=0x7fffcf7fe700) at pthread_create.c:456
#7  0x00007ffff495717f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 8 (Thread 0x7fffcffff700 (LWP 11667)):
#0  0x00007ffff51c2510 in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffff5587a43 in  () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#2  0x00007ffff5588494 in  () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#3  0x00007ffff7775a3a in BackgroundThread::Entry() (this=0x5555560f7a20) at ./backgroundthread.h:152
#4  0x00007ffff5586c72 in wxThread::CallEntry() () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5  0x00007ffff558f303 in  () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#6  0x00007ffff51bc6da in start_thread (arg=0x7fffcffff700) at pthread_create.c:456
#7  0x00007ffff495717f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 7 (Thread 0x7fffe4ca5700 (LWP 11666)):
#0  0x00007ffff51c2510 in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffff5587a43 in  () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#2  0x00007ffff5588494 in  () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#3  0x00007ffff7775a3a in BackgroundThread::Entry() (this=0x5555560f79e8) at ./backgroundthread.h:152
#4  0x00007ffff5586c72 in wxThread::CallEntry() () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5  0x00007ffff558f303 in  () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#6  0x00007ffff51bc6da in start_thread (arg=0x7fffe4ca5700) at pthread_create.c:456
#7  0x00007ffff495717f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 4 (Thread 0x7fffe74b6700 (LWP 11661)):
#0  0x00007ffff494b18d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007ffff4375576 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff437568c in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fffe8b4b46d in  () at /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#4  0x00007ffff439cf65 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff51bc6da in start_thread (arg=0x7fffe74b6700) at pthread_create.c:456
#6  0x00007ffff495717f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 3 (Thread 0x7fffe7ee9700 (LWP 11660)):
#0  0x00007ffff494b18d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007ffff4375576 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff4375902 in g_main_loop_run () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff092a476 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007ffff439cf65 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff51bc6da in start_thread (arg=0x7fffe7ee9700) at pthread_create.c:456
#6  0x00007ffff495717f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 2 (Thread 0x7fffe86ea700 (LWP 11659)):
#0  0x00007ffff494b18d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007ffff4375576 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff437568c in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff43756d1 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff439cf65 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff51bc6da in start_thread (arg=0x7fffe86ea700) at pthread_create.c:456
#6  0x00007ffff495717f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 1 (Thread 0x7ffff7fac280 (LWP 11655)):
#0  0x000055555af22240 in  ()
#1  0x0000555555674636 in MainFrame::OnEditMenuUpdateUI(wxUpdateUIEvent&) (this=0x555555ec25a0, event=...) at main.cpp:4050
#2  0x00007ffff543306e in wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#3  0x00007ffff55b8b05 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#4  0x00007ffff55b8bfb in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5  0x00007ffff55b8fab in wxEvtHandler::TryHereOnly(wxEvent&) () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#6  0x00007ffff55b8db3 in wxEvtHandler::DoTryChain(wxEvent&) () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#7  0x00007ffff55b9095 in wxEvtHandler::ProcessEvent(wxEvent&) () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#8  0x00007ffff5f287c8 in wxWindowBase::TryAfter(wxEvent&) () at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#9  0x00007ffff5f06a86 in wxToolBarBase::UpdateWindowUI(long) () at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#10 0x00007ffff5f29dd3 in wxWindowBase::SendIdleEvents(wxIdleEvent&) () at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#11 0x00007ffff5f29e20 in wxWindowBase::SendIdleEvents(wxIdleEvent&) () at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#12 0x00007ffff5da125f in wxFrame::SendIdleEvents(wxIdleEvent&) () at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#13 0x00007ffff5de76dd in wxAppBase::ProcessIdle() () at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#14 0x00007ffff5cf42e6 in wxApp::DoIdle() () at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#15 0x00007ffff5cf43c3 in  () at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#16 0x00007ffff437522a in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007ffff43755e0 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007ffff4375902 in g_main_loop_run () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007ffff3b07507 in gtk_main () at /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#20 0x00007ffff5d14335 in wxGUIEventLoop::DoRun() () at /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#21 0x00007ffff5474edb in wxEventLoopBase::Run() () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#22 0x00007ffff543a3d6 in wxAppConsoleBase::MainLoop() () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#23 0x00005555555ee09a in CodeBlocksApp::OnRun() (this=0x555555a1c7f0) at app.cpp:850
#24 0x00007ffff54c6930 in wxEntry(int&, wchar_t**) () at /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#25 0x00005555555d647e in main(int, char**) (argc=1, argv=<optimized out>) at app.cpp:322
(gdb) quit
A debugging session is active.

Inferior 1 [process 11655] will be killed.

Quit anyway? (y or n) y
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: Commaster on June 01, 2017, 08:30:04 pm
That spot looks really different from the nightly source... Maybe it has already been fixed? (Although it looks like the function calls have been deoptimised)
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: awake on June 02, 2017, 07:37:40 pm
The more I try to use C:B, the more strange behavior and unexpected crashes I am getting - yes, with the class browser disabled. I'm getting the same issues whether using the Ubuntu repository version of C:B or the ppa:damien-moore/codeblocks version. Several attachments included below to try to demonstrate / duplicate / diagnose the problems I'm having.

First attachment below is a C:B project that has worked fine in the past (e.g., before the recent upgrade to Ubuntu 17.04), but now when I attempt to go into wxsmith to adjust the layout, wxsmith only displays part of the layout, and when the project is closed, it attempts to update the .h and .cpp files to reflect an utterly-messed-up version. OR, sometimes when the project is closed, the program simply hangs.

Second attachment below is a backtrace of an example of the latter, C:B hanging when attempting to exit the attached sample project.

More and more I'm wondering about incompatible libraries. Here is a list of the libraries found running find -iname libwx* from /usr:

Code
cd /usr
find -iname libwx*

./share/lintian/overrides/libwxgtk3.0-0v5
./share/lintian/overrides/libwxbase3.0-0v5
./share/doc/libwxgtk3.0-0v5
./share/doc/libwxsmithlib0
./share/doc/libwxbase3.0-0v5
./lib/libwxsmithlib.so.0.0.1
./lib/x86_64-linux-gnu/libwx_gtk2u_aui-3.0.so.0.2.0
./lib/x86_64-linux-gnu/libwx_baseu_xml-3.0.so.0
./lib/x86_64-linux-gnu/libwx_baseu_xml-3.0.so.0.2.0
./lib/x86_64-linux-gnu/libwx_gtk2u_adv-3.0.so.0.2.0
./lib/x86_64-linux-gnu/libwx_gtk2u_qa-3.0.so.0
./lib/x86_64-linux-gnu/libwx_gtk2u_adv-3.0.so.0
./lib/x86_64-linux-gnu/libwx_gtk2u_ribbon-3.0.so.0.2.0
./lib/x86_64-linux-gnu/libwx_gtk2u_html-3.0.so.0.2.0
./lib/x86_64-linux-gnu/libwx_gtk2u_gl-3.0.so.0.2.0
./lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
./lib/x86_64-linux-gnu/libwx_gtk2u_stc-3.0.so.0
./lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0.2.0
./lib/x86_64-linux-gnu/libwx_gtk2u_html-3.0.so.0
./lib/x86_64-linux-gnu/libwx_gtk2u_propgrid-3.0.so.0
./lib/x86_64-linux-gnu/libwx_gtk2u_aui-3.0.so.0
./lib/x86_64-linux-gnu/libwx_gtk2u_qa-3.0.so.0.2.0
./lib/x86_64-linux-gnu/libwx_baseu_net-3.0.so.0.2.0
./lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0.2.0
./lib/x86_64-linux-gnu/libwx_gtk2u_xrc-3.0.so.0
./lib/x86_64-linux-gnu/libwx_gtk2u_xrc-3.0.so.0.2.0
./lib/x86_64-linux-gnu/libwx_baseu_net-3.0.so.0
./lib/x86_64-linux-gnu/libwx_gtk2u_stc-3.0.so.0.2.0
./lib/x86_64-linux-gnu/libwx_gtk2u_gl-3.0.so.0
./lib/x86_64-linux-gnu/libwx_gtk2u_propgrid-3.0.so.0.2.0
./lib/x86_64-linux-gnu/libwx_gtk2u_richtext-3.0.so.0.2.0
./lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
./lib/x86_64-linux-gnu/libwx_gtk2u_richtext-3.0.so.0
./lib/x86_64-linux-gnu/libwx_gtk2u_ribbon-3.0.so.0
./lib/codeblocks/wxContribItems/libwxchartctrl.so.0.0.1
./lib/codeblocks/wxContribItems/libwxmathplot.so.0
./lib/codeblocks/wxContribItems/libwxmathplot.so.0.0.1
./lib/codeblocks/wxContribItems/libwxkwic.so.0
./lib/codeblocks/wxContribItems/libwxflatnotebook.so.0
./lib/codeblocks/wxContribItems/libwxcustombutton.so.0
./lib/codeblocks/wxContribItems/libwxkwic.so.0.0.1
./lib/codeblocks/wxContribItems/libwxspeedbutton.so.0.0.1
./lib/codeblocks/wxContribItems/libwxflatnotebook.so.0.0.1
./lib/codeblocks/wxContribItems/libwximagepanel.so.0.0.1
./lib/codeblocks/wxContribItems/libwximagepanel.so.0
./lib/codeblocks/wxContribItems/libwxspeedbutton.so.0
./lib/codeblocks/wxContribItems/libwxcustombutton.so.0.0.1
./lib/codeblocks/wxContribItems/libwxchartctrl.so.0
./lib/codeblocks/wxContribItems/libwxled.so.0.0.1
./lib/codeblocks/wxContribItems/libwxled.so.0
./lib/codeblocks/plugins/libwxsmith.so
./lib/codeblocks/plugins/libwxsmithcontribitems.so
./lib/codeblocks/plugins/libwxSmithAui.so
./lib/libwxsmithlib.so.0

 I notice in this list that there is no monolithic libwx library - the documentation on building C:B from source suggests that this is a necessity. Is this perhaps a part of the problem?
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: oBFusCATed on June 02, 2017, 08:33:16 pm
Libraries are fine. Just wx 3.0 had too many changes that have landed in a single batch and 16.01 and even trunk has not been fixed to reflect them.

I've seen the corrupted .h and .cpp files, but I'm not sure how to reproduce it.
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: oBFusCATed on June 02, 2017, 10:22:13 pm
Ok, I've got the crash and the file corruption using the steps. Now lets see if I can fix it...
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: awake on June 02, 2017, 10:53:45 pm
oBFusCATed, thanks so much. As a test, thinking perhaps one of the other programs that I have loaded had created problems with the libraries, I created a new virtual machine using VirtualBox and set it up with a brand new installation of Ubuntu 17.04. At this point, there were no libwx* libraries in /usr. I then loaded codeblocks and  codeblocks-contrib, and opened the sample project that I included above. Once again, wxsmith only loaded part of the widgets, never showed its toolbar, and C:B crashed when I closed it. Don't know if this helps, but one more data point ...
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: awake on June 03, 2017, 01:10:35 am
And an additional data point that may or may not be any help - I also set up a virtual machine with a fresh installation of Ubuntu 16.04. Did all updates; no libwx* libraries in /usr at this point. Installed codeblocks from the Ubuntu repositories - and had the same exact trouble. So ... not something specific about Ubuntu 17.04, since C:B was definitely working before on 16.04. :(
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: oBFusCATed on June 04, 2017, 02:27:40 pm
The corruption of the files should be fixed in trunk.

I'm no longer able to reproduce the crash.
Can you try building from trunk and let me know if the crash is still present?
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: awake on June 04, 2017, 06:03:42 pm
I will try! My first feeble attempts to compile C:B were not successful. Are these still the most up-to-date instructions: http://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Linux ? This advocates building against wxWidgets 2.8 - but I note that 16.01 has been built against wxWidgets 3.0 for some time. What is the current recommendation - build against 2.8? Build against 3.02? or 3.03? I presume it is premature to build against 3.1?
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: oBFusCATed on June 04, 2017, 06:17:03 pm
Use the latest version of wx3.0.x that is available as a package on your system.
If you build against wx2.8 the problem won't happen.
And for sure you don't want to build wx from scratch!
There should be a -dev or -devel package for wxGTK. Install it and you're good to go.
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: awake on June 04, 2017, 11:51:25 pm
oBFusCATed,

I feel like I am being terribly dense and troublesome - but why not build wx from scratch? That's what I normally have done for developing programs. Is it that wx has to be built a certain way ... ?

Again, thank you so much for all the trouble you have taken, and your patience with me -- I'm not a newbie with programming or with C:B, but this adventure has taken me into areas that I simply have never done before.
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: awake on June 05, 2017, 01:12:54 am
Okay, I compiled the trunk against the repository wxWidgets development environment - 3.02. Compiled fine. Started C:B and opened the project attached in an earlier thread - the one that sent me down this path in the first place. Once again, wxsmith is not showing the full contents of the frame, nor is it showing its toolbars. When I then close the project, C:B hangs with a blank dialog box.

Attached are the C:B project that I used (which used to work just fine in earlier versions), and a backtrace.
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: oBFusCATed on June 05, 2017, 01:50:04 am
You're hitting this problem: http://trac.wxwidgets.org/ticket/16636
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: oBFusCATed on June 05, 2017, 02:29:40 am
Can you show me a screenshot of the broken rendering of the frame?
I don't get any crashes with your project. :(
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: awake on June 05, 2017, 03:36:34 pm
Here is a screen shot of the incomplete rendering of the frame - you can see in the explorer on the left that there ought to be radio buttons, spin control, etc. - but on the right, only the first set of in-most sizer boxes are rendering, a static sizer box with a list box that also contains a horizontal sizer with a couple of buttons.

The second screen shot shows what it looks like when it freezes on trying to close the project. Interestingly, it doesn't always freeze - the first time today, it let me close out the project, asking if I wanted to save changes. The second time, the empty dialog box as shown is the first and only thing that appears on trying to close the project.
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: oBFusCATed on June 05, 2017, 05:17:05 pm
For me everything renders fine. :(

Can someone with ubuntu try to reproduce the problem?
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: awake on June 05, 2017, 06:18:11 pm
Trying a couple of new things to see if they shed any light.

So, at this point, I have a working version of C:B. I don't know if building it against wx-2.8 will have any limitations - ? But so glad to be able to get back to work on some projects!

oBFusCATed, thank you, thank you, thank you again for all of your help. I hope that the data I've provided will help narrow the focus to fix future versions of the Ubuntu version of C:B.
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: oBFusCATed on June 05, 2017, 07:44:20 pm
The problem is not in the CPU, but I guess in the GPU drivers. Or it might be something that is happening only on ubuntu.

If you just open the attached project does it render correctly or it is always broken?
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: oBFusCATed on June 05, 2017, 09:30:26 pm
Do you have scrollbars in the wxsmith view? I see some UI problems when using the scrollbars.
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: awake on June 05, 2017, 09:52:01 pm
Yes, with the broken version(s) of C:B, wxsmith never renders the attached project correctly, and yes, there *would* be a scrollbar in the UI view if it rendered completely. So maybe the scrollbar problem is at the heart of this whole mess?

As I noted in my previous post, I was able to get a working version of C:B trunk by compiling against wxWidgets-2.8.12.

Out of curiosity, I went back to the virtual machine set up on my 4th-gen Core i5 computer and compiled wxWidgets 3.03 using --without-subdirs --enable-xrc --enable-unicode --enable-monolithic. I then compiled the C:B trunk against this version of wxWidgets, and it compiled with no problems. The result *mostly* works - it will render the project correctly, but when attempting to scroll down to see the rest of it, the rendering flickers, briefly showing the rest of the frame, but then blanking out. However, if I scroll down part way and hit F2 to make the logs disappear, it will show almost correctly - the exception  being that a spacer is showing up only as a line.

So, with additional curiosity, I came back to the laptop with the 7th-gen Core i5, uninstalled my now-working copy of C:B+wxWidgets 2.8, and  did the same as above - created a wxWidgets 3.03 monolithic library, and compiled a fresh version of the trunk against it. Again, it compiled fine, and again, it *mostly* works - same flickering when trying to scroll down to see the rest of the frame. This time, however, hitting F2 does not result in the frame showing correctly - the bottom part still briefly flickers and then blanks out. So again a slight difference in how it runs on this processor (or as you say, likely GPU) vs. the other.

But mostly is not good enough, so, I've gone back to the C:B + wxWidgets 2.8 version. Again, I don't know what, if anything, I will lose by running C:B off of 2.8 instead of 3.0, but AT LEAST IT WORKS!!!

And again, oBFfusCATed, thank you so very much for all the time you have taken on this. Even though my solution has turned out to be to regress to wxWidgets 2.8, I hope the experience provides some insights into ongoing or future problems that may show up as C:B continues to transition to wxWidgets 3.x!
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: cacb on June 06, 2017, 04:07:14 pm
I used to build my own version of Code::Blocks under Kubuntu based on Jens Lody tarballs, but lately it was very unstable so I thought I had done something wrong.

I cleaned up everything and installed C::B 16.01 from the Kubuntu 17.04 repository instead, but even this version crashes much to often to be comfortable a "save everything" every 30 seconds is my current mode. I cannot provide much detail, but somehow these issues seem related to this thread.

Just to let you know that there seems to be stability issues under recent *ubuntus.
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: awake on June 06, 2017, 05:37:21 pm
cacb, glad to know I'm not the only one! I hope my experience above will be helpful for you or others in finding a work-around.
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: oBFusCATed on June 06, 2017, 08:25:47 pm
Just to let you know that there seems to be stability issues under recent *ubuntus.
Have you disabled the symbol browser? If you're not using wxSmith then your issue is related to something else. In this topic we're discussing wxSmith related crashes.
Also to make your reports useful please provide backtraces. Here https://wiki.ubuntu.com/Backtrace you can read how to gather them.
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: cacb on June 06, 2017, 10:12:45 pm
Have you disabled the symbol browser?

Are you referring to the plugin called "Symbol Table Plugin" or something else? That plugin is currently enabled.

Reading through the thread I noticed "Settings -> Editor -> Code completion" which I now disabled.

If you're not using wxSmith then your issue is related to something else. In this topic we're discussing wxSmith related crashes.

I do use wxSmith, so it could very well be related to it.

Also to make your reports useful please provide backtraces. Here https://wiki.ubuntu.com/Backtrace you can read how to gather them.

I will have a look at that, thanks.

EDIT: I notice that I have a couple of pretty large files in /var/crash/
The latest one is called _usr_bin_codeblocks.1000.crash and is 21.2 MB
This is from a wxSmith session that crashed .

Would it be useful?

Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: oBFusCATed on June 07, 2017, 12:44:04 am
Would it be useful?
These are probably core files. So you can load them in gdb and then try to see if the backtrace produced by the bt or thread apply all bt commands is any useful.

@awake: The drawing artefacts should be fixed in rev 11086. Can you try it against wx3.0 and tell me if this really the case?
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: awake on June 07, 2017, 07:21:12 pm
Sure, I'll give it a try - but it will be tomorrow at the earliest; I'm away from the office today.
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: awake on June 08, 2017, 08:05:51 pm
oBFusCATed,

I was able to try this today - using revision 11087 rather than 11086 - on my virtual machine on the 4th-gen i5 processor. I compiled rev 11087 against a monolithic build of wxGTK 3.03. All went smoothly, and yes, the flickering is fixed and the scroll bars work smoothly. I haven't tried this on my laptop with the 7th gen i5 - which as noted above, seemed to be slightly less stable than the virtual machine - since I am actively back in process on a project, and, given that I have a working copy of C:B based on wxGTK 2.8, I didn't want to take the time to uninstall and re-install - "if it ain't broke, don't fix it." :)

Again, thanks so much for your work and your patient guidance through this process!
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: awake on June 09, 2017, 03:07:57 am
oBFusCATed,

I also had a chance to set up a virtual Ubuntu 17.04 machine on my laptop with the 7th-gen i5 processor. There too the problem with the flickering / scrollbars appears to be fixed.

In the meantime, however, I've noticed a different problem, but I'm not sure if it counts as a wxsmith problem or a wxWidgets problem.

In the newer versions of wxWidgets (e.g., 3.0 and up), there is a recommendation that a control included inside a static box sizer should be created with the static box (contained within the sizer) as the parent, rather than the panel or other window that is normally used as the parent. Why does this matter? Well, it probably doesn't, most of the time ... until I spent two hours trying to figure out why I couldn't get drag-and-drop to work on a listbox inside a static box sizer. If the listbox is in a regular sizer, drag-and-drop works fine; if it is inside a static box sizer AND the static box is used as the parent, it also works fine. But if it is in a static box sizer and the underlying panel (for example) is the parent -- which is how wxsmith currently constructs the code -- then drag-and-drop will not work, and as I can testify there is no obvious reason why not.

As I said, it could be argued that this is a wxWidgets problem ... but they DO recommend using the static box as the parent, and if that is done (for all of the widgets that are inside the static box sizer), then drag and drop works as advertised ... so perhaps wxsmith ought to be changed to reflect that recommendation?

I'm also not sure if this is the appropriate way or place to bring this up - happy to take guidance on how I should offer this suggestion!
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: oBFusCATed on June 09, 2017, 08:55:26 am
As I said, it could be argued that this is a wxWidgets problem ... but they DO recommend using the static box as the parent, and if that is done (for all of the widgets that are inside the static box sizer), then drag and drop works as advertised ... so perhaps wxsmith ought to be changed to reflect that recommendation?
Do you have a link with their recommendation?
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: awake on June 09, 2017, 04:30:56 pm
Here you go - look under the Detailed Description: http://docs.wxwidgets.org/3.0/classwx_static_box.html

On looking back at it, it is not a very strongly worded recommendation: "Note that while the previous versions required that windows appearing inside a static box be created as its siblings (i.e. use the same parent as the static box itself), since wxWidgets 2.9.1 it is also possible to create them as children of wxStaticBox itself and you are actually encouraged to do it like this if compatibility with the previous versions is not important." (my emphasis added)

Certainly they do not spell out what the implications are for doing it the old way, e.g., that DnD won't work. (I wonder if anything else might not work properly in this situation - I've got some old gremlins that I've worked around, that might possibly be related to a similar issue ... have to do some digging. My guess is that the static box is "on top of" the other widgets, so they are not getting "seen" - but my guess probably reveals more about my ignorance of the inner workings of wxWidgets than anything else!)

I tried a simple test - create a frame, sizer, panel, sizer. Inside are two sizers, one a regular sizer and one a static box sizer. Inside each is a list box, set up to accept drag-and-drop files. Created the "old" way (as wxsmith does it now), the list box inside the regular sizer works just fine; the one in the static box is oblivious to attempts to drag and drop. I've come up with three possible alternatives:After thinking it through systematically in the list above, honestly, my best guess is that it would be better to leave wxsmith alone for the moment, and instead encourage wxWidgets to document this peculiarity of behavior and publish the possible work-arounds. My thinking is that there is probably still a large user base using pre-2.91 wxWidgets, and others who may switch from, say, 3.x to 2.8 because of problems - which would then break all of the code that wxsmith would have built - and it could get awfully confusing trying to anticipate which version is going to be used when.
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: oBFusCATed on June 09, 2017, 07:13:14 pm
Can you try to reproduce this problem in a wx sample and try to ask on same of wx's mailing lists if this is a bug or this is expected problem that couldn't be solved?
We could modify wxsmith, but we need to keep it compatible, so it can still generate wx2.8 code. Parts of c::b are done with wxsmith...
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: awake on June 12, 2017, 11:15:11 pm
Sure, I can give that a whirl. As noted, I came to the conclusion that it would be better NOT to try to change wxsmith - since it still needs to support 2.8. I'd say wx could label it a bug, or could simply offer [more easily found] clarity about the inconsistent behavior.
Title: Re: wxsmith crashing after upgrade to Ubuntu 17.04
Post by: awake on June 14, 2017, 07:08:31 pm
I have created a sample program to illustrate the problem, which I've included below in case anyone is interested. The problem may be limited to Linux (wxGTK) - ? In any case, I have reported it through the wxWidgets bug tracker, but since this is my first report, it will have to pass through the moderator(s). We'll see what happens ...

On Linux (maybe also Windows/MingW??), the following code can be compiled via command line as follows: g++ example.cpp `wx-config --cxxflags --libs` -o example

When run, the leftmost and rightmost listboxes will accept drag-and-drop of files from a browser, but the middle one will not; the difference is whether the parent is the underlying panel (appropriate for 2.8 builds, and how wxsmith currently generates the code) or is the static box attached to the wxStaticBoxSizer.

Code
#include "wx/wxprec.h"

#ifdef __BORLANDC__
#pragma hdrstop
#endif

#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif

#include <wx/app.h>
#include <wx/frame.h>
#include <wx/listbox.h>
#include <wx/menu.h>
#include <wx/panel.h>
#include <wx/sizer.h>
#include <wx/dnd.h>
#include <wx/intl.h>
#include <wx/string.h>


class testApp : public wxApp
{
    public:
        virtual bool OnInit();
};


class testFrame: public wxFrame
{
    public:

        testFrame(wxWindow* parent,wxWindowID id = -1);
        virtual ~testFrame();

    private:

        void OnQuit(wxCommandEvent& event);

        wxListBox* lbPlain;
        wxListBox* lbStatic1;
        wxListBox* lbStatic2;

        DECLARE_EVENT_TABLE()
};


class DF : public wxFileDropTarget
{
    public:

        DF ( wxListBox * lb_target );

        virtual bool OnDropFiles ( wxCoord x, wxCoord y, const wxArrayString & files );

    protected:

        wxListBox * m_target;
};


IMPLEMENT_APP(testApp);


bool testApp::OnInit()
{
    testFrame* Frame = new testFrame(0);
    Frame->Show();
    SetTopWindow(Frame);
   
    return true;
}


//#include <wx/msgdlg.h>


BEGIN_EVENT_TABLE(testFrame,wxFrame)
END_EVENT_TABLE()


testFrame::testFrame(wxWindow* parent,wxWindowID id)
{
    wxBoxSizer* bsOuter;
    wxPanel* Panel1;
    wxBoxSizer* bsInner;
    wxBoxSizer* bsPlain;
    wxStaticBoxSizer* bsStaticBox1;
    wxStaticBoxSizer* bsStaticBox2;
 
    Create(parent, id, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE, _T("id"));

    // Create the basic foundation: frame contains a standard box sizer (bsOuter)
    // which contains a panel (Panel1) which contains a standard box sizer (bsInner)

    bsOuter = new wxBoxSizer(wxHORIZONTAL);
    Panel1 = new wxPanel(this, wxID_ANY);
    bsInner = new wxBoxSizer(wxHORIZONTAL);
 
    // Create a standard sizer containing a listbox and place it in the inner sizer   

    bsPlain = new wxBoxSizer(wxHORIZONTAL);
    lbPlain = new wxListBox(Panel1, wxID_ANY);
    lbPlain->SetMinSize(wxSize(200,400));
    bsPlain->Add(lbPlain, 1, wxALL|wxEXPAND, 5);
    bsInner->Add(bsPlain, 1, wxALL|wxEXPAND, 5);

    // Create a Static Box sizer containing a listbox and place it in the inner sizer
    // (next to the "plain" sizer created above). Note that the list box it contains is
    // created according to the pre-2.9.1 rules, i.e., parent is Panel1

    bsStaticBox1 = new wxStaticBoxSizer(wxHORIZONTAL, Panel1, _("Static Box Sizer 1"));
    lbStatic1 = new wxListBox(Panel1, wxID_ANY);
    bsStaticBox1->Add(lbStatic1, 1, wxALL|wxEXPAND, 5);
    bsInner->Add(bsStaticBox1, 1, wxALL|wxEXPAND, 5);

    // Create another Static Box sizer containing a listbox and place it next to the
    // bsStaticBox1 created above. Note that the list box this one contains is
    // created according to the 2.9.1 and above rules, i.e., parent is the wxStaticBox
    // contained within the Static Box sizer.

    bsStaticBox2 = new wxStaticBoxSizer(wxHORIZONTAL, Panel1, _("Static Box Sizer 2"));
    lbStatic2 = new wxListBox(bsStaticBox2->GetStaticBox(), wxID_ANY);
    bsStaticBox2->Add(lbStatic2, 1, wxALL|wxEXPAND, 5);
    bsInner->Add(bsStaticBox2, 1, wxALL|wxEXPAND, 5);

    Panel1->SetSizer(bsInner);
    bsInner->Fit(Panel1);
    bsInner->SetSizeHints(Panel1);
    bsOuter->Add(Panel1, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
    SetSizer(bsOuter);
    bsOuter->Fit(this);
    bsOuter->SetSizeHints(this);

    lbPlain->SetDropTarget(new DF(lbPlain));
    lbStatic1->SetDropTarget(new DF(lbStatic2));
    lbStatic2->SetDropTarget(new DF(lbStatic2));
}


testFrame::~testFrame()
{
}


void testFrame::OnQuit(wxCommandEvent& event)
{
    Close();
}


DF::DF ( wxListBox * lb_target )
{
    m_target = lb_target;
}


bool DF::OnDropFiles ( wxCoord x, wxCoord y, const wxArrayString & files )
{
    m_target->Append(files);

    return true;
}