IllegalStateException: CameraDevice was already closed triggered by onImageAvailable() in Android Webview - webview

With the latest Android Webview 98 and 99 we are sometimes getting this non-reproducible exception in the logs:
java.lang.IllegalStateException: CameraDevice was already closed
at android.hardware.camera2.impl.CameraDeviceImpl.checkIfCameraClosedOrInError(CameraDeviceImpl.java:2236)
at android.hardware.camera2.impl.CameraDeviceImpl.createCaptureRequest(CameraDeviceImpl.java:797)
at Pu0.e(chromium-TrichromeWebViewGoogle.aab-stable-484407333:12)
at Eu0.onImageAvailable(chromium-TrichromeWebViewGoogle.aab-stable-484407333:11)
at android.media.ImageReader$ListenerHandler.handleMessage(ImageReader.java:812)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:247)
at android.os.HandlerThread.run(HandlerThread.java:67)
Any ideas how to fix?

Related

App crashes malloc

I've been working on a Linphone custom, it all works fine except that every other call I receive when the app is running on the background ou when the phone is locked, I get this error.
But its like every other call or so...
If anyone could help me =D
Joels-Mac linphone[2257]: linphone(2257,0x700000104000) malloc: *** error for object 0x61800001c6c0: Invalid pointer dequeued from free list
*** set a breakpoint in malloc_error_break to debug
Oct 17 17:36:20 Joels-Mac com.apple.CoreSimulator.SimDevice.3ED2130C-2343-49A3-93CA-24776C42E4D8.launchd_sim[1395] (UIKitApplication:com.routerbox.phoneboxcliente[0x73ea][2257]): Service exited due to Abort trap: 6
Oct 17 17:36:20 Joels-Mac SpringBoard[1412]: UNSUserNotificationServerConnectionListener connection invalidated

CRASH: A variable must be decoded with a `delegate` on iOS 10.0

There is a strange crash in iOS 10.0
some console info:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', **reason: 'A variable must be decoded with a \`delegate\`'**
*** Assertion failure in -[NSISRestrictedToNonNegativeMarkerVariableToBeMinimized initWithCoder:],
/BuildRoot/Library/Caches/com.apple.xbs/Sources/Foundation_Sim/Foundation-1349/Layout.subproj/IncrementalSimplex/NSISVariable.m:175
more log console as shown in the picture.
I guess the problem is there: the line in which the red arrow points.
[HXDMineViewController tableView:cellForRowAtIndexPath:] + 168
but there is no problem in iOS 9.0、8.0、7.0, except iOS 10.0.
I am completely at a lost. Anyone have this experience, and how do I fix it?
Thanks in advance!

Read memory failed. How to debug?

I'm getting an exception breakpoint which make crash my application in UIApplicationMain. The error message is :
name:<read memory from 0x1b failed (0 of 8 bytes read)> reason:<read memory from 0x23 failed (0 of 8 bytes read)>
How can I debug this kind of error ?
When I deactivate the exception breakpoint, the app works normally.
Thank you

PhoneGap iOS App Icon [duplicate]

This question already has answers here:
How to add app icon within phonegap projects?
(14 answers)
Closed 9 years ago.
So I'm trying to specify my custom iOS icons for my app in my config.xml file, using the guide at https://build.phonegap.com/docs/config-xml
However, when I use the line of code they give you, the app fails to load, and throws an error in XCode;
2013-07-24 09:32:06.121 iLens[19852:c07] *** Assertion failure in -[CDVConfigParser parser:parseErrorOccurred:], /Applications/MAMP/htdocs/carlzeiss/phonegap-2.9.0/iLens/CordovaLib/Classes/CDVConfigParser.m:93
2013-07-24 09:32:06.121 iLens[19852:c07] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'config.xml parse error line 38 col 40'
*** First throw call stack:
(0x173012 0x28eee7e 0x172e78 0x1564665 0x7a352 0x15aca08 0x58e02af 0x58fa745 0x590225a 0x59044e5 0x5903f07 0x15ac8fe 0x15ac890 0x15acb46 0x15acbfa 0x590d2 0x57ea0 0x57f6e 0x83749 0x48de1e 0x5802e 0x837ad 0x8326b 0x3ac157 0x3ac747 0x3ad94b 0x3becb5 0x3bfbeb 0x3b1698 0x3720df9 0x3720ad0 0xe8bf5 0xe8962 0x119bb6 0x118f44 0x118e1b 0x3ad17a 0x3aeffc 0x82f4c 0x82ea9)
libc++abi.dylib: terminate called throwing an exception
If I remove the gap:platform="ios" part, the app loads, but the icon doesn't change.
Does anyone have a working example of changing icons through the config.xml file please?
Note: I don't believe this is a duplicate of the question that has been linked to this question. My question is in regards to adding icons through the config.xml file, as you should be able to do as per the PhoneGap documents. However, it turns out that they didn't support this option at that time.
Open Your project in Xcode and place App Icon it will work.

Playing a Video (MSDN Tutorial)

When trying the example on http://msdn.microsoft.com/en-us/library/dd904198(v=XNAGameStudio.40).aspx the program crashes on
Line 69: "player.Play(video);"
error message: "An unhandled exception of type 'System.InvalidOperationException' occurred in Microsoft.Xna.Framework.dll
Additional information: An unexpected error has occurred."
I did not change a single character in the code, but used exactly the files as they came out of the VideoPlayback_4_0.zip folder. (can be directly downloaded from http://msdn.microsoft.com/en-us/library/dd904198(v=XNAGameStudio.40).aspx)
I have read in other forums from people experiencing the same problem, but I could not find a usable solution. Does anybody know what causes the problem and how to fix it?
Stack Trace
Microsoft.Xna.Framework.dll!Microsoft.Xna.Framework.Helpers.ThrowExceptionFromErrorCode(Microsoft.Xna.Framework.ErrorCodes error) + 0x3d bytes
Microsoft.Xna.Framework.Video.dll!Microsoft.Xna.Framework.Media.VideoPlayer.Play(Microsoft.Xna.Framework.Media.Video video) + 0xb7 bytes
VideoPlayback.exe!VideoPlayback.Game1.Update(Microsoft.Xna.Framework.GameTime gameTime) Line 69 + 0x1a bytes
Microsoft.Xna.Framework.Game.dll!Microsoft.Xna.Framework.Game.Tick() + 0x4f0 bytes
The codex were the problem. Reinstalling Windows resolved the issue.

Resources