MuiRoyal crash on fast AmigaOS 4 HW

Discuss GUI programming with the MUI Royale plugin here
Post Reply
tekmage
Posts: 6
Joined: Thu Oct 20, 2011 8:30 am

MuiRoyal crash on fast AmigaOS 4 HW

Post by tekmage »

Hello Airsoft,

There are two amazing Hollywood applications that use MUIRoyal that crashed on the AmigaOneX5000, One is Pixy, and the other is SQLMan. The MUIRolyal examples run without issue. I have an AmigaOne XE and tested Pixy; it runs just fine. I've asked 6 or 7 different X5000 owners, and they all report the same issue. Some X1000 users have seen the crash, but SAM owners reported no issues.

One of my friends did some work to add debug to codesets.library and we found the crash happens when codesets.library receives a NULL pointer.

Here is an example stack trace from The Grim Reaper:

Code: Select all

 native kernel module newlib.library.kmod+0x00034bc4
    LIBS:codesets.library:LIB_CodesetsConvertStrA()+0x178 (section 1 @ 0x85FC)
    module SYS:Storage/Hollywood/hollywood.RDNZNC/MUIRoyale.hwp at 0x7BF48F74 (section 0 @ 0x9F50)
    module SYS:Storage/Hollywood/hollywood.RDNZNC/MUIRoyale.hwp at 0x7BF5E280 (section 0 @ 0x1F25C)
    module SYS:Storage/Hollywood/hollywood.RDNZNC/MUIRoyale.hwp at 0x7BF60244 (section 0 @ 0x21220)
    module SYS:Storage/Hollywood/hollywood.RDNZNC/MUIRoyale.hwp at 0x7BF611EC (section 0 @ 0x221C8)
    module SYS:Storage/Hollywood/hollywood.RDNZNC/MUIRoyale.hwp at 0x7BF63430 (section 0 @ 0x2440C)
    module SYS:Storage/Hollywood/hollywood.RDNZNC/MUIRoyale.hwp at 0x7BF583D0 (section 0 @ 0x193AC)
    module SYS:Storage/Hollywood/hollywood.RDNZNC/MUIRoyale.hwp at 0x7BF485B4 (section 0 @ 0x9590)
    module SYS:Storage/Hollywood/hollywood.RDNZNC/MUIRoyale.hwp at 0x7BF4E9F8 (section 0 @ 0xF9D4)
    module Pixy at 0x7B776830 (section 0 @ 0x10680C)
    module Pixy at 0x7B77D838 (section 0 @ 0x10D814)
    module Pixy at 0x7B776F20 (section 0 @ 0x106EFC)
    module Pixy at 0x7B773C68 (section 0 @ 0x103C44)
    module Pixy at 0x7B775E30 (section 0 @ 0x105E0C)
    module Pixy at 0x7B775F1C (section 0 @ 0x105EF8)
    module Pixy at 0x7B773958 (section 0 @ 0x103934)
    module Pixy at 0x7B691E0C (section 0 @ 0x21DE8)
    module Pixy at 0x7B7FFE3C (section 0 @ 0x18FE18)
    module Pixy at 0x7B678C68 (section 0 @ 0x8C44)
    module Pixy at 0x7B7FA008 (section 0 @ 0x189FE4)
    module Pixy at 0x7B8B2174 (section 0 @ 0x242150)
    module Pixy at 0x7B8B4CBC (section 0 @ 0x244C98)
    0x61727400 symbol not available
There are times when Pixy does run, but nothing is repeatable, and the crash is very consistent. Any chance you could look at this issue and hopefully find a fix or workaround?

Thank you,
Bill "tekmage" Borsari
Valiant
Posts: 1
Joined: Sat Jul 14, 2012 7:01 am

Re: MuiRoyal crash on fast AmigaOS 4 HW

Post by Valiant »

I can confirm what Bill has said. On my XE and A1 X1000 Pixy starts and runs just fine, but on my A1 X5000/40 Pixy always crashes as Bill has described. If you need any more info from my system, I'd be more than happy to provide it to whereever you'd like.
User avatar
jPV
Posts: 493
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Re: MuiRoyal crash on fast AmigaOS 4 HW

Post by jPV »

If this is the same bug as I've reported earlier (looks pretty same to me), it can happen on slower setups too. Maybe it just doesn't trigger that easily, but is still there? Or trashes random memory which is more likely to cause visible issues on X5000? In any case I've reproduced it on a very slooow emulation setup, but it isn't reproducible every time and needs more tries to get it triggered.

BTW. can any X5000 owner reproduce the issue with an official Hollywood example like the MUIRoyale / Dynamic2 example? Click around with "Add button" and "Remove button" buttons long enough.
tekmage
Posts: 6
Joined: Thu Oct 20, 2011 8:30 am

Re: MuiRoyal crash on fast AmigaOS 4 HW

Post by tekmage »

Hey JPV,

I ran Dynamic2 and did the Add/Remove actions a bunch of times. No crash here.
User avatar
airsoftsoftwair
Posts: 5068
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: MuiRoyal crash on fast AmigaOS 4 HW

Post by airsoftsoftwair »

Ok, I've debugged this on my X5000 and it seems to be a bug in codesets.library. I've pushed a fix to the codesets.library repository here. And here is a fixed build of codesets.library that can be used until a new version is released.

With my fixed version of codesets.library I can't reproduce the crash any longer so I think this fixes it.
tekmage
Posts: 6
Joined: Thu Oct 20, 2011 8:30 am

Re: MuiRoyal crash on fast AmigaOS 4 HW

Post by tekmage »

Hey airsoftware!

Thank you for looking into this issue. I've been able to deploy your codesets lib and thus far have NOT seen the issue with pixy or any other MUIRoyal app.

I'll ping a few friends so they can also test on their systems.

Cheers,
Bill "tekmage" Borsari
Post Reply