Recent Posts

Pages: 1 ... 4 5 6 7 8 [9] 10
81
Help / Re: codeblocks randomly crashes when writing
« Last post by ollydbg on March 07, 2024, 01:53:18 pm »
Something related to the wxScintilla control, because I see something here:

Code
wxSCIListBoxWin::OnSize(wxSizeEvent&)
82
Help / Re: codeblocks randomly crashes when writing
« Last post by BomberKing on March 07, 2024, 01:17:59 pm »
it didn't work

but it gave a bit of help
it is now more flexible to that issue
but i can still make it happen

the debug report is as following

<?xml version="1.0" encoding="UTF-8"?>
<report version="1.0" kind="exception">
  <system description="Linux 6.1.0-18-amd64 x86_64"/>
  <modules>
    <module path="[heap]" address="0x559aa084a000" size="0x2f7d000"/>
    <module path="/SYSV00000000" address="0x7fd4e25fd000" size="0x800000"/>
    <module path="/run/user/1000/dconf/user" address="0x7fd5003e1000" size="0x1000"/>
    <module path="[stack]" address="0x7fff4a641000" size="0x22000"/>
  </modules>
  <stack>
    <frame level="0" offset="0xb7c3c" address="0x559aa0579c3c" module="codeblocks"/>
    <frame level="1" offset="0x1da860" address="0x7fd506fda860" module="/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0"/>
    <frame level="2" offset="0x3c050" address="0x7fd505a5b050" module="/lib/x86_64-linux-gnu/libc.so.6"/>
    <frame level="3" function="wxSCIListBoxWin::OnSize(wxSizeEvent&amp;)" offset="0xa6" address="0x7fd5083c8bb6" module="/lib/libcodeblocks.so.0"/>
    <frame level="4" function="wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&amp;, wxEvtHandler*, wxEvent&amp;)" offset="0x72" address="0x7fd5070086d2" module="/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0"/>
    <frame level="5" function="wxEventHashTable::HandleEvent(wxEvent&amp;, wxEvtHandler*)" offset="0xdb" address="0x7fd50700888b" module="/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0"/>
    <frame level="6" function="wxEvtHandler::TryHereOnly(wxEvent&amp;)" offset="0x49" address="0x7fd507008ea9" module="/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0"/>
    <frame level="7" function="wxEvtHandler::ProcessEventLocally(wxEvent&amp;)" offset="0x2a" address="0x7fd507008f2a" module="/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0"/>
    <frame level="8" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="0xc1" address="0x7fd507009031" module="/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0"/>
    <frame level="9" function="wxEvtHandler::SafelyProcessEvent(wxEvent&amp;)" offset="0x7" address="0x7fd50700a7c7" module="/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0"/>
    <frame level="10" function="wxWindowBase::SendSizeEvent(int)" offset="0x113" address="0x7fd507771953" module="/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.2.so.0"/>
    <frame level="11" offset="0x393670" address="0x7fd507593670" module="/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.2.so.0"/>
    <frame level="12" function="g_closure_invoke" offset="0x160" address="0x7fd506c4a3b0" module="/lib/x86_64-linux-gnu/libgobject-2.0.so.0"/>
    <frame level="13" offset="0x29344" address="0x7fd506c5d344" module="/lib/x86_64-linux-gnu/libgobject-2.0.so.0"/>
    <frame level="14" function="g_signal_emit_valist" offset="0xf35" address="0x7fd506c63bf5" module="/lib/x86_64-linux-gnu/libgobject-2.0.so.0"/>
    <frame level="15" function="g_signal_emit" offset="0x8f" address="0x7fd506c63dbf" module="/lib/x86_64-linux-gnu/libgobject-2.0.so.0"/>
    <frame level="16" offset="0x452ed" address="0x7fd50713b2ed" module="/lib/x86_64-linux-gnu/libgdk-3.so.0"/>
    <frame level="17" offset="0x317e7" address="0x7fd5071277e7" module="/lib/x86_64-linux-gnu/libgdk-3.so.0"/>
    <frame level="18" offset="0x5519a" address="0x7fd50601b19a" module="/lib/x86_64-linux-gnu/libglib-2.0.so.0"/>
    <frame level="19" function="g_main_context_dispatch" offset="0x16f" address="0x7fd50601a67f" module="/lib/x86_64-linux-gnu/libglib-2.0.so.0"/>
    <frame level="20" offset="0x54a38" address="0x7fd50601aa38" module="/lib/x86_64-linux-gnu/libglib-2.0.so.0"/>
    <frame level="21" function="g_main_loop_run" offset="0x6f" address="0x7fd50601acef" module="/lib/x86_64-linux-gnu/libglib-2.0.so.0"/>
    <frame level="22" function="gtk_main" offset="0x75" address="0x7fd506608495" module="/lib/x86_64-linux-gnu/libgtk-3.so.0"/>
    <frame level="23" function="wxGUIEventLoop::DoRun()" offset="0x25" address="0x7fd50756df85" module="/lib/x86_64-linux-gnu/libwx_gtk3u_core-3.2.so.0"/>
    <frame level="24" function="wxEventLoopBase::Run()" offset="0x2d" address="0x7fd506ed7fad" module="/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0"/>
    <frame level="25" function="wxAppConsoleBase::MainLoop()" offset="0x7b" address="0x7fd506ea2a9b" module="/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0"/>
    <frame level="26" offset="0xb7b8c" address="0x559aa0579b8c" module="codeblocks"/>
    <frame level="27" function="wxEntry(int&amp;, wchar_t**)" offset="0x47" address="0x7fd506f1fec7" module="/lib/x86_64-linux-gnu/libwx_baseu-3.2.so.0"/>
    <frame level="28" offset="0x9b27e" address="0x559aa055d27e" module="codeblocks"/>
    <frame level="29" offset="0x2724a" address="0x7fd505a4624a" module="/lib/x86_64-linux-gnu/libc.so.6"/>
    <frame level="30" function="__libc_start_main" offset="0x85" address="0x7fd505a46305" module="/lib/x86_64-linux-gnu/libc.so.6"/>
    <frame level="31" offset="0xadd31" address="0x559aa056fd31" module="codeblocks"/>
  </stack>
</report>
83
@ollydbg
I've reverted CodeCompletion.cpp/h lines that I changed related to CCLogger. I change no other lines of code.

In CCLogger I reverted to rev 13427, so you may have to change 'NativeParser' name back to ParseManager.
I recompiled CB and got no errors.
I hope I didn't miss anything. If so, let me know.

Thanks for being so patient about this.

Thanks.

BTW: I fixed  the build error for CCTest project in revision 13489.
84
Fixed in r13488, thank you.
86
@ollydbg
I've reverted CodeCompletion.cpp/h lines that I changed related to CCLogger. I change no other lines of code.

In CCLogger I reverted to rev 13427, so you may have to change 'NativeParser' name back to ParseManager.
I recompiled CB and got no errors.
I hope I didn't miss anything. If so, let me know.

Thanks for being so patient about this.

 
87
Help / standalone linux executable
« Last post by stormfinger on March 07, 2024, 06:03:29 am »
hi
i managed to set up codeblocks and run hello world but i dont know how to create standalone executable.. theres is hefty line to see the code result .. im new to codeblocks  and i dont know its internals.. if someone can point me to reading material or provide explanation it would be most helpfull..

thank you
88
Thanks for trying. I'll restore CCLogger to the rev before I made any changes.
89
The code about CCLogger is that some log functions can be called either in the worker thread or in the main gui thread.

So, you can see there are some thread event send to the main thread.

There are too many lockers in the CC code, I think we should take some time to clean up those lockers.
90
Hi, Pecan, I think the variable/field name are different?

The code I see is:

Code
// ----------------------------------------------------------------------------
void CCLogger::DebugLog(const wxString& msg, int id)
// ----------------------------------------------------------------------------
{
    // Could crash here; should check if shutting down
    if (Manager::IsAppShuttingDown())
        return;

    if (!m_Parent || m_DebugLogId<1) return;

    bool debugLogging = false;
    if (m_pCfgMgr) debugLogging = m_pCfgMgr->ReadBool("/logPluginDebug_check", false);
    if ((not debugLogging) and (id == m_DebugLogId)) return;

Note, the name is "logPluginDebug_check"

But in the CheckBox, the name is "CCDebugLogging".

Are they the same?

When I enabled that CheckBox in the CodeCompletion plugin's setting, I still got the code check "debugLogging" is false.

Pages: 1 ... 4 5 6 7 8 [9] 10