Author Topic: GUI window not visible  (Read 6717 times)

Offline pinneapple

  • Single posting newcomer
  • *
  • Posts: 4
GUI window not visible
« on: August 09, 2018, 04:59:50 pm »
Hello!
I've been using CodeBlocks for a while on Ubuntu 14.04 without problem, but suddenly the program stopped showing. When I open it (by command or not) the load image appears but nothing else happens, the program is open but I can't see it.

While loading
After loading

I've tried reinstalling CB and assuring the computer isn't detecting another screen, but it's not that.
Thanks
« Last Edit: August 09, 2018, 05:01:47 pm by pinneapple »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: GUI window not visible
« Reply #1 on: August 09, 2018, 07:58:41 pm »
What happens if you use gdb to debug codeblocks?
Start gdb /usr/bin/codeblocks and press ctrl-c to inspect the callstack (execute bt command) where cb is getting stuck.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline pinneapple

  • Single posting newcomer
  • *
  • Posts: 4
Re: GUI window not visible
« Reply #2 on: August 10, 2018, 08:29:55 am »
This is the callstack:
Code
#0  0x00007ffff4b00c9d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ffff64dbd06 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#2  0x00007ffff3d6cfe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff3d6d30a in g_main_loop_run ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff588d447 in gtk_main ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#5  0x00007ffff64ef28a in wxEventLoop::Run() ()
   from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#6  0x00007ffff6560b4c in wxAppBase::MainLoop() ()
   from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#7  0x0000000000446860 in ?? ()
#8  0x00007ffff5e26e5d in wxEntry(int&, wchar_t**) ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#9  0x0000000000435192 in ?? ()
#10 0x00007ffff4a31f45 in __libc_start_main (main=0x435180, argc=1,
    argv=0x7fffffffdf08, init=<optimized out>, fini=<optimized out>,
    rtld_fini=<optimized out>, stack_end=0x7fffffffdef8) at libc-start.c:287
#11 0x00000000004415bc in ?? ()
« Last Edit: August 10, 2018, 08:33:11 am by pinneapple »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: GUI window not visible
« Reply #3 on: August 10, 2018, 10:19:27 am »
Can you install the debug packages and try again?

https://wiki.ubuntu.com/Backtrace
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline pinneapple

  • Single posting newcomer
  • *
  • Posts: 4
Re: GUI window not visible
« Reply #4 on: August 13, 2018, 09:01:54 am »
Sorry, I'm a newbie. I installed the codeblocks-gdb and I don't know if I'm supposed to install any other debug symbols.

Here is the output following the post's commands:
Code
(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".
[New Thread 0x7fffea340700 (LWP 14122)]
[New Thread 0x7fffe9b3f700 (LWP 14123)]
[New Thread 0x7fffe3fff700 (LWP 14734)]
[New Thread 0x7fffe37fe700 (LWP 14735)]
[New Thread 0x7fffe2ffd700 (LWP 14736)]
[New Thread 0x7fffe27fc700 (LWP 14738)]
[New Thread 0x7fffe1ffb700 (LWP 14739)]
[New Thread 0x7fffe17fa700 (LWP 14740)]
[Thread 0x7fffe37fe700 (LWP 14735) exited]
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading menubar...
Autosave: loaded
wxSmithContribItems: loaded
EditorConfig: loaded
BrowseTracker: loaded
SmartIndentLua: loaded
SmartIndentXML: loaded
OpenFilesList: loaded
AStylePlugin: loaded
Cscope: loaded
wxSmithAui: loaded
HelpPlugin: loaded
CodeCompletion: loaded
HexEditor: loaded
Cccc: loaded
ClassWizard: loaded
SymTab: loaded
RegExTestbed: loaded
EnvVars: loaded
HeaderFixup: loaded
cbKeyBinder: loaded
MouseSap: loaded
OccurrencesHighlighting: loaded
CodeStat: loaded
CB_Koders: loaded
SmartIndentPython: loaded
FileManager: loaded
ToolsPlus: loaded
DoxyBlocks: loaded
Profiler: loaded
NassiShneidermanPlugin: loaded
IncrementalSearch: loaded
Valgrind: loaded
SmartIndentFortran: loaded
CodeSnippets: loaded
SmartIndentPascal: loaded
Debugger: loaded
lib_finder: loaded
copystrings: loaded
ThreadSearch: loaded
SmartIndentCpp: loaded
SpellChecker: loaded
SmartIndentHDL: loaded
Compiler: loaded
AutoVersioning: loaded
FilesExtensionHandler: loaded
CppCheck: loaded
ToDoList: loaded
ReopenEditor: loaded
wxSmith: loaded
wxSmithMime: loaded
Abbreviations: loaded
EditorTweaks: loaded
ScriptedWizard: loaded
ProjectsImporter: loaded
cbDragScroll: loaded
Exporter: loaded
BYOGames: loaded
Autosave plugin activated
wxSmith - Contrib Items plugin activated
EditorConfig plugin for Code::Blocks plugin activated
BrowseTracker plugin activated
SmartIndentLua plugin activated
SmartIndentXML plugin activated
Open files list plugin activated
Source code formatter (AStyle) plugin activated
Cscope plugin activated
wxSmith - Aui plugin activated
Help plugin plugin activated
Code completion plugin activated
HexEditor plugin activated
Cccc plugin activated
Class wizard plugin activated
Symbol Table Plugin plugin activated
Regular expressions testbed plugin activated
Environment variables plugin activated
Header Fixup plugin activated
Keyboard shortcuts plugin activated
MouseSap plugin activated
OccurrencesHighlighting plugin activated
Code statistics plugin activated
Koders query plugin activated
SmartIndentPython plugin activated
FileManager plugin activated
ToolsPlus plugin activated
DoxyBlocks plugin activated
Code profiler plugin activated
NassiShneidermanPlugin plugin activated
IncrementalSearch plugin activated
Valgrind plugin activated
SmartIndentFortran plugin activated
Code snippets plugin activated
SmartIndentPascal plugin activated
Debugger plugin activated
ClassBrowser::UpdateClassBrowserView(): No active project available.
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
Library finder plugin activated
Copy Strings to clipboard plugin activated
ThreadSearch plugin activated
SmartIndentCpp plugin activated
SpellChecker plugin activated
SmartIndentHDL 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 "Digital Mars D Compiler"
Added compiler "GNU GCC Compiler for PowerPC"
Added compiler "GNU GCC Compiler for TriCore"
Added compiler "PGI Fortran Compiler"
Added compiler "*No Compiler*"
Added compiler "Tiny C Compiler"
Added compiler "GNU GCC Compiler for MSP430"
Added compiler "Small Device C Compiler"
Added compiler "GNU GCC Compiler for AVR"
Added compiler "LLVM D Compiler"
Added compiler "LLVM Clang Compiler"
Compiler plugin activated
AutoVersioning plugin activated
Files extension handler plugin activated
CppCheck plugin activated
Todo List plugin activated
ReopenEditor plugin activated
wxSmith plugin activated
wxSmith - MIME plugin plugin activated
Abbreviations plugin activated
Editor Tweaks plugin: Building menu
Editor Tweaks plugin: making the menu 14
EditorTweaks 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 wiz^C[New Thread 0x7fffe37fe700 (LWP 14747)]
[New Thread 0x7fffbfbfa700 (LWP 14748)]
[New Thread 0x7fffbf3f9700 (LWP 14752)]
[Thread 0x7fffbf3f9700 (LWP 14752) exited]
[Thread 0x7fffe2ffd700 (LWP 14736) exited]

Program received signal SIGINT, Interrupt.
0x00007ffff4b00c9d in poll () at ../sysdeps/unix/syscall-template.S:81
81 ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) backtrace full
#0  0x00007ffff4b00c9d in poll () at ../sysdeps/unix/syscall-template.S:81
No locals.
#1  0x00007ffff64dbd06 in ?? () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#2  0x00007ffff3d6cfe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#3  0x00007ffff3d6d30a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#4  0x00007ffff588d447 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
No symbol table info available.
#5  0x00007ffff64ef28a in wxEventLoop::Run() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#6  0x00007ffff6560b4c in wxAppBase::MainLoop() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
No symbol table info available.
#7  0x0000000000446860 in CodeBlocksApp::OnRun (this=0x7d2890) at app.cpp:809
        retval = <optimized out>
#8  0x00007ffff5e26e5d in wxEntry(int&, wchar_t**) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
No symbol table info available.
#9  0x0000000000435192 in main (argc=1, argv=<optimized out>) at app.cpp:276
No locals.
(gdb) info registers
rax            0xfffffffffffffdfc -516
rbx            0x7ffff68ee3f1 140737329947633
rcx            0x7ffff4b00c9d 140737298566301
rdx            0x11d 285
rsi            0x4 4
rdi            0xc1f850 12712016
rbp            0xc1f850 0xc1f850
rsp            0x7fffffffdc20 0x7fffffffdc20
r8             0x0 0
r9             0x0 0
r10            0xb2b4ea7edac26 3143841568631846
r11            0x293 659
r12            0x4 4
r13            0x11d 285
r14            0x7ffff64dbcd0 140737325677776
r15            0x5 5
rip            0x7ffff4b00c9d 0x7ffff4b00c9d <poll+45>
eflags         0x293 [ CF AF SF IF ]
cs             0x33 51
ss             0x2b 43
ds             0x0 0
es             0x0 0
fs             0x0 0
gs             0x0 0
(gdb) x/16i $pc
=> 0x7ffff4b00c9d <poll+45>: mov    (%rsp),%rdi
   0x7ffff4b00ca1 <poll+49>: mov    %rax,%rdx
   0x7ffff4b00ca4 <poll+52>: callq  0x7ffff4b1bdc0 <__libc_disable_asynccancel>
   0x7ffff4b00ca9 <poll+57>: mov    %rdx,%rax
   0x7ffff4b00cac <poll+60>: add    $0x8,%rsp
   0x7ffff4b00cb0 <poll+64>: cmp    $0xfffffffffffff001,%rax
   0x7ffff4b00cb6 <poll+70>: jae    0x7ffff4b00cb9 <poll+73>
   0x7ffff4b00cb8 <poll+72>: retq   
   0x7ffff4b00cb9 <poll+73>: mov    0x2d11a8(%rip),%rcx        # 0x7ffff4dd1e68
   0x7ffff4b00cc0 <poll+80>: neg    %eax
   0x7ffff4b00cc2 <poll+82>: mov    %eax,%fs:(%rcx)
   0x7ffff4b00cc5 <poll+85>: or     $0xffffffffffffffff,%rax
   0x7ffff4b00cc9 <poll+89>: retq   
   0x7ffff4b00cca: nopw   0x0(%rax,%rax,1)
   0x7ffff4b00cd0 <__GI_ppoll>: sub    $0x38,%rsp
   0x7ffff4b00cd4 <__GI_ppoll+4>: test   %rdx,%rdx
(gdb) thread apply all backtrace

Thread 11 (Thread 0x7fffbfbfa700 (LWP 14748)):
#0  0x00007ffff4b05913 in select () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007fffc46482cb in do_select (this=0x7fffbfbf8b20) at directorymonitor.cpp:70
#2  DirMonitorThread::Entry (this=0x1cc0550) at directorymonitor.cpp:164
#3  0x00007ffff5e78863 in wxThreadInternal::PthreadStart(wxThread*) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#4  0x00007ffff52fb184 in start_thread (arg=0x7fffbfbfa700) at pthread_create.c:312
#5  0x00007ffff4b0e03d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 10 (Thread 0x7fffe37fe700 (LWP 14747)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffff5e77533 in wxConditionInternal::Wait() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#2  0x00007ffff5e78088 in wxSemaphoreInternal::Wait() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#3  0x00007fffc64b9c52 in ClassBrowserBuilderThread::Entry (this=0x1c76160) at classbrowserbuilderthread.cpp:191
#4  0x00007ffff5e78863 in wxThreadInternal::PthreadStart(wxThread*) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#5  0x00007ffff52fb184 in start_thread (arg=0x7fffe37fe700) at pthread_create.c:312
#6  0x00007ffff4b0e03d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 9 (Thread 0x7fffe17fa700 (LWP 14740)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffff5e77533 in wxConditionInternal::Wait() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#2  0x00007ffff5e78088 in wxSemaphoreInternal::Wait() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#3  0x00007ffff7794e0a in BackgroundThread::Entry (this=0xf55178) at ./backgroundthread.h:152
#4  0x00007ffff5e78863 in wxThreadInternal::PthreadStart(wxThread*) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#5  0x00007ffff52fb184 in start_thread (arg=0x7fffe17fa700) at pthread_create.c:312
#6  0x00007ffff4b0e03d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 8 (Thread 0x7fffe1ffb700 (LWP 14739)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffff5e77533 in wxConditionInternal::Wait() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#2  0x00007ffff5e78088 in wxSemaphoreInternal::Wait() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#3  0x00007ffff7794e0a in BackgroundThread::Entry (this=0xf55140) at ./backgroundthread.h:152
#4  0x00007ffff5e78863 in wxThreadInternal::PthreadStart(wxThread*) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#5  0x00007ffff52fb184 in start_thread (arg=0x7fffe1ffb700) at pthread_create.c:312
#6  0x00007ffff4b0e03d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 7 (Thread 0x7fffe27fc700 (LWP 14738)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffff5e77533 in wxConditionInternal::Wait() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#2  0x00007ffff5e78088 in wxSemaphoreInternal::Wait() () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#3  0x00007ffff7794e0a in BackgroundThread::Entry (this=0xf55108) at ./backgroundthread.h:152
#4  0x00007ffff5e78863 in wxThreadInternal::PthreadStart(wxThread*) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#5  0x00007ffff52fb184 in start_thread (arg=0x7fffe27fc700) at pthread_create.c:312
#6  0x00007ffff4b0e03d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 4 (Thread 0x7fffe3fff700 (LWP 14734)):
#0  0x00007ffff4b00c9d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ffff3d6cfe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff3d6d0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff3d6d129 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff3d91f05 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff52fb184 in start_thread (arg=0x7fffe3fff700) at pthread_create.c:312
#6  0x00007ffff4b0e03d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7fffe9b3f700 (LWP 14123)):
#0  0x00007ffff4b00c9d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ffff3d6cfe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff3d6d30a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff18a6336 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007ffff3d91f05 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff52fb184 in start_thread (arg=0x7fffe9b3f700) at pthread_create.c:312
#6  0x00007ffff4b0e03d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7fffea340700 (LWP 14122)):
#0  0x00007ffff4b00c9d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ffff3d6cfe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff3d6d0ec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fffea3481ad in ?? () from /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#4  0x00007ffff3d91f05 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff52fb184 in start_thread (arg=0x7fffea340700) at pthread_create.c:312
#6  0x00007ffff4b0e03d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7ffff7fbea00 (LWP 14118)):
#0  0x00007ffff4b00c9d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007ffff64dbd06 in ?? () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#2  0x00007ffff3d6cfe4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff3d6d30a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff588d447 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#5  0x00007ffff64ef28a in wxEventLoop::Run() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#6  0x00007ffff6560b4c in wxAppBase::MainLoop() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#7  0x0000000000446860 in CodeBlocksApp::OnRun (this=0x7d2890) at app.cpp:809
#8  0x00007ffff5e26e5d in wxEntry(int&, wchar_t**) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#9  0x0000000000435192 in main (argc=1, argv=<optimized out>) at app.cpp:276

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: GUI window not visible
« Reply #5 on: August 13, 2018, 09:12:03 am »
What version of Code::Blocks is this?

Can you try to rename the config folder of code blocks ( ~/.codeblocks or ~/.config/codeblocks) to something else.
Then try to start again. This will reset all of your settings.

How many monitors do you have? Is it possible that C::B's window is on another monitor, that is not enabled?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline pinneapple

  • Single posting newcomer
  • *
  • Posts: 4
Re: GUI window not visible
« Reply #6 on: August 13, 2018, 09:39:07 am »
My version is the 13.12.

Renaming the codeblocks folder worked!! Thank you  ;D

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: GUI window not visible
« Reply #7 on: August 13, 2018, 08:18:32 pm »
If you can reproduce this problem with a recent release (17.12) I'd be happy to try to find the root cause for the problem.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]