At the time I'm writting this I can't access SF (seems down...), so here it goes:
Steps to reproduce it:
-Add any file (non-mime registered in C::B) to the project.
-Double click on it from within C::B.
-The "What to do?" dialog appears.
-Click on Cancel.
-Access Violation :)
Call stack:
SimpleTextLog::GetTextControl()
src/sdk/simpletextlog.h:20
MessageManager::DebugLogError(char const*, ...)
src/sdk/messagemanager.cpp:232
ProjectManager::DoOpenFile(ProjectFile*, wxString const&)
src/sdk/projectmanager.cpp:1233
ProjectManager::DoOpenSelectedFile()
src/sdk/projectmanager.cpp:1250
ProjectManager::OnProjectFileActivated(wxTreeEvent&)
src/sdk/projectmanager.cpp:1265
When I tried to debug C::B this error doesn't appeared. I'm missing something?
Note: the forum doesn't let me attach *.rpt
[attachment deleted by admin]
From experience, I can tell: Usually there's an non-initialized pointer around.
I'm confirming this still happens in SVN HEAD Rev1471.
I want to note that this doesn't happen in RC2, it only displays the expected messagebox:
"ERROR: Could not open file '...'.
No handler registered for this type of file."
Submited the bug report (http://sourceforge.net/tracker/index.php?func=detail&aid=1376155&group_id=126998&atid=707416).
Quote from: Takeshi Miya on December 08, 2005, 11:33:49 AM
I'm confirming this still happens in SVN HEAD Rev1471.
I want to note that this doesn't happen in RC2, it only displays the expected messagebox:
"ERROR: Could not open file '...'.
No handler registered for this type of file."
Submited the bug report (http://sourceforge.net/tracker/index.php?func=detail&aid=1376155&group_id=126998&atid=707416).
It works fine here.
According to your bug-report, the backtrace shows:
MessageManager::DebugLogError(char const*, ...)
src/sdk/messagemanager.cpp:232
ProjectManager::DoOpenFile(ProjectFile*, wxString const&)
src/sdk/projectmanager.cpp:1233
ProjectManager::DoOpenSelectedFile()
src/sdk/projectmanager.cpp:1250Line 1250 is blank.
Line 1233 does *not* call MessageManager::DebugLogError().
The code relevant to MIME handling is at line 1241:
cbMimePlugin* plugin = Manager::Get()->GetPluginManager()->GetMIMEHandlerForFile(filename);
if (!plugin || plugin->OpenFile(filename) != 0) // plugin->OpenFile() returns -1 if you press Cancel
{
wxString msg;
msg.Printf(_("Could not open file '%s'.\nNo handler registered for this type of file."), filename.c_str());
Manager::Get()->GetMessageManager()->DebugLogError(msg);
}
As you can clearly see, your backtrace has nothing to do with the current HEAD. And I cannot reproduce it because, as you also see, the code is "clean" i.e. has NULL pointer checks etc...
As said above, it works fine here. Make sure you 're using HEAD and not a stickied revision...
@Takeshi Miya: what wx are you using? unicode? ansi?
Sorry, the backtrace is older now (it was recent when I posted), but the bug still happens on latest Rev.
This is the new backtrace:
-------------------
Error occured on Thursday, December 8, 2005 at 07:58:44.
D:\Develop\src\codeblocks-head\codeblocks-svn\src\devel\codeblocks.exe caused an Access Violation at location 60634de6 in module D:\Develop\src\codeblocks-head\codeblocks-svn\src\devel\codeblocks.dll Reading from location 00000168.
Registers:
eax=00000000 ebx=012e37b0 ecx=01427290 edx=01428e74 esi=606b6c30 edi=0022eaa0
eip=60634de6 esp=0022de98 ebp=0022de98 iopl=0 nv up ei pl nz na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010206
Call stack:
60634DE6 D:\Develop\src\codeblocks-head\codeblocks-svn\src\devel\codeblocks.dll:60634DE6 SimpleTextLog::GetTextControl() D:/Develop/src/codeblocks-head/codeblocks-svn/src/sdk/simpletextlog.h:20
6054D232 D:\Develop\src\codeblocks-head\codeblocks-svn\src\devel\codeblocks.dll:6054D232 MessageManager::DebugLogError(char const*, ...) D:/Develop/src/codeblocks-head/codeblocks-svn/src/sdk/messagemanager.cpp:244
605842FC D:\Develop\src\codeblocks-head\codeblocks-svn\src\devel\codeblocks.dll:605842FC ProjectManager::DoOpenFile(ProjectFile*, wxString const&) D:/Develop/src/codeblocks-head/codeblocks-svn/src/sdk/projectmanager.cpp:1246
6058445B D:\Develop\src\codeblocks-head\codeblocks-svn\src\devel\codeblocks.dll:6058445B ProjectManager::DoOpenSelectedFile() D:/Develop/src/codeblocks-head/codeblocks-svn/src/sdk/projectmanager.cpp:1263
605844FA D:\Develop\src\codeblocks-head\codeblocks-svn\src\devel\codeblocks.dll:605844FA ProjectManager::OnProjectFileActivated(wxTreeEvent&) D:/Develop/src/codeblocks-head/codeblocks-svn/src/sdk/projectmanager.cpp:1278
100A7948 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A7948 _ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent
100A7D0C D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A7D0C _ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler
100A8CE9 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A8CE9 _ZN12wxEvtHandler12ProcessEventER7wxEvent
100A8C89 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A8C89 _ZN12wxEvtHandler12ProcessEventER7wxEvent
100A8C89 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A8C89 _ZN12wxEvtHandler12ProcessEventER7wxEvent
100A8C89 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A8C89 _ZN12wxEvtHandler12ProcessEventER7wxEvent
100A8C89 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A8C89 _ZN12wxEvtHandler12ProcessEventER7wxEvent
100A8C89 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A8C89 _ZN12wxEvtHandler12ProcessEventER7wxEvent
100A8C89 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A8C89 _ZN12wxEvtHandler12ProcessEventER7wxEvent
100A8C89 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A8C89 _ZN12wxEvtHandler12ProcessEventER7wxEvent
100A8C89 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A8C89 _ZN12wxEvtHandler12ProcessEventER7wxEvent
100A8C89 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A8C89 _ZN12wxEvtHandler12ProcessEventER7wxEvent
100A8C89 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A8C89 _ZN12wxEvtHandler12ProcessEventER7wxEvent
100A8C89 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A8C89 _ZN12wxEvtHandler12ProcessEventER7wxEvent
100A8C89 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A8C89 _ZN12wxEvtHandler12ProcessEventER7wxEvent
1020ABAB D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:1020ABAB _ZN12wxWindowBase9TryParentER7wxEvent
100A8C9E D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A8C9E _ZN12wxEvtHandler12ProcessEventER7wxEvent
100A8C89 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A8C89 _ZN12wxEvtHandler12ProcessEventER7wxEvent
1020ABAB D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:1020ABAB _ZN12wxWindowBase9TryParentER7wxEvent
100A8C9E D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A8C9E _ZN12wxEvtHandler12ProcessEventER7wxEvent
100A8C89 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A8C89 _ZN12wxEvtHandler12ProcessEventER7wxEvent
1020ABAB D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:1020ABAB _ZN12wxWindowBase9TryParentER7wxEvent
100A8C9E D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A8C9E _ZN12wxEvtHandler12ProcessEventER7wxEvent
100A8C89 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A8C89 _ZN12wxEvtHandler12ProcessEventER7wxEvent
1020ABAB D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:1020ABAB _ZN12wxWindowBase9TryParentER7wxEvent
100A8C9E D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A8C9E _ZN12wxEvtHandler12ProcessEventER7wxEvent
100A8C89 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A8C89 _ZN12wxEvtHandler12ProcessEventER7wxEvent
1020ABAB D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:1020ABAB _ZN12wxWindowBase9TryParentER7wxEvent
100A8C9E D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A8C9E _ZN12wxEvtHandler12ProcessEventER7wxEvent
100A8C89 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A8C89 _ZN12wxEvtHandler12ProcessEventER7wxEvent
1020ABAB D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:1020ABAB _ZN12wxWindowBase9TryParentER7wxEvent
100A8C9E D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A8C9E _ZN12wxEvtHandler12ProcessEventER7wxEvent
100A8C89 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100A8C89 _ZN12wxEvtHandler12ProcessEventER7wxEvent
1017E309 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:1017E309 _ZN10wxTreeCtrl11MSWOnNotifyEilPl
10108DE5 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:10108DE5 _ZN8wxWindow12HandleNotifyEilPl
1011076C D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:1011076C _ZN8wxWindow13MSWWindowProcEjjl
10108CA0 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:10108CA0 _Z9wxWndProcP6HWND__jjl@16
77D18734 C:\WINDOWS\system32\USER32.dll:77D18734 GetDC
77D18816 C:\WINDOWS\system32\USER32.dll:77D18816 GetDC
77D1B89B C:\WINDOWS\system32\USER32.dll:77D1B89B GetParent
77D1B903 C:\WINDOWS\system32\USER32.dll:77D1B903 SendMessageW
773BAAA3 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\COMCTL32.DLL:773BAAA3 Ordinal414
773D9D2F C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\COMCTL32.DLL:773D9D2F Ordinal384
773DA4E3 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\COMCTL32.DLL:773DA4E3 Ordinal384
77D18734 C:\WINDOWS\system32\USER32.dll:77D18734 GetDC
77D18816 C:\WINDOWS\system32\USER32.dll:77D18816 GetDC
77D1C63F C:\WINDOWS\system32\USER32.dll:77D1C63F IsWindowUnicode
77D1E905 C:\WINDOWS\system32\USER32.dll:77D1E905 CallWindowProcA
10107ED0 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:10107ED0 _ZN8wxWindow16MSWDefWindowProcEjjl
1017DF49 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:1017DF49 _ZN10wxTreeCtrl16MSWDefWindowProcEjjl
1010FDDC D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:1010FDDC _ZN8wxWindow13MSWWindowProcEjjl
1017CE71 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:1017CE71 _ZN10wxTreeCtrl13MSWWindowProcEjjl
10108CA0 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:10108CA0 _Z9wxWndProcP6HWND__jjl@16
77D18734 C:\WINDOWS\system32\USER32.dll:77D18734 GetDC
77D18816 C:\WINDOWS\system32\USER32.dll:77D18816 GetDC
77D189CD C:\WINDOWS\system32\USER32.dll:77D189CD GetWindowLongW
77D18A10 C:\WINDOWS\system32\USER32.dll:77D18A10 DispatchMessageW
77D2E097 C:\WINDOWS\system32\USER32.dll:77D2E097 IsDialogMessageW
77D3C6AB C:\WINDOWS\system32\USER32.dll:77D3C6AB IsDialogMessageA
101081BE D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:101081BE _ZN8wxWindow17MSWProcessMessageEP6tagMSG
100E8744 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100E8744 _ZN11wxEventLoop17PreProcessMessageEP6tagMSG
100E8689 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100E8689 _ZN11wxEventLoop14ProcessMessageEP6tagMSG
100E8C74 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100E8C74 _ZN11wxEventLoop8DispatchEv
100E8A10 D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100E8A10 _ZN11wxEventLoop3RunEv
101824EE D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:101824EE _ZN9wxAppBase8MainLoopEv
0040474A D:\Develop\src\codeblocks-head\codeblocks-svn\src\devel\codeblocks.exe:0040474A CodeBlocksApp::OnRun() D:/Develop/src/codeblocks-head/codeblocks-svn/src/src/app.cpp:429
1004333F D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:1004333F _Z14wxUninitializev
100B091C D:\Develop\shared_lib\wxmsw26_gcc_cb.dll:100B091C _Z7wxEntryP11HINSTANCE__S0_Pci
0040148A D:\Develop\src\codeblocks-head\codeblocks-svn\src\devel\codeblocks.exe:0040148A WinMain D:/Develop/src/codeblocks-head/codeblocks-svn/src/src/app.cpp:297
0045D6AA D:\Develop\src\codeblocks-head\codeblocks-svn\src\devel\codeblocks.exe:0045D6AA
004011E7 D:\Develop\src\codeblocks-head\codeblocks-svn\src\devel\codeblocks.exe:004011E7
00401238 D:\Develop\src\codeblocks-head\codeblocks-svn\src\devel\codeblocks.exe:00401238
7C816D4F C:\WINDOWS\system32\kernel32.dll:7C816D4F RegisterWaitForInputIdle
I always use ANSI.
Never tried to compile C::B with Unicode yet.
Ahh, that's more like it :)
Fixed.
Great, it works now. :)
Now I can see why when I tried to debug C::B this error doesn't appeared (the cb debug log was activated).
It's too good not having anon lag in berlios svn :D