Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android emulator crashes with antialiasing >= 2 #1782

Open
tobil4sk opened this issue May 10, 2024 · 0 comments
Open

Android emulator crashes with antialiasing >= 2 #1782

tobil4sk opened this issue May 10, 2024 · 0 comments

Comments

@tobil4sk
Copy link
Member

If I set antialiasing to 2 or higher in a project (e.g. the BunnyMark sample) the app crashes in the emulator I'm running with lime test android -64 -debug.

<window antialiasing="2" />

Using the develop branch of lime (c70ec9f). Lime is built with ndk r15c (lime rebuild android -64 -debug) and with this patch: HaxeFoundation/hxcpp#855.
The project is built with r21e.

Here is the popup:
image

Here is the crash dump:

********** Crash dump: **********
Build fingerprint: 'google/sdk_gpc_x86_64/emu64xa:13/TE2A.221127.024/11217414:userdebug/dev-keys'
#00 0x000000000087f1cd /data/app/~~eDbH_7qOlZkjF8j4l0-4Pw==/org.openfl.lime.demos.bunnymark-y3ugXL7TXCKIgp4CAJEQOg==/lib/x86_64/liblime.so
SDL_GetWindowSize_REAL
/.../BunnyMark/lime/project/./lib/sdl/src/video/SDL_video.c:2057:0
#01 0x00000000008bae2a /data/app/~~eDbH_7qOlZkjF8j4l0-4Pw==/org.openfl.lime.demos.bunnymark-y3ugXL7TXCKIgp4CAJEQOg==/lib/x86_64/liblime.so (SDL_GetWindowSize+46)
                                                                                                                                            SDL_GetWindowSize
                                                                                                                                            /.../BunnyMark/lime/project/./lib/sdl/src/dynapi/SDL_dynapi_procs.h:555:0
#02 0x0000000000116fb7 /data/app/~~eDbH_7qOlZkjF8j4l0-4Pw==/org.openfl.lime.demos.bunnymark-y3ugXL7TXCKIgp4CAJEQOg==/lib/x86_64/liblime.so
lime::SDLWindow::GetWidth()
/.../BunnyMark/lime/project/./src/backend/sdl/SDLWindow.cpp:673:0
#03 0x000000000010540d /data/app/~~eDbH_7qOlZkjF8j4l0-4Pw==/org.openfl.lime.demos.bunnymark-y3ugXL7TXCKIgp4CAJEQOg==/lib/x86_64/liblime.so
lime::lime_window_get_width(_value*)
/.../BunnyMark/lime/project/./src/ExternalInterface.cpp:3440:0
#04 0x00000000006f84a4 /data/app/~~eDbH_7qOlZkjF8j4l0-4Pw==/org.openfl.lime.demos.bunnymark-y3ugXL7TXCKIgp4CAJEQOg==/lib/x86_64/libApplicationMain.so
lime::_internal::backend::native::NativeWindow_obj::__construct(hx::ObjectPtr<lime::ui::Window_obj>)
/.../BunnyMark/Export/android/obj/./src/lime/_internal/backend/native/NativeWindow.cpp:311:38
#05 0x0000000000701159 /data/app/~~eDbH_7qOlZkjF8j4l0-4Pw==/org.openfl.lime.demos.bunnymark-y3ugXL7TXCKIgp4CAJEQOg==/lib/x86_64/libApplicationMain.so
lime::_internal::backend::native::NativeWindow_obj::__alloc(hx::ImmixAllocator*, hx::ObjectPtr<lime::ui::Window_obj>)
/.../BunnyMark/Export/android/obj/./src/lime/_internal/backend/native/NativeWindow.cpp:1095:10
#06 0x00000000004d5cd9 /data/app/~~eDbH_7qOlZkjF8j4l0-4Pw==/org.openfl.lime.demos.bunnymark-y3ugXL7TXCKIgp4CAJEQOg==/lib/x86_64/libApplicationMain.so
lime::ui::Window_obj::__construct(hx::ObjectPtr<lime::app::Application_obj>, Dynamic)
/.../BunnyMark/Export/android/obj/./src/lime/ui/Window.cpp:195:38
#07 0x00000000004da591 /data/app/~~eDbH_7qOlZkjF8j4l0-4Pw==/org.openfl.lime.demos.bunnymark-y3ugXL7TXCKIgp4CAJEQOg==/lib/x86_64/libApplicationMain.so
lime::ui::Window_obj::__alloc(hx::ImmixAllocator*, hx::ObjectPtr<lime::app::Application_obj>, Dynamic)
/.../BunnyMark/Export/android/obj/./src/lime/ui/Window.cpp:740:10
#08 0x000000000062ca40 /data/app/~~eDbH_7qOlZkjF8j4l0-4Pw==/org.openfl.lime.demos.bunnymark-y3ugXL7TXCKIgp4CAJEQOg==/lib/x86_64/libApplicationMain.so
lime::app::Application_obj::_hx___createWindow(Dynamic)
/.../BunnyMark/Export/android/obj/./src/lime/app/Application.cpp:656:45
#09 0x000000000062c943 /data/app/~~eDbH_7qOlZkjF8j4l0-4Pw==/org.openfl.lime.demos.bunnymark-y3ugXL7TXCKIgp4CAJEQOg==/lib/x86_64/libApplicationMain.so
lime::app::Application_obj::createWindow(Dynamic)
/.../BunnyMark/Export/android/obj/./src/lime/app/Application.cpp:245:50
#10 0x00000000006ebd0d /data/app/~~eDbH_7qOlZkjF8j4l0-4Pw==/org.openfl.lime.demos.bunnymark-y3ugXL7TXCKIgp4CAJEQOg==/lib/x86_64/libApplicationMain.so
ApplicationMain_obj::create(Dynamic)
/.../BunnyMark/Export/android/obj/./src/ApplicationMain.cpp:137:20
#11 0x00000000006ea8e8 /data/app/~~eDbH_7qOlZkjF8j4l0-4Pw==/org.openfl.lime.demos.bunnymark-y3ugXL7TXCKIgp4CAJEQOg==/lib/x86_64/libApplicationMain.so
ApplicationMain_obj::main()
/.../BunnyMark/Export/android/obj/./src/ApplicationMain.cpp:75:15
#12 0x0000000000758b8c /data/app/~~eDbH_7qOlZkjF8j4l0-4Pw==/org.openfl.lime.demos.bunnymark-y3ugXL7TXCKIgp4CAJEQOg==/lib/x86_64/libApplicationMain.so
__hxcpp_main
/.../BunnyMark/Export/android/obj/./src/__main__.cpp:25:15
#13 0x0000000000758a12 /data/app/~~eDbH_7qOlZkjF8j4l0-4Pw==/org.openfl.lime.demos.bunnymark-y3ugXL7TXCKIgp4CAJEQOg==/lib/x86_64/libApplicationMain.so (hxcpp_main+50)
                                                                                                                                                       hxcpp_main
                                                                                                                                                       /.../hxcpp/include/hx/HxcppMain.h:23:10
#14 0x00000000008950a6 /data/app/~~eDbH_7qOlZkjF8j4l0-4Pw==/org.openfl.lime.demos.bunnymark-y3ugXL7TXCKIgp4CAJEQOg==/lib/x86_64/liblime.so (Java_org_libsdl_app_SDLActivity_nativeRunMain+882)
                                                                                                                                            Java_org_libsdl_app_SDLActivity_nativeRunMain
                                                                                                                                           /.../BunnyMark/lime/project/./lib/sdl/src/core/android/SDL_android.c:761:0
#15 0x000000000037d70b /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+219) (BuildId: 44bc52550248fc712a381bef164b75c7)
#16 0x0000000000368c95 /apex/com.android.art/lib64/libart.so (nterp_helper+165) (BuildId: 44bc52550248fc712a381bef164b75c7)
#17 0x000000000000b788 [anon:dalvik-classes4.dex extracted in memory from /data/app/~~eDbH_7qOlZkjF8j4l0-4Pw==/org.openfl.lime.demos.bunnymark-y3ugXL7TXCKIgp4CAJEQOg==/base.apk!classes4.dex] (org.libsdl.app.SDLMain.run+168)
#18 0x000000000036a7e5 /apex/com.android.art/lib64/libart.so (nterp_helper+7157) (BuildId: 44bc52550248fc712a381bef164b75c7)
#19 0x00000000000f6740 /apex/com.android.art/javalib/core-oj.jar (java.lang.Thread.run+8)
#20 0x00000000003725c4 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+756) (BuildId: 44bc52550248fc712a381bef164b75c7)
#21 0x00000000003f21a6 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+214) (BuildId: 44bc52550248fc712a381bef164b75c7)
#22 0x00000000007e617e /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue const*)+478) (BuildId: 44bc52550248fc712a381bef164b75c7)
#23 0x000000000083a91c /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1404) (BuildId: 44bc52550248fc712a381bef164b75c7)
#24 0x00000000000ccd2a /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+58) (BuildId: 007cb2313464df63debf8020e631c990)
#25 0x0000000000060d37 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+55) (BuildId: 007cb2313464df63debf8020e631c990)
Crash dump is completed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant