Hello,Thanks to Richard, I was able to fix the autorelease issue. The app is building and running without segfault now.
To base the demo on a concrete example, I try to get and to display uptime in the AppIcon.
According to the log, the loop seems to work as expected, but after a correct first init state, the appIcon does not refresh its content as expected.
This is a first quote of the log:
patrick@pi500:~/SOURCES/AgnostepText_Template $ openapp ./Demo.app2026-03-21 23:04:15.026 Demo[306787:306787] Application did finish launching2026-03-21 23:04:15.036 Demo[306787:306787] Enter in drawRepOnIcon... 2026-03-21 23:04:15.036 Demo[306787:306787] After removing of reps: 0 2026-03-21 23:04:15.036 Demo[306787:306787] Enter in drawImageRep... 2026-03-21 23:04:15.036 Demo[306787:306787] Enter in getInfo... 2026-03-21 23:04:15.038 Demo[306787:306787] Task has been launched2026-03-21 23:04:15.040 Demo[306787:306787] str: up 5 hours, 12 minutes 2026-03-21 23:04:15.040 Demo[306787:306787] This is My Text Info: 5 : 12 2026-03-21 23:04:15.041 Demo[306787:306787] Text size: {width = 40; height = 17}2026-03-21 23:04:15.042 Demo[306787:306787] End of drawImageRep... 2026-03-21 23:04:15.042 Demo[306787:306787] End of drawRepOnIcon (...)
Now the AppIcon of Demo.app is displaying '5 : 12' as expected. After a minute:
2026-03-21 23:04:35.043 Demo[306787:306787] Enter in drawRepOnIcon... 2026-03-21 23:04:35.043 Demo[306787:306787] reps: 1 2026-03-21 23:04:35.043 Demo[306787:306787] After removing of reps: 0 2026-03-21 23:04:35.043 Demo[306787:306787] Enter in drawImageRep... 2026-03-21 23:04:35.043 Demo[306787:306787] Enter in getInfo... 2026-03-21 23:04:35.044 Demo[306787:306787] Task has been launched2026-03-21 23:04:35.046 Demo[306787:306787] str: up 5 hours, 13 minutes 2026-03-21 23:04:35.046 Demo[306787:306787] This is My Text Info: 5 : 13 2026-03-21 23:04:35.047 Demo[306787:306787] Text size: {width = 40; height = 17}2026-03-21 23:04:35.047 Demo[306787:306787] End of drawImageRep... 2026-03-21 23:04:35.047 Demo[306787:306787] End of drawRepOnIcon
So one minute later, instead of the expected '5 : 13', still '5 : 12' is displayed.
It is like the content is unmutable or cached. I attached a tarball of the last state of the project. <AgnostepText_Template.tar.gz>On 2026-03-20 18:59:24 +0100 Patrick CARDONA <[email protected]> wrote:
(...)
I am working on an application to replace 'WMText' dockapp with a more powerfull and consistent GNUstep template.(...)Stages: (...)3- Adding dynamic text from an NStask output to retrieve external infos ...
(...) Kind Regards, Patrick -- Patrick Cardona - Pi500 - GNU/Linux aarch64 (Debian 13.4)Xorg (1:7.7+24) - libcairo2 (1.18.4-1+rpt1 arm64) - Window Maker (0.96.0-4) GWorkspace (1.1.0 - 02 2025) - Theme: AGNOSTEP - Classic - MUA: GNUMail (1.4.0 - rev.947)
AgnostepText_Template.tar.gz
Description: GNU Zip compressed data
