Author Topic: 12.11 windows 'user install' - crash on settings  (Read 15538 times)

Offline originalsurfmex

  • Single posting newcomer
  • *
  • Posts: 7
12.11 windows 'user install' - crash on settings
« on: December 04, 2013, 05:22:54 pm »
I am using codeblocks 12.11 (user install) on windows 7.  Every time I go to "Settings" --> "Environment" or "Settings" --> "Editor", I get a crash.  The message says:

"codeblocks.exe has stopped working - a problem casued the program tos top working correctly. please close the program"

I have tried running in Admin mode, same trouble.  I also can't figure out how to make codeblocks generate a debug log in windows.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: 12.11 windows 'user install' - crash on settings
« Reply #1 on: December 04, 2013, 08:16:27 pm »
Hi!
12.11 is quite old right now.. I would try a nightly build on windows (until the new release is out) or you use the RC1. It isn't that difficult to set up...

greetings

Offline originalsurfmex

  • Single posting newcomer
  • *
  • Posts: 7
Re: 12.11 windows 'user install' - crash on settings
« Reply #2 on: December 04, 2013, 09:36:29 pm »
I just installed the latest nightly (16 November 2013 build) along with the two dll's provided and get the same crash, the only difference is that the error now says:

"Cross-platform IDE built around wxWidgets, designed to be extensible and configurable. has stopped working - a problem has caused the program to stop working correctly. please close the program"

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: 12.11 windows 'user install' - crash on settings
« Reply #3 on: December 04, 2013, 10:21:29 pm »
Try deleting or renaming the Code::Blocks config file.

IIRC, it named default.conf likely in Folder %APPDATA%\Roaming\codeblocks

Tim S.



C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline originalsurfmex

  • Single posting newcomer
  • *
  • Posts: 7
Re: 12.11 windows 'user install' - crash on settings
« Reply #4 on: December 06, 2013, 11:59:07 am »
Still getting the same error.

So far I have:
 - removed the appdata/Roaming/Codeblocks folder completely
 - completely uninstalled codeblocks and downloaded and installed 13.12-RCI
 - tried installing both to a folder on my desktop as I prefer and to Program Files as is typical
 - tried running it from the command line with --debug-log and /d, also tried --safe-mode.

I could not find any debug logs anywhere.  This is kind of a bummer, any other suggestions?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: 12.11 windows 'user install' - crash on settings
« Reply #5 on: December 06, 2013, 01:04:40 pm »
Try -v parameter to probably get a meaningful message, even if it will not work (most likely).

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: 12.11 windows 'user install' - crash on settings
« Reply #6 on: December 06, 2013, 01:37:24 pm »
Have you tried it to running from cmd with the --debug-log and /d arguments?
Have you installed other wxWidgets libraries (versions)?
can your try to start it with gdb?

Thank you for your patience

greetings.

Offline originalsurfmex

  • Single posting newcomer
  • *
  • Posts: 7
Re: 12.11 windows 'user install' - crash on settings
« Reply #7 on: December 06, 2013, 01:57:38 pm »
I tried the following commands with arguments from cmd.exe

codeblocks.exe -v
codeblocks.exe -v --debug-log
codeblocks.exe /d /v

None of them seem to yield anything.  I have not installed any other wxWidgets libraries anywhere.  I am using the GCC compiler as my default and gdb is my default debugger. How do I start it with gdb?

I saw something about a codeblocks.RPT file in the wiki, there is no such file in my installation directory though.  I really wish I could dig up an error log somehow.

Thanks for helping me track down the problem.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: 12.11 windows 'user install' - crash on settings
« Reply #8 on: December 06, 2013, 02:01:26 pm »
there is no such file in my installation directory though.
This file won't go in the installation directory, but probably at some temp place where your user has write access rights.
Search your %APP_DATA% or %TEMP% for it.
(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 Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: 12.11 windows 'user install' - crash on settings
« Reply #9 on: December 06, 2013, 02:04:25 pm »
On windows it should be in the same folder as codeblocks.exe .

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: 12.11 windows 'user install' - crash on settings
« Reply #10 on: December 06, 2013, 02:09:22 pm »
sadly c::b has no good error logging...
you can start gdb from the command line
I suppose your mingw installation is in your path, then you can simply run
Code
path/to/cb/gdb.exe codeblocks.exe

and if you get some segfault you can get a backtrace with
Code
bt
but i think it won't contain many information, because c::b binaries arn't compiled with -g option...

greetings

Offline originalsurfmex

  • Single posting newcomer
  • *
  • Posts: 7
Re: 12.11 windows 'user install' - crash on settings
« Reply #11 on: December 06, 2013, 02:17:13 pm »
The codeblocks.rpt file is nowhere to be found in either appdata, temp or installation folders.

I tried running it with gdb as suggested however gdb said:
Code
(no debugging symbols found)

When the same crash occured nothing happened in gdb.  I can't help but roll my eyes at the irony of not being able to debug my ide.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: 12.11 windows 'user install' - crash on settings
« Reply #12 on: December 06, 2013, 02:36:23 pm »
On windows it should be in the same folder as codeblocks.exe .
But how do we handle access rights if the exe is in program files?
(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 oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: 12.11 windows 'user install' - crash on settings
« Reply #13 on: December 06, 2013, 02:40:54 pm »
originalsurfmex:
Can you try to install after that search for codeblocks in you drive and manually delete any files you find, then install?
Also can you try a night build install?
(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 originalsurfmex

  • Single posting newcomer
  • *
  • Posts: 7
Re: 12.11 windows 'user install' - crash on settings
« Reply #14 on: December 06, 2013, 03:34:03 pm »
The problem is still there

I used everything search engine ( http://www.voidtools.com/ ) to find any remaining files - there weren't any in unusual places.  I installed the nightly SVN 9455 and tried reproducing the crash both with MinGW and without MinGW.

After all of that, I also tried adding the MinGW bin folder to my system path.

It still crashes every time on those menus.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: 12.11 windows 'user install' - crash on settings
« Reply #15 on: December 06, 2013, 04:30:51 pm »

Offline originalsurfmex

  • Single posting newcomer
  • *
  • Posts: 7
Re: 12.11 windows 'user install' - crash on settings
« Reply #16 on: December 06, 2013, 05:39:41 pm »
BlueHazzard - that is very very cool, thanks.  Here is the output of my crash:

Code
codeblocks.exe caused an Integer Divide By Zero at location 66854E88 in module COMCTL32.DLL.

Registers:
eax=00000002 ebx=00731eb0 ecx=0028d360 edx=00000000 esi=006ed940 edi=00000001
eip=66854e88 esp=0028d338 ebp=0028d378 iopl=0         nv up ei pl zr na po nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00010246

AddrPC   Params
66854E88 00731DD8 00731EB0 006ED940 COMCTL32.DLL!ImageList_Read
6687DE35 00000003 0028D3E8 0028D3D8 COMCTL32.DLL!DPA_DeleteAllPtrs
6687F27F 0028D3D8 00000000 00000003 COMCTL32.DLL!DPA_Sort
6687F222 00705EC0 66854DDC 006ED940 COMCTL32.DLL!DPA_Sort
6689999F 00000000 0028D594 6687CFE2 COMCTL32.DLL!ImageList_Write
66851EE0 006ED940 00000000 00000000 COMCTL32.DLL!Ordinal175
6687CFE2 004E35B2 00001016 00000000 COMCTL32.DLL!DPA_DeleteAllPtrs
6687FE70 004E35B2 00001016 00000000 COMCTL32.DLL!CCGetScrollInfo
76FC62FA 6687FE38 004E35B2 00001016 USER32.dll!gapfnScSendMessage
76FC6D3A 00000000 6687FE38 004E35B2 USER32.dll!GetThreadDesktop
76FD0D27 6687FE38 004E35B2 00001016 USER32.dll!GetClientRect
76FD0D4D 6687FE38 004E35B2 00001016 USER32.dll!CallWindowProcW

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: 12.11 windows 'user install' - crash on settings
« Reply #17 on: December 07, 2013, 12:23:54 am »
Sadly this doesn't help neither without debug symbols...

Have you the possibility to compile c::b for yourself?

If so: Can you pleas compile it with "-g" in global variables "cb_release_type"

i personally have absolute no idea where the error comes from, but probably it is a wxWidgets error (bug), because no other user reported such a heavy bug (until now)..

greetings