Closed AlexShniperson-INO closed 3 years ago
device is not rooted
Could you please describe your setup, you use Huawei with USB camera? Suppose you use https://github.com/mapbox/mapbox-vision-android/blob/dev/Examples/src/main/kotlin/com/mapbox/vision/examples/UsbVideoSourceActivityKt.kt this Example, right? Also please check version of the Android on your device.
The Device is: Huawei P10 with Android 9
Yes it's UsbVideoSourceActivityKt.kt
activity
The camera is: HBVCAM-1821-2 V33 (stereo camera) connected to smartphone by OTG
any updates? application is crash also without connected camera
@AlexShniperson-INO sorry for the long response, looking into it. Do you mean application crashes on different example, without USB cam? If so - could you share the stacktrace for it as well?
the same example External Video Source
crash without connected camera, below is another logs
2021-04-16 16:30:31.022 26217-26217/com.mapbox.vision.examples I/OverScrollerOptimization: start init SmartSlideOverScroller and get the overscroller config
2021-04-16 16:30:31.023 26217-26217/com.mapbox.vision.examples I/OverScrollerOptimization: get the overscroller config
2021-04-16 16:30:31.024 26217-26217/com.mapbox.vision.examples I/FLTAG_FM: loadFeature class:com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
2021-04-16 16:30:31.024 26217-26217/com.mapbox.vision.examples I/FLTAG_SFM: getRequireClassLoader() succ ! className: com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
2021-04-16 16:30:31.025 26217-26217/com.mapbox.vision.examples D/FeatureFactory: loadFeature() : com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
2021-04-16 16:30:31.025 26217-26217/com.mapbox.vision.examples D/FeatureFactory: loadFeature() new IHwSplineOverScrollerEx()
2021-04-16 16:30:31.025 26217-26217/com.mapbox.vision.examples D/HwSplineOverScrollerExImpl: initSplineOverScrollerImpl paras: android.widget.OverScroller$SplineOverScroller@d2360c7,androidx.appcompat.view.ContextThemeWrapper@7706f4
2021-04-16 16:30:31.025 26217-26217/com.mapbox.vision.examples D/HwSplineOverScrollerExImpl: initSplineOverScrollerImpl: mScrollerVelocity is 0, value is 0
2021-04-16 16:30:31.026 26217-26217/com.mapbox.vision.examples I/FLTAG_FM: loadFeature class:com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
2021-04-16 16:30:31.026 26217-26217/com.mapbox.vision.examples I/FLTAG_SFM: getRequireClassLoader() succ ! className: com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
2021-04-16 16:30:31.026 26217-26217/com.mapbox.vision.examples D/FeatureFactory: loadFeature() : com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
2021-04-16 16:30:31.026 26217-26217/com.mapbox.vision.examples D/FeatureFactory: loadFeature() new IHwSplineOverScrollerEx()
2021-04-16 16:30:31.026 26217-26217/com.mapbox.vision.examples D/HwSplineOverScrollerExImpl: initSplineOverScrollerImpl paras: android.widget.OverScroller$SplineOverScroller@c779e60,androidx.appcompat.view.ContextThemeWrapper@7706f4
2021-04-16 16:30:31.026 26217-26217/com.mapbox.vision.examples D/HwSplineOverScrollerExImpl: initSplineOverScrollerImpl: mScrollerVelocity is 0, value is 0
2021-04-16 16:30:31.068 26217-26217/com.mapbox.vision.examples W/vision.example: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
2021-04-16 16:30:31.069 26217-26217/com.mapbox.vision.examples W/vision.example: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
2021-04-16 16:30:31.079 635-635/? I/HW_DISPLAY_EFFECT: hw_get_display_panel_type: panel info is blmax:8820,blmin:33,blmax_nit_actual:497,blmax_nit_standard:530,lcdtype:LCD,
2021-04-16 16:30:31.079 635-635/? I/HW_DISPLAY_EFFECT: hw_get_display_panel_type: lcd type is LCD
2021-04-16 16:30:31.079 26217-26217/com.mapbox.vision.examples D/TextView: get Display Panel Type is : 0
2021-04-16 16:30:31.081 26217-26217/com.mapbox.vision.examples W/vision.example: Accessing hidden method Landroid/widget/TextView;->getTextDirectionHeuristic()Landroid/text/TextDirectionHeuristic; (light greylist, linking)
2021-04-16 16:30:31.087 26217-26217/com.mapbox.vision.examples D/OpenGLRenderer: Skia GL Pipeline
2021-04-16 16:30:31.100 26217-26217/com.mapbox.vision.examples W/vision.example: Accessing hidden method Landroid/graphics/FontFamily;-><init>()V (light greylist, reflection)
2021-04-16 16:30:31.100 26217-26217/com.mapbox.vision.examples W/vision.example: Accessing hidden method Landroid/graphics/FontFamily;->addFontFromAssetManager(Landroid/content/res/AssetManager;Ljava/lang/String;IZIII[Landroid/graphics/fonts/FontVariationAxis;)Z (light greylist, reflection)
2021-04-16 16:30:31.100 26217-26217/com.mapbox.vision.examples W/vision.example: Accessing hidden method Landroid/graphics/FontFamily;->addFontFromBuffer(Ljava/nio/ByteBuffer;I[Landroid/graphics/fonts/FontVariationAxis;II)Z (light greylist, reflection)
2021-04-16 16:30:31.100 26217-26217/com.mapbox.vision.examples W/vision.example: Accessing hidden method Landroid/graphics/FontFamily;->freeze()Z (light greylist, reflection)
2021-04-16 16:30:31.100 26217-26217/com.mapbox.vision.examples W/vision.example: Accessing hidden method Landroid/graphics/FontFamily;->abortCreation()V (light greylist, reflection)
2021-04-16 16:30:31.100 26217-26217/com.mapbox.vision.examples W/vision.example: Accessing hidden method Landroid/graphics/Typeface;->createFromFamiliesWithDefault([Landroid/graphics/FontFamily;Ljava/lang/String;II)Landroid/graphics/Typeface; (light greylist, reflection)
2021-04-16 16:30:31.108 519-519/? E/SELinux: avc: denied { find } for interface=vendor.huawei.hardware.sensors::ISensors sid=u:r:untrusted_app:s0:c27,c258,c512,c768 pid=26217 scontext=u:r:untrusted_app:s0:c27,c258,c512,c768 tcontext=u:object_r:default_hisi_hwservice:s0 tclass=hwservice_manager permissive=0
2021-04-16 16:30:31.144 26217-26322/com.mapbox.vision.examples D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2021-04-16 16:30:31.146 26217-26322/com.mapbox.vision.examples W/vision.example: Accessing hidden method Ldalvik/system/CloseGuard;->get()Ldalvik/system/CloseGuard; (light greylist, reflection)
2021-04-16 16:30:31.146 26217-26322/com.mapbox.vision.examples W/vision.example: Accessing hidden method Ldalvik/system/CloseGuard;->open(Ljava/lang/String;)V (light greylist, reflection)
2021-04-16 16:30:31.146 26217-26322/com.mapbox.vision.examples W/vision.example: Accessing hidden method Ldalvik/system/CloseGuard;->warnIfOpen()V (light greylist, reflection)
2021-04-16 16:30:31.166 582-666/? I/PreDnsController: canPreDnsQuery,persist.sys.predns is false!
--------- beginning of crash
2021-04-16 16:30:31.191 26217-26337/com.mapbox.vision.examples E/AndroidRuntime: FATAL EXCEPTION: VideoDecode
Process: com.mapbox.vision.examples, PID: 26217
java.lang.IllegalArgumentException
at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:76)
at com.mapbox.vision.examples.ExternalVideoSourceActivityKt.startFileVideoSource(ExternalVideoSourceActivityKt.kt:147)
at com.mapbox.vision.examples.ExternalVideoSourceActivityKt.access$startFileVideoSource(ExternalVideoSourceActivityKt.kt:37)
at com.mapbox.vision.examples.ExternalVideoSourceActivityKt$customVideoSource$1$attach$1.run(ExternalVideoSourceActivityKt.kt:54)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:216)
at android.os.HandlerThread.run(HandlerThread.java:65)
@AlexShniperson-INO is the issue still relevant?
@yunikkk no, i stop to use your library
Ok, closing then. Feel free to reopen if you'll make another try.
Hi i have problem when try to run example app, here is stack trace, what could be wrong?