filament icon indicating copy to clipboard operation
filament copied to clipboard

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

Open yuxinabc opened this issue 1 year ago • 0 comments

⚠️ 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.

yuxinabc avatar Aug 12 '24 13:08 yuxinabc