CariusLars / ar_flutter_plugin

Flutter Plugin for AR (Augmented Reality) - Supports ARKit on iOS and ARCore on Android devices
MIT License
318 stars 229 forks source link

No camera shown, only black background #142

Open bejaeger opened 1 year ago

bejaeger commented 1 year ago

Hi all,

the plugin does not show the actual camera view but I only see a black background (See image). Does anybody experience the same and is there a solution to it? I use the newest version (^0.7.1) and run on Android 12 on a S21.

Thanks, Benjamin

Flutter doctor [✓] Flutter (Channel stable, 3.0.5, on macOS 12.5.1 21G83 darwin-x64, locale en-CA) • Flutter version 3.0.5 at /usr/local/Cellar/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision f1875d570e (2 months ago), 2022-07-13 11:24:16 -0700 • Engine revision e85ea0e79c • Dart version 2.17.6 • DevTools version 2.12.2 Checking Android licenses is taking an unexpectedly long time...[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) • Android SDK at /Users/bj/Library/Android/sdk • Platform android-33, build-tools 30.0.2 • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 13.4.1) • Xcode at /Applications/Xcode.app/Contents/Developer • CocoaPods version 1.11.3 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2021.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840) [✓] VS Code (version 1.71.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.48.0 [✓] Connected device (2 available) • macOS (desktop) • macos • darwin-x64 • macOS 12.5.1 21G83 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 105.0.5195.125 [✓] HTTP Host Availability • All required HTTP hosts are available
infocodiste commented 1 year ago

Same issue, I also cannot utilize plugins in my app. It's just showing animation in my app.

bejaeger commented 1 year ago

Same issue for the arcore_flutter_plugin, btw. Seems to be some incompatibility with the arcore version but I can't figure it out.

infocodiste commented 1 year ago

For me, Google map is incompatible with these plugins, Once remove google Maps it's working well and I got an error about OpenGL rendering. Don't have solution about how to work with both plugins in same screen.

cellininicholas commented 1 year ago

I'm having a similar issue, except I have a white background.

Here are some of the repeated error messages I'm getting:

W/FEngine::loop( 4418): type=1400 audit(0.0:9077): avc: denied { open } for scontext=u:r:untrusted_app:s0:c3,c256,c512,c768 tcontext=u:r:untrusted_app:s0:c3,c256,c512,c768 tclass=perf_event permissive=0 app=com.example.ar_map_spotlight_flutter

W/otlight_flutte( 4418): [SurfaceTexture-0-4418-1] bindTextureImage: clearing GL error: 0x502

E/native  ( 4418): E0000 00:00:1666852849.609537    4418 hit_test.cc:428] INTERNAL: No point hit.

This makes my project very difficult, as I need Google Maps and AR in the same app.

Anyone had any leads to fixing this issue?

junaidlodhi22 commented 1 year ago

We have the same issue with google maps and ar

junaidlodhi22 commented 1 year ago

Any update on this issue? @bejaeger did you find any solution? we are having the same problem with Samsung s21+ 5g. Black screen no camera shown

junaidlodhi22 commented 1 year ago

we just got the solution. our samsung devices s20 FE and s21+ (both 5g) required arm 64 v8a release APK file when we distributed via firebase app distribution we got this solution from google where some links said google does not allow 32-bit APKs to show augmented reality camera, though they were working on other android devices. I hope it helps others.

bejaeger commented 1 year ago

This was not my issue. Haven't found a solution yet, unfortunately.