google-ai-edge / mediapipe-samples

Apache License 2.0
1.64k stars 421 forks source link

LLM example failed to initialize #337

Closed mhyeonsoo closed 2 months ago

mhyeonsoo commented 8 months ago

Hi, thanks for the examples.

I faced the issue while initiallzing the app to the android devices which has, Android 11, API 30.

If failed with the message of ---------------------------- PROCESS ENDED (15313) for package com.google.mediapipe.examples.llminference ----------------------------

Let me attach whole logcat as well.

2024-03-14 08:28:17.741 13992-14008 System                  com...diapipe.examples.llminference  W  A resource failed to call close. 
2024-03-14 08:28:19.032 13992-13992 NetworkSecurityConfig   com...diapipe.examples.llminference  D  No Network Security Config specified, using platform default
2024-03-14 08:28:19.034 13992-13992 NetworkSecurityConfig   com...diapipe.examples.llminference  D  No Network Security Config specified, using platform default
2024-03-14 08:28:21.106 13992-13992 es.llminferenc          com...diapipe.examples.llminference  W  Accessing hidden method Landroid/graphics/Canvas;->drawPatch(Landroid/graphics/NinePatch;Landroid/graphics/Rect;Landroid/graphics/Paint;)V (greylist-max-o, linking, denied)
2024-03-14 08:28:21.106 13992-13992 es.llminferenc          com...diapipe.examples.llminference  W  Accessing hidden method Landroid/graphics/Canvas;->drawPatch(Landroid/graphics/NinePatch;Landroid/graphics/RectF;Landroid/graphics/Paint;)V (greylist-max-o, linking, denied)
2024-03-14 08:28:21.532 13992-13992 es.llminferenc          com...diapipe.examples.llminference  W  Class androidx.compose.runtime.snapshots.SnapshotStateList failed lock verification and will run slower.
                                                                                                    Common causes for lock verification issues are non-optimized dex code
                                                                                                    and incorrect proguard optimizations.
2024-03-14 08:28:21.830 13992-14047 libc                    com...diapipe.examples.llminference  E  Access denied finding property "vendor.mali.config"
2024-03-14 08:28:21.972 13992-14047 gralloc4                com...diapipe.examples.llminference  W  Unable to dlopen /vendor/lib64/hw/hwcomposer.drm.so shared object, error = dlopen failed: library "libui.so" not found: needed by /vendor/lib64/hw/hwcomposer.drm.so in namespace sphal
2024-03-14 08:28:21.973 13992-14047 gralloc4                com...diapipe.examples.llminference  W  Unable to dlopen /vendor/lib64/hw/dpu_aeu_fake_caps.so shared object, error = dlopen failed: library "/vendor/lib64/hw/dpu_aeu_fake_caps.so" not found
2024-03-14 08:28:21.975 13992-14047 gralloc4                com...diapipe.examples.llminference  W  Unable to dlopen /vendor/lib/libstagefrighthw.so shared object, error = dlopen failed: library "/vendor/lib/libstagefrighthw.so" not found
2024-03-14 08:28:22.305 13992-14047 OpenGLRenderer          com...diapipe.examples.llminference  I  Davey! duration=3176ms; Flags=1, IntendedVsync=414475352578151, Vsync=414475695916631, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=414475697396163, AnimationStart=414475697411471, PerformTraversalsStart=414475698045625, DrawStart=414478127665625, SyncQueued=414478158441702, SyncStart=414478158911625, IssueDrawCommandsStart=414478159113856, SwapBuffers=414478526357163, FrameCompleted=414478529425548, DequeueBufferDuration=248615, QueueBufferDuration=1590154, GpuCompleted=377957122122, 
2024-03-14 08:28:22.383 13992-13992 Choreographer           com...diapipe.examples.llminference  I  Skipped 153 frames!  The application may be doing too much work on its main thread.
2024-03-14 08:28:24.936 13992-14133 ProfileInstaller        com...diapipe.examples.llminference  D  Installing profile for com.google.mediapipe.examples.llminference
2024-03-14 08:28:38.455   500-562   InputDispatcher         system_server                        E  channel 'ca6d5b0 com.google.mediapipe.examples.llminference/com.google.mediapipe.examples.llminference.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
PaulTR commented 6 months ago

Hey @mhyeonsoo what is the device that you're using?