Comments (7)
Let me check it
from adv_camera.
I managed to catch the error log:
E/MethodChannel#flutter/platform_views: Failed to handle method call
android.view.InflateException: Binary XML file line #8: Binary XML file line #8: Error inflating class fragment
Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class fragment
Caused by: java.lang.IllegalArgumentException: Binary XML file line #8: Duplicate id 0x7f08004c, tag null, or parent id 0xffffffff with another fragment for com.ric.adv_camera.CameraFragment
at android.app.FragmentManagerImpl.onCreateView(FragmentManager.java:3621)
at android.app.FragmentController.onCreateView(FragmentController.java:99)
at android.app.Activity.onCreateView(Activity.java:6316)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:780)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at com.ric.adv_camera.AdvCamera.<init>(AdvCamera.java:89)
at com.ric.adv_camera.AdvCameraFactory.create(AdvCameraFactory.java:20)
at io.flutter.plugin.platform.SingleViewPresentation.onCreate(SingleViewPresentation.java:179)
at android.app.Dialog.dispatchOnCreate(Dialog.java:494)
at android.app.Dialog.show(Dialog.java:342)
at android.app.Presentation.show(Presentation.java:267)
at io.flutter.plugin.platform.VirtualDisplayController.<init>(VirtualDisplayController.java:94)
at io.flutter.plugin.platform.VirtualDisplayController.create(VirtualDisplayController.java:47)
at io.flutter.plugin.platform.PlatformViewsController$1.createPlatformView(PlatformViewsController.java:112)
at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:95)
at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:59)
at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:226)
at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:631)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:325)
at android.os.Looper.loop(Looper.java:142)
at android.app.ActivityThread.main(ActivityThread.java:6942)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
from adv_camera.
I see, i'll try to fix the error within this week!
from adv_camera.
Thanks!
from adv_camera.
Sorry this take a long time, i've looked into it, and since it's been quite a long time since I do Android and Fragment, i couldn't get this fixed. It seems like somehow it will become nested Fragment. So, probably I will look into this more, if I have some spare time. Sorry.
from adv_camera.
@ricnaaru by closing you mean fixed
or won't fix
?
from adv_camera.
This is still an issue, is there a workaround for this? I have this issue, not because of multiple screens with cameras, but rather the first screen (default) is the camera. Due to the dart bug where the initial screen does not call the dispose method, I continually run into the issue above. I have attempted to combat this by trying to use pushreplacenamed on the first item in the stack if the route is the camera screen, this forces the dispose method. However on subsequent page visits, if I want to allow the user to use the back stack, this is not a fully reliable solution. If there were simply a method to check if the camera is already initialized and then resume or dispose of it at that point, this could be resolved.
from adv_camera.
Related Issues (20)
- how to set custom focus point? HOT 4
- adv_camera V1.3.1+1 CameraPreviewRatio.r16_9 not full screen HOT 3
- App crash on iOS simulator after picking an image from gallery (AdvCamera.swift line 371)
- How to change save directory? HOT 1
- Dispose cam resource widget disposed
- Running for local developement HOT 2
- Execution failed for task ':adv_camera:generateDebugRFile'.
- Flash doesn't work. HOT 2
- Add JPEG quality param
- Cannot build iOS project with adv_camera library
- Calling controller.setFlashType does not activate flash HOT 3
- Windows Mac Linux web support
- Focus marker disappear on iOS after changing camera
- Green camera indicator never disappears
- Is it possible to capture from both front and back cameras at the same time?
- Adv_Camera no longer respects its position in stack on android in Flutter 3.0 HOT 5
- Unexpected platform view context. When constructing a platform view in the factory, use the context from PlatformViewFactory#create
- [camera] Android 12 - camera plugin fails to take a photo
- can not take photo HOT 1
- zoom issues
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adv_camera.