System clock bug (crash)

A forum for general AmigaOS 4.x support questions that are not platform-specific

System clock bug (crash)

Postby xenic » Tue Nov 17, 2015 6:08 pm

I keep a digital clock (Sys:Utilities/Clock) on my Workbench toolbar and just discovered that if I turn off compositing in GUI prefs, the clock crashes when Workbench attempts to close and reopen.
To reproduce:

EDIT: Switch to 'kernal.debug' in Kickstart/Kicklayout and cold boot.
Turn on compositing in GUI prefs if it isn't already set.
Start SYS:Utilities/Clock.
Turn off compositing in GUI prefs and select "USE".
Clock crashes when Workbench attempts to reset.
There is no crash when using the normal kernal.

Can a beta tester confirm the problem and add it to the bug tracker?
Last edited by xenic on Tue Nov 17, 2015 7:42 pm, edited 1 time in total.
AmigaOne X1000 with 2GB memory - OS4.1 FE
xenic
 
Posts: 1148
Joined: Sun Jun 19, 2011 1:06 am

Re: System clock bug (crash)

Postby Raziel » Tue Nov 17, 2015 6:17 pm

No betatester here, but it also doesn't crash.

Clock window gets reset to the top left underneath the WB bar.

No crash, nothing.
Treid with and without date, even "Saved settings".

Must be something else on your setup
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney
-
Did everything just taste purple for a second? ~ Philip J. Fry
-
Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. John Zoidberg
User avatar
Raziel
 
Posts: 864
Joined: Sat Jun 18, 2011 5:00 pm
Location: A haunted Castle somewhere in the Bavarian Mountains

Re: System clock bug (crash)

Postby xenic » Tue Nov 17, 2015 7:18 pm

Raziel wrote:No betatester here, but it also doesn't crash.

Clock window gets reset to the top left underneath the WB bar.

No crash, nothing.
Treid with and without date, even "Saved settings".

Must be something else on your setup


I'll need to investigate further. I'm using an X1000 with OS4.1FE. What hardware and OS version are you using?

EDIT: O.K. I forgot that I had switched to the debug kernal (Kickstart/kernal.debug) to debug another program. I tested with the normal kernal and there's no crash. Now I'm beginning to wonder if the program I'm working on is buggy when using the debug kernal or if there is something wrong with the debug kernal. If system programs like the clock crash with the debug kernal but not with the normal kernal then something is wrong somewhere.
AmigaOne X1000 with 2GB memory - OS4.1 FE
xenic
 
Posts: 1148
Joined: Sun Jun 19, 2011 1:06 am

Re: System clock bug (crash)

Postby Raziel » Wed Nov 18, 2015 7:58 am

I had a similar problem with a third party program crashing while the debug.kernel was in charge.

It was indeed a bug in the program which never showed up under normal conditions due to the normal kernel being more forgiving.
So, it is indeed worthy to get this into the bugtracker, as programs shouldn't crash under debug and mask that crash under normal.
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney
-
Did everything just taste purple for a second? ~ Philip J. Fry
-
Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. John Zoidberg
User avatar
Raziel
 
Posts: 864
Joined: Sat Jun 18, 2011 5:00 pm
Location: A haunted Castle somewhere in the Bavarian Mountains

Re: System clock bug (crash)

Postby tonyw » Wed Nov 18, 2015 1:22 pm

Take a look at the debug log or the GR output. Is the DEAR something like 0xCCCCCCCC? Is there a register value something like that?
If so, it is probably caused by the clock utility trying to remove a node twice from a list (which will only crash when using the debug kernel).

If I can reproduce it, I'll post a BZ for you.

[edit]
Yep, it's an easy one. I'll fix it myself (famous last words)...
[/edit]

[edit]
Bug #9385, fixed in version 53.2 (19.11.2015).
[/edit]
Last edited by tonyw on Thu Nov 19, 2015 2:44 am, edited 2 times in total.
cheers
tony
User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 1331
Joined: Wed Mar 09, 2011 2:36 pm
Location: Sydney, Australia

Re: System clock bug (crash)

Postby tboeckel » Wed Nov 18, 2015 4:31 pm

xenic wrote:I keep a digital clock (Sys:Utilities/Clock) on my Workbench toolbar and just discovered that if I turn off compositing in GUI prefs, the clock crashes when Workbench attempts to close and reopen.


No offence, but a simple bug report like "it crashes" is worth nothing. It is even more worthless without the corresponding crashlog. Lucky you Tony was able to reproduce this himself so quickly and knows how to fix it. But in general the crashlog is really essential! Why do developers have to beg for it again and again each time?
User avatar
tboeckel
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 68
Joined: Mon Jun 20, 2011 9:56 am

Re: System clock bug (crash)

Postby xenic » Wed Nov 18, 2015 5:02 pm

@tonyw
Yes, as a matter of fact register 'r0' contains 0xCCCCCCCC. Thanks for confirming the problem. Hopefully it is an easy fix.
AmigaOne X1000 with 2GB memory - OS4.1 FE
xenic
 
Posts: 1148
Joined: Sun Jun 19, 2011 1:06 am

Re: System clock bug (crash)

Postby samo79 » Fri Nov 20, 2015 11:01 am

@tonyw

As you are here can you add an iconify gadget into the clock ? ;)
User avatar
samo79
 
Posts: 520
Joined: Sat Jun 18, 2011 12:13 am
Location: Italy

Re: System clock bug (crash)

Postby tonyw » Fri Nov 20, 2015 1:11 pm

No, the code is just too old, it would need a rewrite.
cheers
tony
User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 1331
Joined: Wed Mar 09, 2011 2:36 pm
Location: Sydney, Australia


Return to General AmigaOS

Who is online

Users browsing this forum: No registered users and 3 guests

cron