Welcome, Guest. Please login or register.

Author Topic: Hollywood app crashes  (Read 417 times)

Description:

amyren and 3 Guests are viewing this topic.

Online amyrenTopic starter

Hollywood app crashes
« on: November 05, 2025, 09:46:12 AM »
I have developed this painting program, PolarPaint with Hollywood.
It is the Undo feature that causes the program to crashm with a "Table Field 2 not initialized" error
It is easy to replicate, just draw a few dots on and then use the undo button a couple of times and the program will crash.

I tested the same executable on WinUAE, and my A1200 (pistorm) and even under Amiberry 7 on linux mint, and it runs without issues.
The executables for windows and MorphOS does work fine as well.
I suspect that the issue must be a bug in the amiberry for arm version used in the A600GS. On the A600GS the error will happen on OS3.9 and 3.2 as well as on Amibench.

Here is a small minumum code to replicate the issue from Hollywood:

UndoStack1 = CreateList()
SetFontColor(#WHITE)
SetFillStyle(#FILLCOLOR)
counter = 100
For i = 1 To 10
   InsertItem(UndoStack1 , counter)
   Local undoBrushID1 = UndoStack1[ListItems(UndoStack1)-1] ; Get the last undo state
   Wait(40)
   Box(300, 100, 50, 20, #BLACK)
   TextOut(300, 100, undoBrushID1)
   counter = counter+1
Next
Wait(50)
For i = 1 To 10
   Box(300, 100, 50, 20, #BLACK)
   Local undoBrushID1 = UndoStack1[ListItems(UndoStack1)-1]
   TextOut(300, 100, undoBrushID1)
   Wait(40)
   RemoveItem(UndoStack1, ListItems(UndoStack1) - 1)
Next
WaitLeftMouse
 

Offline F0LLETT

  • Amigakit / A-EON Support
  • Administrator
  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 1082
  • Country: gb
  • Thanked: 93 times
  • Gender: Male
    • Show only replies by F0LLETT
    • Ultimate Amiga
Re: Hollywood app crashes
« Reply #1 on: November 05, 2025, 09:47:43 AM »
Is jit enabled?
Quote from: Hungry Horace
Resolute and Industrious Grand ruler of the yellow people and the Ultimate Amiga Empire
Ultimate Amiga Network (Home of SONY PSP Amiga Emulator and AMOS Factory)

Quote from:  He who shall not be named
"Chris is that you!!!"
My all time favorite quote.
 

Offline broadblues

Re: Hollywood app crashes
« Reply #2 on: November 05, 2025, 11:57:01 AM »
I have developed this painting program, PolarPaint with Hollywood.
It is the Undo feature that causes the program to crashm with a "Table Field 2 not initialized" error
It is easy to replicate, just draw a few dots on and then use the undo button a couple of times and the program will crash.

I tested the same executable on WinUAE, and my A1200 (pistorm) and even under Amiberry 7 on linux mint, and it runs without issues.
The executables for windows and MorphOS does work fine as well.
I suspect that the issue must be a bug in the amiberry for arm version used in the A600GS. On the A600GS the error will happen on OS3.9 and 3.2 as well as on Amibench.

Here is a small minumum code to replicate the issue from Hollywood:

UndoStack1 = CreateList()
SetFontColor(#WHITE)
SetFillStyle(#FILLCOLOR)
counter = 100
For i = 1 To 10
   InsertItem(UndoStack1 , counter)
   Local undoBrushID1 = UndoStack1[ListItems(UndoStack1)-1] ; Get the last undo state
   Wait(40)
   Box(300, 100, 50, 20, #BLACK)
   TextOut(300, 100, undoBrushID1)
   counter = counter+1
Next
Wait(50)
For i = 1 To 10
   Box(300, 100, 50, 20, #BLACK)
   Local undoBrushID1 = UndoStack1[ListItems(UndoStack1)-1]
   TextOut(300, 100, undoBrushID1)
   Wait(40)
   RemoveItem(UndoStack1, ListItems(UndoStack1) - 1)
Next
WaitLeftMouse

I don't have hollywood to compile with, could you compile that test cde and send me it at andy@broad.ology.org.uk then I can examine the logs when it crashes and see if anything is obvious.
 

Online amyrenTopic starter

Re: Hollywood app crashes
« Reply #3 on: November 05, 2025, 03:09:46 PM »
Is jit enabled?
I tried both, same result.

Off topic, but since you mentioned JIT. Does the setting work at all for you? I have this OS3.9 setup and I cant spot any difference in usage if I enable JIT or not. Also SysInfo speed tests are the same, about 12 times faster compared to A4000 040/25
 

Offline F0LLETT

  • Amigakit / A-EON Support
  • Administrator
  • Hero Member
  • *****
  • Join Date: Aug 2007
  • Posts: 1082
  • Country: gb
  • Thanked: 93 times
  • Gender: Male
    • Show only replies by F0LLETT
    • Ultimate Amiga
Re: Hollywood app crashes
« Reply #4 on: November 05, 2025, 04:04:52 PM »
I tried both, same result.

Off topic, but since you mentioned JIT. Does the setting work at all for you? I have this OS3.9 setup and I cant spot any difference in usage if I enable JIT or not. Also SysInfo speed tests are the same, about 12 times faster compared to A4000 040/25

It does, also depends of CPU speed setting.

I'd listen to what Broadblues said and get back to him here.
Quote from: Hungry Horace
Resolute and Industrious Grand ruler of the yellow people and the Ultimate Amiga Empire
Ultimate Amiga Network (Home of SONY PSP Amiga Emulator and AMOS Factory)

Quote from:  He who shall not be named
"Chris is that you!!!"
My all time favorite quote.
 

Online amyrenTopic starter

Re: Hollywood app crashes
« Reply #5 on: November 06, 2025, 09:35:47 AM »
It does, also depends of CPU speed setting.

I'd listen to what Broadblues said and get back to him here.

Unless caught in spam filter, Broadblues got the attachment yesterday

About the JIT I guess I could create a separate thread for it to get in depth of it
 

Offline broadblues

Re: Hollywood app crashes
« Reply #6 on: November 06, 2025, 11:40:44 AM »
It was in my spam draw in YAM, will test ....
 

Offline broadblues

Re: Hollywood app crashes
« Reply #7 on: November 06, 2025, 11:49:56 AM »
After opening a black window it loses again and displays a errr requester saying:

Quote
Table field 1 was not initialised!

File: Unnamed1 (current line 7)

No crashes occurred.
 

Offline broadblues

Re: Hollywood app crashes
« Reply #8 on: November 06, 2025, 11:56:11 AM »
WRT to JIT

If CPU Speed is set to maximum then JIT will mean faster 68k CPU speed.

If CPU Speed is set to specific speed, then JIT will mean less Arm CPU used to obtain that speed

That's how I understand it anyway.
 

Online amyrenTopic starter

Re: Hollywood app crashes
« Reply #9 on: November 06, 2025, 01:44:14 PM »
It does not crash the system, it is the app itself that crashes (exits on error)

The black window should show a counter that display the numbers from 100 to 109, then count down to 100 again. After this the window should stay open until you press left mouse button.
If it doesnt, it means the app crashed.
Try the executable on winuae or a real amiga to test.
 

Offline AmigaNG

  • Sr. Member
  • ****
  • Join Date: Feb 2010
  • Posts: 321
  • Country: 00
    • Show only replies by AmigaNG
Re: Hollywood app crashes
« Reply #10 on: November 07, 2025, 09:00:20 AM »
I think it’s a know slight issue on Arm JIT

https://github.com/BlitterStudio/amiberry-lite/issues/4

https://github.com/BlitterStudio/amiberry/issues/1125

I found JIT to be a little less stable than it is with winuae/ x86, Turning it off or tweaking setting in emulation config can help, also amiberry updates fixed a few issue I was running into in the past, so it good it getting more stable.



« Last Edit: November 07, 2025, 09:09:13 AM by AmigaNG »
 

Online amyrenTopic starter

Re: Hollywood app crashes
« Reply #11 on: November 07, 2025, 01:44:50 PM »
I think it’s a know slight issue on Arm JIT

https://github.com/BlitterStudio/amiberry-lite/issues/4

https://github.com/BlitterStudio/amiberry/issues/1125

I found JIT to be a little less stable than it is with winuae/ x86, Turning it off or tweaking setting in emulation config can help, also amiberry updates fixed a few issue I was running into in the past, so it good it getting more stable.


I think you are right.
There must be an issue with my A600GS setup, since it apears not to change anything if I turn JIT off or On. And the sysinfo readings I get suggests that JIT is enabled always.

To test this theory I did replace the SD card with one with a regular OrangePI linux install on. There I have Amiberry-Lite v5.7.5 installed. Turning off JIT and it runs without the error, with JIT on it acts just as on the A600GS setup.

Also I edited the script a bit to avoid the "crash with error" situation. This script will cause the program to run without premature exit, but will reveal that JIT messes up the sequence of reading tables in Hollywood.
With JIT it will count up from 100, but skip the number 102. Then when it counts down it will skip 102 again, and jump to 101, 100, and then 102.

Hollywood script:
UndoStack1 = CreateList()
SetFillStyle(#FILLCOLOR)
counter = 100
For i = 1 To 10
   InsertItem(UndoStack1, counter)
   Local undoBrushID1 = GetItem(UndoStack1, ListItems(UndoStack1)-1)
   Wait(40)
   Box(300, 100, 50, 20, #BLACK)
   TextOut(300, 100, undoBrushID1)
   counter = counter+1
Next
Wait(50)
For i = 1 To 10
   Box(300, 100, 50, 20, #BLACK)
   Local undoBrushID1 = GetItem(UndoStack1, ListItems(UndoStack1)-1)   
   TextOut(300, 100, undoBrushID1)
   Wait(40)
   RemoveItem(UndoStack1, ListItems(UndoStack1) - 1)
Next
WaitLeftMouse
 

Online amyrenTopic starter

Re: Hollywood app crashes
« Reply #12 on: November 07, 2025, 01:48:18 PM »
After opening a black window it loses again and displays a errr requester saying:

No crashes occurred.

Just emailed you a updated executable to test with and without JIT
 

Offline broadblues

Re: Hollywood app crashes
« Reply #13 on: November 07, 2025, 02:10:19 PM »
Thanks I can confirm the issue, I notice the first github issue shared above is one of yours?

Hollywood is a bit of a monolithic program to track something like this own with, and I'm no expert on the JIT in the first place, ideally a small fragment off C or assembly code that can reproduce the bug is needed.
 

Online amyrenTopic starter

Re: Hollywood app crashes
« Reply #14 on: November 07, 2025, 05:34:35 PM »
Yea, that first github issue was me:)
More than 5 years ago, so I guess the bug may remain a while