Author Topic: Symbols browser issue of CC has been fixed for my Linux  (Read 10375 times)

Offline AZ

  • Almost regular
  • **
  • Posts: 163
Re: Symbols browser issue of CC has been fixed for my Linux
« Reply #60 on: April 19, 2020, 12:48:52 am »
build.log
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

Offline AZ

  • Almost regular
  • **
  • Posts: 163
Re: Symbols browser issue of CC has been fixed for my Linux
« Reply #61 on: April 19, 2020, 12:56:47 am »
now , if i use a previously working version for FC30. I still do not get the window. But in console i observe:
Code: [Select]
(codeblocks:126954): Gtk-CRITICAL **: 18:52:31.070: gtk_tree_model_iter_nth_child: assertion 'n >= 0' failed
18:52:48: Debug: window wxScintilla(0x56207fc408a0, ) lost focus even though it didn't have it
18:52:48: Debug: window wxScintilla(0x56207fc408a0, ) lost focus even though it didn't have it
18:52:48: Debug: window wxScintilla(0x56207fc408a0, ) lost focus even though it didn't have it
18:52:48: Debug: window wxScintilla(0x56207fc408a0, ) lost focus even though it didn't have it
18:52:48: Debug: window wxScintilla(0x56207fc408a0, ) lost focus even though it didn't have it
18:52:48: Debug: window wxScintilla(0x56207fc408a0, ) lost focus even though it didn't have it
18:52:48: Debug: window wxScintilla(0x56207fc408a0, ) lost focus even though it didn't have it
18:52:48: Debug: window wxScintilla(0x56207fc408a0, ) lost focus even though it didn't have it
18:52:48: Debug: window wxScintilla(0x56207fc408a0, ) lost focus even though it didn't have it



-- terminating the app and i see the below
18:53:22: Debug: 3 threads were not terminated by the application.
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12828
    • Travis build status
Re: Symbols browser issue of CC has been fixed for my Linux
« Reply #62 on: April 19, 2020, 10:51:45 am »
If the application is crashing you have to use a debugger to see where.
(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 AZ

  • Almost regular
  • **
  • Posts: 163
Re: Symbols browser issue of CC has been fixed for my Linux
« Reply #63 on: April 19, 2020, 10:58:44 pm »
If the application is crashing you have to use a debugger to see where.

It is not terminating. I was terminating it ( alt-F4) . Bad wording.
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

Offline AZ

  • Almost regular
  • **
  • Posts: 163
Re: Symbols browser issue of CC has been fixed for my Linux
« Reply #64 on: May 14, 2020, 11:41:55 pm »
the symbol browser "hid" in the "management" window. //don't ask  ::)

The browser has been working perfectly fine for my basic needs ( 5/20 files, up to 200 lines of code in each), for the past 2 months with CB been compiled weekly ( from nighties) 
CB: nightly build .
Thread model: posix
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)

Online ChristophMS

  • Single posting newcomer
  • *
  • Posts: 1
Re: Symbols browser issue of CC has been fixed for my Linux
« Reply #65 on: October 22, 2020, 01:32:55 pm »
Hi folks,

I applied that patch from above to my CB::20.03 (on M$ Windows) and at first I got an segmentation fault in void ClassBrowserBuilderThread::SelectItem(CCTreeCtrl* tree, wxTreeItemId item ) where data->m_MirrorNode is accessed. The address of m_MirrorNode looked strange to me (sth. like 0xbnnn nnnn) which seemed to be a kind of random address. I found out that this class member is not initialized in the constructor which should now look like

CCTreeCtrlData::CCTreeCtrlData(SpecialFolder sf, Token* token, short int kindMask, int parentIdx) :
    m_Token(token),
    m_KindMask(kindMask),
    m_SpecialFolder(sf),
    m_TokenIndex(token ? token->m_Index : -1),
    m_TokenKind(token ? token->m_TokenKind : tkUndefined),
    m_TokenName(token ? token->m_Name : _T("")),
    m_ParentIndex(parentIdx),
    m_Ticket(token ? token->GetTicket() : 0),
    m_MirrorNode( nullptr )

{
}

Kind regards

Christoph MS

Offline Miguel Gimenez

  • Lives here!
  • ****
  • Posts: 552
Re: Symbols browser issue of CC has been fixed for my Linux
« Reply #66 on: October 22, 2020, 02:56:54 pm »
Thank you for testing. I have modified the patch to include your change.