mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

Image_segmentation demo running crash using GPU

Open Mrwcz opened this issue 11 months ago • 3 comments

I use Android studio to run the image_segmentation demo. If I select CPU for delegate, I can get the processing results normally. If I select GPU, I will crash. The crash information is as follows:

F0000 00:00:1736348171.051097 30449 image_frame.cc:102] Check failed: ImageFormat::UNKNOWN != format_ (0 vs. 0) terminating. Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 30449 (Thread-15), pid 30170 (agesegmentation) Cmdline: com.google.mediapipe.examples.imagesegmentation pid: 30170, tid: 30449, name: Thread-15 >>> com.google.mediapipe.examples.imagesegmentation <<< #01 pc 000000000061e4bc /data/app/~~aPUpHfheOg6qLqKiaj9jVA==/com.google.mediapipe.examples.imagesegmentation-WGZqCVrDdKsyqqVl89MWtA==/base.apk

Mrwcz avatar Jan 08 '25 14:01 Mrwcz

I am also experiencing this issue.. With Google Pixel 4a (UP1A.231105.001.b2 build number)

Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 16174 (Thread-18), pid 15944 (agesegmentation)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A  Cmdline: com.google.mediapipe.examples.imagesegmentation
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A  pid: 15944, tid: 16174, name: Thread-18  >>> com.google.mediapipe.examples.imagesegmentation <<<
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #01 pc 00000000005e66bc  /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk (offset 0x147e000)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #02 pc 00000000005e68bc  /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk (offset 0x147e000)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #03 pc 00000000005e7784  /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk (offset 0x147e000)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #04 pc 00000000004fea68  /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk (offset 0x147e000)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #05 pc 00000000004fe914  /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk (offset 0x147e000)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #06 pc 00000000004f9c3c  /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk (offset 0x147e000)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #07 pc 00000000004f98f0  /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk (offset 0x147e000)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #08 pc 00000000004fa6d4  /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk (offset 0x147e000)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #09 pc 00000000004fa668  /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk (offset 0x147e000)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #10 pc 00000000004f8178  /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk (offset 0x147e000)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #11 pc 00000000004f7928  /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk (offset 0x147e000)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #12 pc 00000000004f7cc0  /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk (offset 0x147e000)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #13 pc 00000000001b981c  /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk (offset 0x147e000)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #14 pc 00000000001b9844  /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk (offset 0x147e000)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #15 pc 00000000004b5714  /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk (offset 0x147e000) (Java_com_google_mediapipe_framework_PacketGetter_nativeGetImageWidth+48)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #21 pc 00000000001c87d0  [anon:dalvik-classes6.dex extracted in memory from /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk] (com.google.mediapipe.framework.PacketGetter.getImageWidth+0)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #26 pc 0000000000225b9c  [anon:dalvik-classes6.dex extracted in memory from /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk] (com.google.mediapipe.tasks.vision.imagesegmenter.ImageSegmenter$1.convertToTaskResult+0)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #31 pc 0000000000225b80  [anon:dalvik-classes6.dex extracted in memory from /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk] (com.google.mediapipe.tasks.vision.imagesegmenter.ImageSegmenter$1.convertToTaskResult+0)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #36 pc 00000000001f58c8  [anon:dalvik-classes6.dex extracted in memory from /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk] (com.google.mediapipe.tasks.core.OutputHandler.run+0)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #41 pc 00000000001f6890  [anon:dalvik-classes6.dex extracted in memory from /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk] (com.google.mediapipe.tasks.core.TaskRunner.lambda$create$0+0)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #46 pc 00000000001f63ec  [anon:dalvik-classes6.dex extracted in memory from /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk] (com.google.mediapipe.tasks.core.TaskRunner$$ExternalSyntheticLambda0.process+0)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #54 pc 00000000004acc24  /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk (offset 0x147e000)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #55 pc 00000000004ace20  /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk (offset 0x147e000)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #56 pc 00000000004dbde0  /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk (offset 0x147e000)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #57 pc 000000000050aaac  /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk (offset 0x147e000)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #58 pc 00000000004f2550  /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk (offset 0x147e000)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #59 pc 00000000004f221c  /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk (offset 0x147e000)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #60 pc 0000000000506d10  /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk (offset 0x147e000)
2025-02-13 15:55:10.184 16186-16186 DEBUG                   pid-16186                            A        #61 pc 0000000000506a84  /data/app/~~-dZc4OiiAKNPe53IFHNqfQ==/com.google.mediapipe.examples.imagesegmentation-wmnl5XBL-a94ps-MDCvv3A==/base.apk (offset 0x147e000)
---------------------------- PROCESS ENDED (15944) for package com.google.mediapipe.examples.imagesegmentation ----------------------------
---------------------------- PROCESS STARTED (16227) for package com.google.mediapipe.examples.imagesegmentation ----------------------------
2025-02-13 15:55:41.843 16227-16227 ziparchive            

afalls-twilio avatar Feb 14 '25 00:02 afalls-twilio

I can confirm this. I have exactly the same effect with the Image_segmentation demo. CPU works, delegate GPU -> crash

kvrban avatar Mar 23 '25 00:03 kvrban

I'm also experiencing this issue. Any updates or workarounds would be greatly appreciated

ajaymourya4 avatar Apr 09 '25 15:04 ajaymourya4