gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thematic Crash - hard to debug


From: Riccardo Mottola
Subject: Re: Thematic Crash - hard to debug
Date: Thu, 17 Dec 2020 19:22:31 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.5.1

Hi,

Fred Kiefer wrote:
> The lines that the debugger reports look like this:
>
>
>
> if ([[img image] size].width > 64
>         || [[img image] size].height > 64)
>
> The most likely reason for a crash here is [img image] being nil. Just add a 
> check for this condition a few lines above and see what happens.

yes, if I put a skip with a NSLog message on img, it fixes the crash.
But this means that there is an array of img which expect to have
images, but one or more are missing.
In my case, I get this output:

2020-12-17 17:48:02.051 Thematic[24340:3006525456] img is invalid: Tab
view (unselected to selected junction)


>From what I understand/remember we should always have an image for every
element - either it is from the theme (customzied) or it comes from the
default. Here....

Anyway, a check makes it of course a little more robust.

Riccardo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]