[Cuis-dev] Space is low

Jon Raiford raiford at labware.com
Wed Aug 7 14:00:09 PDT 2024


I’m not exactly sure how I got it into that state, but this may be related… I had saved the image while it was full screen on my 5K external monitor. I also had left the image running and the next time I woke the machine up and plugged in the monitors I found the image had hung. As Juan mentioned, if I opened the image, moved it to the 5K, and immediately set it to full screen then it would hang. I didn’t get the same space is low message, but what we tracked down was an allocation for the new screen that was failing.

Jon

From: Juan Vuletich <juan at cuis.st>
Date: Wednesday, August 7, 2024 at 4:08 PM
To: Discussion of Cuis Smalltalk <cuis-dev at lists.cuis.st>
Cc: Mark Volkmann <r.mark.volkmann at gmail.com>, Jon Raiford <raiford at labware.com>
Subject: Re: [Cuis-dev] Space is low
Hi Folks,

Yesterday Jon Raiford saved an image that did something similar to what you Mark describe when starting it, moving it to a 5k display, and setting it full screen. We spent several hours debugging together. The result is updates #6569 and #6570, pushed today to GitHub. These updates do fix the issue as experienced by Jon. I'm pretty confident they'd fix what you Mark saw too.

Thank you Jon for finding a case we could reproduce, and for debugging it together!

Cheers,

On 7/25/2024 10:38 AM, Mark Volkmann via Cuis-dev wrote:
It finally happened again. I have attached two screenshots, one showing the exception and one showing Transcript output that Juan requested.

On Thu, Jul 18, 2024 at 9:08 AM Mark Volkmann <r.mark.volkmann at gmail.com<mailto:r.mark.volkmann at gmail.com>> wrote:
The "Space is low" issue hasn't repeated itself for me in the past couple of days, but I'll report back if it does happen again. I did pull down the latest updates to Cuis a couple of days ago, so I suppose it's possible there was a recent change that fixed this.

On Thu, Jul 18, 2024 at 2:48 AM Barry Perryman <barry.perryman at gmail.com<mailto:barry.perryman at gmail.com>> wrote:
What happens when you minimise cuis before letting it go to sleep?

I'm asking because this is what happens on my Mac - M2 Mini running Sonoma with LG 4K screen.

I usually run Cuis as a window - so not full screen. When the system goes to sleep, or the display sleeps, it quite often, although not always, will resize the window to a smaller size. Cuis isn't the only application that this happens to; citrix client will also have the same issue, again not every time, even though that is run as full screen. I've always figured this is some mac sleep quirk that I have to live with.

I haven't had the issue occur when I minimise the cuis window - although I have had the icon on the dock look like it's been resized - so instead of a 128x128 icon it's shrunk to say a 80x60 icon (guess).

Next time few times it happens I'll grab the size because now I think about it I'm fairly sure the resize looks to be about the same size every time.

I've not reported this before because I've never been able to consistently reproduce it.

Barry



On 18 Jul 2024, at 01:16, Mark Volkmann via Cuis-dev <cuis-dev at lists.cuis.st<mailto:cuis-dev at lists.cuis.st>> wrote:

A sleep of the Mac was involved.
I didn't move the window myself after it woke up, but I do have it on a second monitor, so when it wakes up I suppose macOS "moves it".
My Mac has slept several times today and did not result in a low memory exception on waking.
I inserted the logging code that Juan requested.
Perhap it will happen again tomorrow morning. I'll report back if it does.

On Wed, Jul 17, 2024 at 2:02 PM Nicolás Papagna Maldonado via Cuis-dev <cuis-dev at lists.cuis.st<mailto:cuis-dev at lists.cuis.st>> wrote:
Just thinking out loud here.

Based on what Juan mentioned, did you move the Cuis window between monitors (assuming that triggers a resize)?


On Wed, Jul 17, 2024 at 3:45 PM Andres Valloud via Cuis-dev <cuis-dev at lists.cuis.st<mailto:cuis-dev at lists.cuis.st>> wrote:
Did the machine (partially) go to sleep in those 2 hours?  Does the
problem manifest when the machine transitions between sleep and awake?

On 7/17/24 11:36, Juan Vuletich via Cuis-dev wrote:
> This is not normal at all.
>
> The allocation that shows in the walkback you posted happens at the
> start of #mainLoop. This method is only called when the Morphic system
> needs to be reinitialized, usually because the main Cuis window was
> resized and a new Canvas needs to be created. It should not happen if
> you just let the machine idle for a couple of hours. And it is not
> possible to know what's going on without further information. So, please:
>
> - Keep the Transcript open and visible
> - Add this line at the start of #spawnNewMorphicProcessFor:, after the
> temp declaration.
>      thisContext printStack: 10.
>
> #spawnNewMorphicProcessFor: should only be called when the main Cuis
> window is resized. So keep the Transcript visible and see if a stack
> trace gets printed even if you're not resizing the Display. If this
> happens, please post the result.
>
> Thanks,
>
> On 7/16/2024 10:44 PM, Mark Volkmann via Cuis-dev wrote:
>> See my replies inline below. Could this be related to the fact that I
>> have the tiger SVG displayed on the desktop with this?
>>
>> SVGMainMorph exampleTiger openInWorld.
>>
>> On Tue, Jul 16, 2024 at 8:29 PM Andres Valloud via Cuis-dev
>> <cuis-dev at lists.cuis.st<mailto:cuis-dev at lists.cuis.st> <mailto:cuis-dev at lists.cuis.st<mailto:cuis-dev at lists.cuis.st>>> wrote:
>>
>>     And, what are the arguments to setExtent:depth:?
>>
>>
>> extent: 3456.0 at 1440.0<mailto:3456.0 at 1440.0>
>> bitsPerPixel: 32
>>
>>     On 7/16/24 18:27, Andres Valloud via Cuis-dev wrote:
>>     > Interesting.  What's the argument to basicNew:?
>>
>>
>> sizeRequested is 4976640
>>
>>     > On 7/16/24 18:25, Mark Volkmann via Cuis-dev wrote:
>>     >> Here's a screenshot of the stack trace.
>>     >>
>>     >> On Tue, Jul 16, 2024 at 8:19 PM Andres Valloud via Cuis-dev
>>     >> <cuis-dev at lists.cuis.st<mailto:cuis-dev at lists.cuis.st> <mailto:cuis-dev at lists.cuis.st<mailto:cuis-dev at lists.cuis.st>>
>>     <mailto:cuis-dev at lists.cuis.st<mailto:cuis-dev at lists.cuis.st> <mailto:cuis-dev at lists.cuis.st<mailto:cuis-dev at lists.cuis.st>>>>
>>     wrote:
>>     >>
>>     >>     No, that's not normal.  Can you paste the debugger's stack
>>     here?
>>     >>
>>     >>     On 7/16/24 18:11, Mark Volkmann via Cuis-dev wrote:
>>     >>      > Usually when I leave Cuis Smalltalk running and walk
>>     away from my
>>     >>      > computer (macOS) for a couple of hours, when I come back
>>     there
>>     >> is a
>>     >>      > Debugger window open with the message "Space is low". I
>>     can just
>>     >>     close
>>     >>      > it and keep working. Everything seems fine. Is this normal?
>>     >>      >
>>     >>      > --
>>     >>      > R. Mark Volkmann
>>     >>      > Object Computing, Inc.
>>     >>      >
>>     >>     --     Cuis-dev mailing list
>>     >> Cuis-dev at lists.cuis.st<mailto:Cuis-dev at lists.cuis.st> <mailto:Cuis-dev at lists.cuis.st<mailto:Cuis-dev at lists.cuis.st>>
>>     <mailto:Cuis-dev at lists.cuis.st<mailto:Cuis-dev at lists.cuis.st> <mailto:Cuis-dev at lists.cuis.st<mailto:Cuis-dev at lists.cuis.st>>>
>>     >> https://lists.cuis.st/mailman/listinfo/cuis-dev<https://lists.cuis.st/mailman/listinfo/cuis-dev>
>>     <https://lists.cuis.st/mailman/listinfo/cuis-dev<https://lists.cuis.st/mailman/listinfo/cuis-dev>>
>>     >>     <https://lists.cuis.st/mailman/listinfo/cuis-dev<https://lists.cuis.st/mailman/listinfo/cuis-dev>
>>     <https://lists.cuis.st/mailman/listinfo/cuis-dev<https://lists.cuis.st/mailman/listinfo/cuis-dev>>>
>>     >>
>>     >>
>>     >>
>>     >> --
>>     >> R. Mark Volkmann
>>     >> Object Computing, Inc.
>>     >>
>>     --
>>     Cuis-dev mailing list
>>     Cuis-dev at lists.cuis.st<mailto:Cuis-dev at lists.cuis.st> <mailto:Cuis-dev at lists.cuis.st<mailto:Cuis-dev at lists.cuis.st>>
>>     https://lists.cuis.st/mailman/listinfo/cuis-dev<https://lists.cuis.st/mailman/listinfo/cuis-dev>
>>     <https://lists.cuis.st/mailman/listinfo/cuis-dev<https://lists.cuis.st/mailman/listinfo/cuis-dev>>
>>
>>
>>
>> --
>> R. Mark Volkmann
>> Object Computing, Inc.
>
>
> --
> Juan Vuletich
> cuis.st<http://cuis.st/>
> github.com/jvuletich<http://github.com/jvuletich>
> researchgate.net/profile/Juan-Vuletich<http://researchgate.net/profile/Juan-Vuletich>
> independent.academia.edu/JuanVuletich<http://independent.academia.edu/JuanVuletich>
> patents.justia.com/inventor/juan-manuel-vuletich<http://patents.justia.com/inventor/juan-manuel-vuletich>
> linkedin.com/in/juan-vuletich-75611b3<http://linkedin.com/in/juan-vuletich-75611b3>
> twitter.com/JuanVuletich<http://twitter.com/JuanVuletich>
>
>
--
Cuis-dev mailing list
Cuis-dev at lists.cuis.st<mailto:Cuis-dev at lists.cuis.st>
https://lists.cuis.st/mailman/listinfo/cuis-dev<https://lists.cuis.st/mailman/listinfo/cuis-dev>


--

Nicolás Papagna
--
Cuis-dev mailing list
Cuis-dev at lists.cuis.st<mailto:Cuis-dev at lists.cuis.st>
https://lists.cuis.st/mailman/listinfo/cuis-dev<https://lists.cuis.st/mailman/listinfo/cuis-dev>


--
R. Mark Volkmann
Object Computing, Inc.
--
Cuis-dev mailing list
Cuis-dev at lists.cuis.st<mailto:Cuis-dev at lists.cuis.st>
https://lists.cuis.st/mailman/listinfo/cuis-dev<https://lists.cuis.st/mailman/listinfo/cuis-dev>



--
R. Mark Volkmann
Object Computing, Inc.


--
R. Mark Volkmann
Object Computing, Inc.




--

Juan Vuletich

cuis.st

github.com/jvuletich<http://github.com/jvuletich>

researchgate.net/profile/Juan-Vuletich<http://researchgate.net/profile/Juan-Vuletich>

independent.academia.edu/JuanVuletich<http://independent.academia.edu/JuanVuletich>

patents.justia.com/inventor/juan-manuel-vuletich<http://patents.justia.com/inventor/juan-manuel-vuletich>

linkedin.com/in/juan-vuletich-75611b3<http://linkedin.com/in/juan-vuletich-75611b3>

twitter.com/JuanVuletich<http://twitter.com/JuanVuletich>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240807/250cbd0a/attachment-0001.htm>


More information about the Cuis-dev mailing list