Re: Crashes in GUI when applying a theme (Thematic)

Riccardo Mottola <[email protected]>
Newsgroups gmane.comp.lib.gnustep.devel
Message-ID <[email protected]>
Hi,


Riccardo Mottola wrote:
> #0 0x00007ffff72103ab in objc_msg_lookup () from 
> /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/libobjc.so.4
> #1  0x00007ffff7bf976c in -[NSMenuView sizeToFit] 
> (self=0x555555da3560, _cmd=<optimized out>)
>     at /System/Library/Headers/GNUstepBase/GSIArray.h:237
> #2  0x00007ffff7befa79 in -[NSMenu sizeToFit] (self=0x555555db63f0, 
> _cmd=<optimized out>) at NSMenu.m:1562 

after a debugging evening with Fred, I know more, but am not much wiser.

[NSMenuView sizeToFit] calls _attachedMenu and [attachedMenu 
_owningPopUp] and the latter must be invalid because, if checked with 
"po" in gdb, it will crash.
_owningPopUp just returns _popUpButtonCell which is set and trying to 
print directly _attachedMenu->_popUpButtonCell does work, as inspecting 
it with p *(_attachedMenu->_popUpButtonCell) but sometimes I found the 
isa pointer to be 0x0 or in any case not accessible.

So we suppose that either somehow has already invalidated the object or 
there is memory overwriting.
Where in the chain Thematic - gui - base the issue is, remains open!


Riccardo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.