Hi Fred,

> Thank you Andreas for this huge amount of data. It seems to show that my 
> guess was wrong. The problem is not happening in the GSHorizontalTypesetter 
> and all the extra rects that are shown look correct. But when ever a wrong 
> height shows up it looks like these lines:
> 
>> 2020-05-09 20:19:40.720 SOObjectBrowser[4163:4163] cache_lookup hit 1
>> 2020-05-09 20:19:40.720 SOObjectBrowser[4163:4163] In attributed string and 
>> got result from  c->usedRect {x = 0; y = 0; width = 1; height = 1e+07}
> 
> First a cache hit in the string drawing code and then the wrong height, but 
> that height never seems to get produced by the NSLayoutManager. This must 
> point to an error in the cache itself. I found that we do not clean the 
> „used“ flag for the cache when setting it up. Could it be that you are just 
> picking up a random cache entry? I am not sure about that but hacked together 
> a fix hat initialises the cache entries as unused explicitly. Could you 
> please pull the current code from the GNUstep repository and try again with 
> that? This will also include my other attempts in fixing this issue. They 
> should at least not do any harm.

I have repulled libs-gui from git and the problem is gone. My 

        2020-05-09 20:19:40.765 SOObjectBrowser[4163:4163] Got height 
10000004.000000. We correct this ...

workaround is no longer triggered. 

Thanks a lot for your effort!!

> On 10 May 2020, at 23:57, Riccardo Mottola <[email protected]> wrote:
> 
> I remember this, I have a déjà-vu here! Don't remember the App, but chasing 
> down exactly this issue, I remember that it should be at least "one line" 
> height and that there were issue.

According to my google search result forwarded a couple of days ago this issue 
indeed popped up for others as well. One app that apparently triggered it was 
ProjectCenter. I have never looked into the ProjectCenter code. But the problem 
must have occurred in all apps that do auto resizing of the interface using 
[NSControl sizeToFit] and have image only buttons (obviously a rather seldom 
combination). :-)

Best wishes,

 Andreas






          • ... Andreas Höschler via Discussion list for the GNUstep programming environment
          • ... Fred Kiefer
          • ... Fred Kiefer
          • ... Andreas Höschler via Discussion list for the GNUstep programming environment
          • ... Fred Kiefer
          • ... Andreas Höschler via Discussion list for the GNUstep programming environment
          • ... Fred Kiefer
          • ... Andreas Höschler via Discussion list for the GNUstep programming environment
          • ... Fred Kiefer
          • ... Fred Kiefer
          • ... Andreas Höschler via Discussion list for the GNUstep programming environment
          • ... Fred Kiefer
          • ... Riccardo Mottola
      • ... Riccardo Mottola
  • ... Riccardo Mottola
    • ... Svetlana
      • ... Andreas Höschler via Discussion list for the GNUstep programming environment
      • ... Riccardo Mottola
    • ... Andreas Höschler via Discussion list for the GNUstep programming environment
      • ... Svetlana
        • ... Andreas Höschler via Discussion list for the GNUstep programming environment

Reply via email to