JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
16.21k stars 1.17k forks source link

WebView close in iOS when open camera in version 1.5.1 #3779

Closed savan-ixfi closed 1 month ago

savan-ixfi commented 1 year ago

https://github.com/JetBrains/compose-multiplatform/assets/131661149/5e328798-0846-413a-8b81-7ac016e1ac0d

Kashif-E commented 11 months ago

@savan-ixfi i was searching for this issue for my repo and found this already posted. thank man

farhazulMullick commented 8 months ago

Xcode is printing this log. After that it prints didReceiveMemoryWarning

[CAMCaptureEngine] Received a session runtime error notification : Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo={NSLocalizedFailureReason=An unknown error occurred (-12782), NSLocalizedDescription=The operation could not be completed, NSUnderlyingError=0x600000ded050 {Error Domain=NSOSStatusErrorDomain Code=-12782 "(null)"}}
[CAMCaptureEngine] Performing recovery from error: Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo={NSLocalizedFailureReason=An unknown error occurred (-12782), NSLocalizedDescription=The operation could not be completed, NSUnderlyingError=0x600000ded050 {Error Domain=NSOSStatusErrorDomain Code=-12782 "(null)"}}
Snapshotting a view (0x103e64e20, CAMPreviewView) that has not been rendered at least once requires afterScreenUpdates:YES.
[CAMCaptureEngine] Attempting to recover from a session runtime error by restarting the AVCaptureSession
four-three commented 7 months ago

I am getting the same error @farhazulMullick . This is really frustrating. I believe it could be something with how you want to save the image on iOS.

farhazulMullick commented 7 months ago

This issue is related to Disposal strategy in CMP.

okushnikov commented 2 months ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.