Closed DRSDavidSoft closed 10 months ago
Thanks for the report! Yes, attach the problematic SWFs please. The uploaded builds have no debug information in them to show where exactly the problem occurred.
Thanks for the speedy reply! I'll attach some lightweight SWF files for now:
These are some examples with a short size. I can attach the original SWFs that were causing problems as well. Maybe the issue is regarding the inclusion of some sort of links in the SWF files? Or is it related to the loading screen?
All 3 of the non-working examples work on my phone... 😐
What device and which Android version are you on?
Interesting! My device specification is as below (I also mentioned them in the original message):
Samsung Galaxy Tab S8 Ultra (SM-X906B) Android Version: 13 (API 33) Processor: Qualcomm SM8450 Snapdragon 8 Gen 1 Revision r2p0 Arch: armv8a-aarch64 Linux Kernel: 5.10.136 GPU: Qualcomm Adreno 730
The screen resolution is 2960x1848.
I used the nightly build with version of 20230807.
Is there a way I can attach a debugger and send you a more through log?
Additionally, can you please test that the following file also works when you press the PLAY button on the initial screen?
https://archive.org/download/sonic-shorts-volume-1/Sonic%20Shorts%20Volume%201.swf
(I also mentioned them in the original message):
Right, sorry, didn't read the edits, only the email with the original version of your report.
Is there a way I can attach a debugger and send you a more through log?
You could try following the build instructions in the README, and debug using Android Studio, but it's not exactly straightforward...
Additionally, can you please test that the following file also works when you press the PLAY button on the initial screen?
Yep, I can play the shorts no problem.
Could you please try this build? This one uses OpenGL for rendering, not Vulkan. Many Android phones have buggy Vulkan drivers... https://github.com/torokati44/ruffle-android/actions/runs/5579837493
Hi again, you were right! I did some extensive tests, and every SWF file works great with this build. So sorry for opening a duplicate issue, it never occured to me that the issue might be related to Vulkan builds. I wonder why this happens!
Anyways, is there anything I can do to help identify problems such as this? I don't have any Rust knowledge, but I'd be glad if I can help with any testing, etc. OpenGL seems to also perform well on my device, so no issue there!
I also had two unrelated questions/problems, that I was going to open a new issue, but since there are rather minor, I'd appreciate if I could ask them here as well:
adb.exe
or by any other means if you have implemented any sort of user settings. Obviously, waiting patiently for the config UI screens to come in future releases, so thank you! 👍🏻 Overall, thank you for bringing Ruffle to Android. Now I'm able to open many great nostalgic games such as Bloxorz on my tablet, which works great with the physical keyboard and the Dex mode! 🎉
I did some extensive tests, and every SWF file works great with this build.
Great, I'm glad! I'll soon push out a release where only the OpenGL backend is used for rendering, not Vulkan. Hopefully it will have fewer issues, and still perform well.
So sorry for opening a duplicate issue, it never occured to me that the issue might be related to Vulkan builds.
No worries, you couldn't have known.
I wonder why this happens!
Because of the buggy Vulkan drivers on Android by the device/SoC/GPU vendors... :)
When a SWF file is opened, if I navigate back to the initial screen, the UI elements such as the "Load an SWF" button are all disabled or freezed. [...] Can you also test to see if this issue only happens on my device, or yours as well?
Yeah I know about that, it happens for everybody, I just haven't gotten around to fixing it yet, sorry...
Have you implemented any sort of user preferences currently? [...] Obviously, waiting patiently for the config UI screens to come in future releases, so thank you!
I started working on setting preferences (exactly so users can choose between OpenGL and Vulkan backends :D and maybe other player options as well...), but again, didn't have much time to get far with it... As a first step, it might be easier to simply make the keyboard visibility persistent.
Overall, thank you for bringing Ruffle to Android. Now I'm able to open many great nostalgic games such as Bloxorz on my tablet, which works great with the physical keyboard and the Dex mode!
Yaay!
I'll soon push out a release where only the OpenGL backend is used for rendering, not Vulkan.
Well, actually... This build was going to be it: https://github.com/torokati44/ruffle-android/actions/runs/5835878401
But I'm seeing washed out colors with it. Could you please try this one too? (Download the ruffle-release-apks
artifact, that one has all the APKs in it.)
You're right, the colors are not accurate. It seems to be brighter than it should be. I don't know what it could be caused by 🤷🏻
Hopefully this latest release (https://github.com/torokati44/ruffle-android/releases/tag/20230812) fixes the colors with OpenGL. It was https://github.com/gfx-rs/wgpu/pull/3817 BTW.
Thank you for the through investigation! The colors are now accurate! However, a weird issue happened again, the SWF files that were causing a problem are again causing crashes or launch loops again! At first I thought I had installed the older release as the behavior is exactly the same 😢
Could it be related to the way the color space is presented/used in either Vulkan/OpenGL? Maybe the original issue is unrelated to Vulkan, and is indeed related to colors paces...
Issue fixed on latest build! 🎉
That's strange, I don't know how this could be - but anyway, I'm glad!
Hi there!
Description
Ruffle for Android works wonderfully on some SWF files, but on others, the app crashes, or re-launches continually until the user exists.
I can't figure out why this happens. Can you please take a look? Please also let me know if I need to send you the SWF files.
I also noticed that this happens on the SWF files that have a loading screen, or check for the loading.
NOTE: I am submitting the issue here, because the same SWF files work without an issue on the latest official nightly build of Ruffle, tested on Windows 11.
For example, if you open Sonic Shorts Volume 1, 2 or 3, the Ruffle app displays the flash correctly up until you click on "PLAY" button, after load screen. Then either the app would crash, or it would re-launch from the beginning.
Device info
Samsung Galaxy Tab S8 Ultra (SM-X906B) Android Version: 13 (API 33) Processor: Qualcomm SM8450 Snapdragon 8 Gen 1 Revision r2p0 Arch: armv8a-aarch64 Linux Kernel: 5.10.136 GPU: Qualcomm Adreno 730
ADB Logcat
I've attached the full logcat (with the D, V, I flags included as well) below:
📦 rufflerr.log
Here's the log without debug, verbose and information flags: