airsdk / Adobe-Runtime-Support

Report, track and discuss issues in Adobe AIR. Monitored by Adobe - and HARMAN - and maintained by the AIR community.
204 stars 11 forks source link

Calling TimeZone.availableTimeZoneNames cause application to crash #3421

Open ylazy opened 2 months ago

ylazy commented 2 months ago

I tried to call the new Air 50 API:

trace(TimeZone.availableTimeZoneNames);

and my app crashed!

Exception in debugger: flash.tools.debugger.NotConnectedException: Debugger is no longer connected to Flash Player
    at flash.tools.debugger.concrete.PlayerSession.isSuspended(PlayerSession.java:311)
    at flash.tools.debugger.threadsafe.ThreadSafeSession.isSuspended(ThreadSafeSession.java:174)
    at com.as3mxml.vscode.SWFDebugSession$SessionRunner.run(SWFDebugSession.java:255)
    at java.base/java.lang.Thread.run(Thread.java:833)

https://github.com/user-attachments/assets/5792e737-5c7f-4f0a-be13-860ab73fc8f2

Please view the video for more detail.

Thanks!

ylazy commented 2 months ago

The issue related to the application ID. I don't know why but changing the application ID fixes the issue.

https://github.com/user-attachments/assets/4b6bb8c8-761d-4480-a828-57a898c3d71b

The id value "com.ylazy.Test" cause the issue happen. Any different value is fine. I use this application id for testing so far. Changing back from any other value to com.ylazy.Test then the issue happens again.

ajwfrost commented 2 months ago

@ylazy that's a little bizarre! No idea how that can be related, but we can try it out here and see what happens... Thanks for the clear videos and explanations!

ajwfrost commented 2 months ago

We can't reproduce this using the normal Flash Debugger, wondering if it's possible to get a zip-up of your VSCode folder there so that we can try it with the exact same settings etc?

thanks

ylazy commented 2 months ago

bug.zip

I've attached a zip file to reproduce the problem.

https://github.com/user-attachments/assets/98828813-8925-4349-9df4-757db625b1db

It's so strange. Now the issue happens with any application id.

ajwfrost commented 2 months ago

We just tried this on a 23H2 build but it worked fine. Can you double-check the version you have please, I don't think 24H2 is a thing yet? or are you on some beta version?!

I suspect if it's crashing in that call, there's a library/dependency missing. We can add in some debugging outputs perhaps, if you're able to try with those...

ylazy commented 2 months ago

We just tried this on a 23H2 build but it worked fine. Can you double-check the version you have please, I don't think 24H2 is a thing yet? or are you on some beta version?!

Yes I'm joining the Windows Insider Program.

image

I realized that the issue depend on time on day. At this morning, the issue did happened. At this lunch, the issue did not happened. At this time I'm writing, the issue is not happening. I've just downloaded the zip file that I uploaded today and run it, and it's surprising that it's not crashing now 🤔

https://github.com/user-attachments/assets/2755144f-b401-4394-b412-b1580b70c834