The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Yona-TYT on June 23, 2022, 07:19:34 PM

Title: (Android) FATAL ERROR: GET_NODE - called while list in use
Post by: Yona-TYT on June 23, 2022, 07:19:34 PM
Using Simutrans from Play Store v123.01




Quoteusually when I'm playing the game, I barely make the tracks or movements (and it has been crashing a lot, even with my cell phone having 4gb of ram and 64gb) and this message appears, locking it completely


FATAL ERROR: GET_NODE - called while list in use
 Aborting program execution ...
 
 For help with this error or to file a bug report please see the Simutrans forum at https://�forum.simutrans.com/
 PRESS ANY KEY

Title: Re: (Android) FATAL ERROR: GET_NODE - called while list in use
Post by: Yona-TYT on June 23, 2022, 11:37:06 PM
Capture
Title: Re: (Android) FATAL ERROR: GET_NODE - called while list in use
Post by: prissi on June 24, 2022, 01:35:20 AM
This can only happen, if there are two simultanious way building events, and is not limited to Android. What did you do just before this? Was an AI running?
Title: Re: (Android) FATAL ERROR: GET_NODE - called while list in use
Post by: Yona-TYT on June 24, 2022, 02:11:39 AM
I think he's just been playing normally from his device (moving around the map, building roads, starting vehicles), I don't know what quirk he could be doing, I'd have to test myself on other devices.
Title: Re: (Android) FATAL ERROR: GET_NODE - called while list in use
Post by: Yona-TYT on June 24, 2022, 03:46:46 PM

QuoteI'm thinking that this error comes from using the app for a certain time
Title: Re: (Android) FATAL ERROR: GET_NODE - called while list in use
Post by: TurfIt on June 24, 2022, 04:59:19 PM
Quote from: Yona-TYT on June 23, 2022, 07:19:34 PMUsing Simutrans from Play Store v123.01
Perhaps already fixed with r10627?
Title: Re: (Android) FATAL ERROR: GET_NODE - called while list in use
Post by: Yona-TYT on June 25, 2022, 03:54:52 PM
Quote from: TurfIt on June 24, 2022, 04:59:19 PMPerhaps already fixed with r10627?
Sent him in for testing the "last night", but it seems the problem is still there.


289099337_776741946667081_5316218559127491767_n.jpg
Title: Re: (Android) FATAL ERROR: GET_NODE - called while list in use
Post by: Yona-TYT on June 25, 2022, 07:48:26 PM
I was able to replicate the error on my own, while using the roads tool.

I suspect this happens only on touch devices.
Title: Re: (Android) FATAL ERROR: GET_NODE - called while list in use
Post by: Yona-TYT on June 25, 2022, 10:48:50 PM
I have made a video capture of the error.

IMPORTANT NOTE: See how long it takes to react to the zoom (with two fingers), about 30 or 40 seconds after the interaction, someone from the Japanese community on twitter complained about it.


Title: Re: (Android) FATAL ERROR: GET_NODE - called while list in use
Post by: prissi on June 26, 2022, 12:48:16 PM
The device apparently runs with 3 fps and is seriously overloaded by the game. The two finger SDL2 support fires about 100 events per movements, and the code processes 1-2 per frame. Thus it takes 100 frames = 30s for the final event to be processed. Ask SDL2 why they found floating pint precision for something a imprecise as a fingers is needed and why not combine all movements since last event together (as done for the mouse).
Title: Re: (Android) FATAL ERROR: GET_NODE - called while list in use
Post by: Yona-TYT on June 26, 2022, 10:39:59 PM
Quote from: prissi on June 26, 2022, 12:48:16 PMThe device apparently runs with 3 fps and is seriously overloaded by the game. The two finger SDL2 support fires about 100 events per movements, and the code processes 1-2 per frame. Thus it takes 100 frames = 30s for the final event to be processed. Ask SDL2 why they found floating pint precision for something a imprecise as a fingers is needed and why not combine all movements since last event together (as done for the mouse).
Sorry, I didn't realize this was a limitation of SDL2, hopefully that will change one day.


The device I use for the tests gives up to 24 fps, look at the image.


Given this inconvenience, it may be best to disable two-finger zoom (pinch) until further notice.
Title: Re: (Android) FATAL ERROR: GET_NODE - called while list in use
Post by: Yona-TYT on June 26, 2022, 10:46:38 PM
@prissi, regarding the "GET_NODE - called while list in use" error, have you managed to replicate it? I doubt it's related to two finger zoom interactions.
Title: Re: (Android) FATAL ERROR: GET_NODE - called while list in use
Post by: prissi on June 27, 2022, 01:26:48 AM
No I could not repeat it, but it could be due to an old nightly. The beta track and the next release on my new pixel 5a and an old fire tablet both did not show this issue.

In the video, the road did not show a preview when dragging (or was you jus clicking?), so this seems to indicate that the simloops were rather zero.
Title: Re: (Android) FATAL ERROR: GET_NODE - called while list in use
Post by: Yona-TYT on June 27, 2022, 01:36:47 AM
Quote from: prissi on June 27, 2022, 01:26:48 AMNo I could not repeat it, but it could be due to an old nightly. The beta track and the next release on my new pixel 5a and an old fire tablet both did not show this issue.

In the video, the road did not show a preview when dragging (or was you jus clicking?), so this seems to indicate that the simloops were rather zero.
I was constantly dragging with the road tool.

Edit.
By the way I am using the version available in the play store.
Title: Re: (Android) FATAL ERROR: GET_NODE - called while list in use
Post by: prissi on June 27, 2022, 07:28:28 AM
The version in the play store is not very definitive, as it should release a newer version frequently but that seems to take much longer than expected.

Anyway, I found the error. dragging is not enough, one had to build roads like crazy on a heavy game fully zoomed out (so 1-3 simloops). It was just one flag for deferred execution true instead false. r10673 should fix this, but not sure when this appears in the store.
Title: Re: (Android) FATAL ERROR: GET_NODE - called while list in use
Post by: Yona-TYT on June 27, 2022, 10:30:40 AM
How great are you! I'm so glad it's fixed.

When I get home I will personally test