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 crash #41

Open
albertofem opened this issue Sep 14, 2024 · 0 comments
Open

Android crash #41

albertofem opened this issue Sep 14, 2024 · 0 comments

Comments

@albertofem
Copy link

Hello there!,

great and fun library!

I'm trying to run the examples on my Android device, but I get this crash:

09-13 21:15:18.003 12012 12012 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-13 21:15:18.003 12012 12012 F DEBUG   : Build fingerprint: 'google/panther/panther:14/AP2A.240805.005/12025142:user/release-keys'
09-13 21:15:18.003 12012 12012 F DEBUG   : Revision: 'MP1.0'
09-13 21:15:18.003 12012 12012 F DEBUG   : ABI: 'arm64'
09-13 21:15:18.003 12012 12012 F DEBUG   : Timestamp: 2024-09-13 21:15:17.771267445-0700
09-13 21:15:18.003 12012 12012 F DEBUG   : Process uptime: 5s
09-13 21:15:18.003 12012 12012 F DEBUG   : Cmdline: com.TaichiGraphics.Soft2DforUnity
09-13 21:15:18.003 12012 12012 F DEBUG   : pid: 11915, tid: 11991, name: UnityGfxDeviceW  >>> com.TaichiGraphics.Soft2DforUnity <<<
09-13 21:15:18.003 12012 12012 F DEBUG   : uid: 10488
09-13 21:15:18.003 12012 12012 F DEBUG   : tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE)
09-13 21:15:18.003 12012 12012 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000048
09-13 21:15:18.003 12012 12012 F DEBUG   : Cause: null pointer dereference
09-13 21:15:18.003 12012 12012 F DEBUG   :     x0  b4000075187b25c0  x1  0000000000000000  x2  0000000000000000  x3  0000000000000010
09-13 21:15:18.003 12012 12012 F DEBUG   :     x4  0000000000000000  x5  b4000073d87ce290  x6  0000000000000000  x7  0000000000000000
09-13 21:15:18.003 12012 12012 F DEBUG   :     x8  b4000073a881ed90  x9  000a48cad677fb6b  x10 0000000000000008  x11 0000000000000000
09-13 21:15:18.003 12012 12012 F DEBUG   :     x12 0000000000000000  x13 0000000000000001  x14 0000000000000000  x15 0000000000000001
09-13 21:15:18.003 12012 12012 F DEBUG   :     x16 000000717adf0878  x17 00000076294865f0  x18 00000071777a8000  x19 b4000073a881ec30
09-13 21:15:18.003 12012 12012 F DEBUG   :     x20 0000000000000000  x21 b4000074687dddd0  x22 b4000073a881fd78  x23 0000007177913ac0
09-13 21:15:18.003 12012 12012 F DEBUG   :     x24 b4000074287ab5b0  x25 b4000074c8815080  x26 b4000074c8815080  x27 000000717aca6aa0
09-13 21:15:18.003 12012 12012 F DEBUG   :     x28 0000000000000001  x29 0000007177912a70
09-13 21:15:18.003 12012 12012 F DEBUG   :     lr  000000717ad530fc  sp  0000007177912a10  pc  000000717ad7abd8  pst 00000000a0001000
09-13 21:15:18.003 12012 12012 F DEBUG   : 14 total frames
09-13 21:15:18.003 12012 12012 F DEBUG   : backtrace:
09-13 21:15:18.003 12012 12012 F DEBUG   :       #00 pc 0000000000169bd8  /data/app/~~zFTQvHvQaAuq7wMCpOAx3w==/com.TaichiGraphics.Soft2DforUnity-VSjbKEBYJ9jXhhz7AIpVCA==/lib/arm64/libtaichi_c_api.so (BuildId: 9e58860a9786c0d915c6bbcbf4e14c220cfdae84)
09-13 21:15:18.003 12012 12012 F DEBUG   :       #01 pc 00000000001420f8  /data/app/~~zFTQvHvQaAuq7wMCpOAx3w==/com.TaichiGraphics.Soft2DforUnity-VSjbKEBYJ9jXhhz7AIpVCA==/lib/arm64/libtaichi_c_api.so (BuildId: 9e58860a9786c0d915c6bbcbf4e14c220cfdae84)
09-13 21:15:18.003 12012 12012 F DEBUG   :       #02 pc 00000000000d0470  /data/app/~~zFTQvHvQaAuq7wMCpOAx3w==/com.TaichiGraphics.Soft2DforUnity-VSjbKEBYJ9jXhhz7AIpVCA==/lib/arm64/libtaichi_c_api.so (ti_launch_kernel+1020) (BuildId: 9e58860a9786c0d915c6bbcbf4e14c220cfdae84)
09-13 21:15:18.003 12012 12012 F DEBUG   :       #03 pc 00000000002c1cb4  /data/app/~~zFTQvHvQaAuq7wMCpOAx3w==/com.TaichiGraphics.Soft2DforUnity-VSjbKEBYJ9jXhhz7AIpVCA==/lib/arm64/libsoft2d.so (soft2d::PrefixSumExecutor::Run(ti::NdArray<int>&)+272) (BuildId: d5fc9ae4441b634424d2e511eaec201185f00b75)
09-13 21:15:18.003 12012 12012 F DEBUG   :       #04 pc 00000000002d4540  /data/app/~~zFTQvHvQaAuq7wMCpOAx3w==/com.TaichiGraphics.Soft2DforUnity-VSjbKEBYJ9jXhhz7AIpVCA==/lib/arm64/libsoft2d.so (soft2d::World::Step(float)+1196) (BuildId: d5fc9ae4441b634424d2e511eaec201185f00b75)
09-13 21:15:18.003 12012 12012 F DEBUG   :       #05 pc 000000000000222c  /data/app/~~zFTQvHvQaAuq7wMCpOAx3w==/com.TaichiGraphics.Soft2DforUnity-VSjbKEBYJ9jXhhz7AIpVCA==/lib/arm64/libsoft2d_unity.so (step_async_impl(void*)+68) (BuildId: 06da882f03862b0b7802e0678e873c0cd73c798a)
09-13 21:15:18.003 12012 12012 F DEBUG   :       #06 pc 00000000000259ec  /data/app/~~zFTQvHvQaAuq7wMCpOAx3w==/com.TaichiGraphics.Soft2DforUnity-VSjbKEBYJ9jXhhz7AIpVCA==/lib/arm64/libtaichi_unity.so (tix_render_thread_main+408) (BuildId: 193c422ad91108434a4406a8c1158547696dabba)
09-13 21:15:18.003 12012 12012 F DEBUG   :       #07 pc 0000000000695104  /data/app/~~zFTQvHvQaAuq7wMCpOAx3w==/com.TaichiGraphics.Soft2DforUnity-VSjbKEBYJ9jXhhz7AIpVCA==/lib/arm64/libunity.so (BuildId: bb561df02c2772096fe717e5b120916b56ae2bfd)
09-13 21:15:18.003 12012 12012 F DEBUG   :       #08 pc 00000000006e7ddc  /data/app/~~zFTQvHvQaAuq7wMCpOAx3w==/com.TaichiGraphics.Soft2DforUnity-VSjbKEBYJ9jXhhz7AIpVCA==/lib/arm64/libunity.so (BuildId: bb561df02c2772096fe717e5b120916b56ae2bfd)
09-13 21:15:18.003 12012 12012 F DEBUG   :       #09 pc 00000000006ebf68  /data/app/~~zFTQvHvQaAuq7wMCpOAx3w==/com.TaichiGraphics.Soft2DforUnity-VSjbKEBYJ9jXhhz7AIpVCA==/lib/arm64/libunity.so (BuildId: bb561df02c2772096fe717e5b120916b56ae2bfd)
09-13 21:15:18.003 12012 12012 F DEBUG   :       #10 pc 00000000006e32f0  /data/app/~~zFTQvHvQaAuq7wMCpOAx3w==/com.TaichiGraphics.Soft2DforUnity-VSjbKEBYJ9jXhhz7AIpVCA==/lib/arm64/libunity.so (BuildId: bb561df02c2772096fe717e5b120916b56ae2bfd)
09-13 21:15:18.003 12012 12012 F DEBUG   :       #11 pc 0000000000289d24  /data/app/~~zFTQvHvQaAuq7wMCpOAx3w==/com.TaichiGraphics.Soft2DforUnity-VSjbKEBYJ9jXhhz7AIpVCA==/lib/arm64/libunity.so (BuildId: bb561df02c2772096fe717e5b120916b56ae2bfd)
09-13 21:15:18.003 12012 12012 F DEBUG   :       #12 pc 000000000006efbc  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204) (BuildId: 1d36f8ae6e0af6158793abea7d4f4f2b)
09-13 21:15:18.003 12012 12012 F DEBUG   :       #13 pc 0000000000060d60  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 1d36f8ae6e0af6158793abea7d4f4f2b)

I have Vulkan enabled and URP with the SOFT2D_URP_PIPELINE scripting define + IL2CPP as backend. I tried both Unity 2021.3.43 and 2022.3.31. The samples run fine in the Editor.

I would dig deeper, but I couldn't find much information on how to cross compile to Android, or which version of taichi this is using under the hood.

Any ideas?

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