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

Calling engine.destroy() reports an error (assertion "isAlive(entities[i])" failed) #8035

Open
yuxinabc opened this issue Aug 12, 2024 · 0 comments

Comments

@yuxinabc
Copy link

yuxinabc commented Aug 12, 2024

⚠️ Issues not using this template will be systematically closed.

Describe the bug
When I use the debug version of filament, I enter the 3D rendering page and then exit, and I encounter this crash;
I'm sure engine.destroy() is only called once ; The release version will not have this problem

To Reproduce

Enter the 3D rendering page, then exit the 3D rendering page

Expected behavior
No crash will occur

Logs

/Users/filament-debug/filament-1.49.2/libs/utils/src/EntityManagerImpl.h:113: void utils::EntityManagerImpl::destroy(size_t, utils::Entity *): assertion "isAlive(entities[i])" failed
2024-08-12 21:43:16.557 10687-10687 libc                    com.test.app              A  Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 10687 (com.test.app), pid 10687 (com.test.app)
2024-08-12 21:43:16.956 12957-12957 DEBUG                   pid-12957                            A  Process name is com.test.app, not key_process
2024-08-12 21:43:16.956 12957-12957 DEBUG                   pid-12957                            A  Cmdline: com.test.app
2024-08-12 21:43:16.956 12957-12957 DEBUG                   pid-12957                            A  pid: 10687, tid: 10687, name: com.test.app  >>> com.test.app <<<
2024-08-12 21:43:16.956 12957-12957 DEBUG                   pid-12957                            A        #02 pc 0000000000749510  /data/app/~~oqcJfFeCfk0QoiVNr30OlQ==/com.test.app-yEX5nszqYsWJne1dBj05ig==/base.apk!libfilament-jni.so (BuildId: eb44eb62031e019312fcf9553987eeaf5da41396)
2024-08-12 21:43:16.956 12957-12957 DEBUG                   pid-12957                            A        #03 pc 0000000000749124  /data/app/~~oqcJfFeCfk0QoiVNr30OlQ==/com.test.app-yEX5nszqYsWJne1dBj05ig==/base.apk!libfilament-jni.so (utils::EntityManager::destroy(unsigned long, utils::Entity*)+36) (BuildId: eb44eb62031e019312fcf9553987eeaf5da41396)
2024-08-12 21:43:16.956 12957-12957 DEBUG                   pid-12957                            A        #04 pc 000000000058590c  /data/app/~~oqcJfFeCfk0QoiVNr30OlQ==/com.test.app-yEX5nszqYsWJne1dBj05ig==/base.apk!libfilament-jni.so (BuildId: eb44eb62031e019312fcf9553987eeaf5da41396)
2024-08-12 21:43:16.956 12957-12957 DEBUG                   pid-12957                            A        #05 pc 000000000057f6c8  /data/app/~~oqcJfFeCfk0QoiVNr30OlQ==/com.test.app-yEX5nszqYsWJne1dBj05ig==/base.apk!libfilament-jni.so (BuildId: eb44eb62031e019312fcf9553987eeaf5da41396)
2024-08-12 21:43:16.956 12957-12957 DEBUG                   pid-12957                            A        #06 pc 0000000000568e28  /data/app/~~oqcJfFeCfk0QoiVNr30OlQ==/com.test.app-yEX5nszqYsWJne1dBj05ig==/base.apk!libfilament-jni.so (BuildId: eb44eb62031e019312fcf9553987eeaf5da41396)
2024-08-12 21:43:16.956 12957-12957 DEBUG                   pid-12957                            A        #07 pc 00000000004ad484  /data/app/~~oqcJfFeCfk0QoiVNr30OlQ==/com.test.app-yEX5nszqYsWJne1dBj05ig==/base.apk!libfilament-jni.so (BuildId: eb44eb62031e019312fcf9553987eeaf5da41396)
2024-08-12 21:43:16.956 12957-12957 DEBUG                   pid-12957                            A        #08 pc 00000000004ad450  /data/app/~~oqcJfFeCfk0QoiVNr30OlQ==/com.test.app-yEX5nszqYsWJne1dBj05ig==/base.apk!libfilament-jni.so (BuildId: eb44eb62031e019312fcf9553987eeaf5da41396)
2024-08-12 21:43:16.956 12957-12957 DEBUG                   pid-12957                            A        #09 pc 00000000004ad420  /data/app/~~oqcJfFeCfk0QoiVNr30OlQ==/com.test.app-yEX5nszqYsWJne1dBj05ig==/base.apk!libfilament-jni.so (BuildId: eb44eb62031e019312fcf9553987eeaf5da41396)
2024-08-12 21:43:16.956 12957-12957 DEBUG                   pid-12957                            A        #10 pc 00000000004f8f94  /data/app/~~oqcJfFeCfk0QoiVNr30OlQ==/com.test.app-yEX5nszqYsWJne1dBj05ig==/base.apk!libfilament-jni.so (BuildId: eb44eb62031e019312fcf9553987eeaf5da41396)
2024-08-12 21:43:16.956 12957-12957 DEBUG                   pid-12957                            A        #11 pc 00000000004f8f34  /data/app/~~oqcJfFeCfk0QoiVNr30OlQ==/com.test.app-yEX5nszqYsWJne1dBj05ig==/base.apk!libfilament-jni.so (BuildId: eb44eb62031e019312fcf9553987eeaf5da41396)
2024-08-12 21:43:16.956 12957-12957 DEBUG                   pid-12957                            A        #12 pc 00000000004f8eb8  /data/app/~~oqcJfFeCfk0QoiVNr30OlQ==/com.test.app-yEX5nszqYsWJne1dBj05ig==/base.apk!libfilament-jni.so (BuildId: eb44eb62031e019312fcf9553987eeaf5da41396)
2024-08-12 21:43:16.956 12957-12957 DEBUG                   pid-12957                            A        #13 pc 00000000004ad3cc  /data/app/~~oqcJfFeCfk0QoiVNr30OlQ==/com.test.app-yEX5nszqYsWJne1dBj05ig==/base.apk!libfilament-jni.so (BuildId: eb44eb62031e019312fcf9553987eeaf5da41396)
2024-08-12 21:43:16.956 12957-12957 DEBUG                   pid-12957                            A        #14 pc 00000000004a639c  /data/app/~~oqcJfFeCfk0QoiVNr30OlQ==/com.test.app-yEX5nszqYsWJne1dBj05ig==/base.apk!libfilament-jni.so (BuildId: eb44eb62031e019312fcf9553987eeaf5da41396)
2024-08-12 21:43:16.956 12957-12957 DEBUG                   pid-12957                            A        #15 pc 000000000049d4fc  /data/app/~~oqcJfFeCfk0QoiVNr30OlQ==/com.test.app-yEX5nszqYsWJne1dBj05ig==/base.apk!libfilament-jni.so (BuildId: eb44eb62031e019312fcf9553987eeaf5da41396)
2024-08-12 21:43:16.956 12957-12957 DEBUG                   pid-12957                            A        #16 pc 00000000004a0990  /data/app/~~oqcJfFeCfk0QoiVNr30OlQ==/com.test.app-yEX5nszqYsWJne1dBj05ig==/base.apk!libfilament-jni.so (BuildId: eb44eb62031e019312fcf9553987eeaf5da41396)
2024-08-12 21:43:16.956 12957-12957 DEBUG                   pid-12957                            A        #17 pc 000000000044a380  /data/app/~~oqcJfFeCfk0QoiVNr30OlQ==/com.test.app-yEX5nszqYsWJne1dBj05ig==/base.apk!libfilament-jni.so (filament::Engine::destroy(filament::Engine**)+48) (BuildId: eb44eb62031e019312fcf9553987eeaf5da41396)
2024-08-12 21:43:16.956 12957-12957 DEBUG                   pid-12957                            A        #18 pc 0000000000433028  /data/app/~~oqcJfFeCfk0QoiVNr30OlQ==/com.test.app-yEX5nszqYsWJne1dBj05ig==/base.apk!libfilament-jni.so (Java_com_google_android_filament_Engine_nDestroyEngine+32) (BuildId: eb44eb62031e019312fcf9553987eeaf5da41396)

What do I need to do to solve this bug? Can I know which Entity was deleted twice... Thank you.

Smartphone (please complete the following information):

  • Device: oneplus 9 5g
  • OS: Android13

Additional context
Add any other context about the problem here.

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