Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TimeoutException - timed out after 10 seconds #1390

Closed
lawloretienne opened this issue Aug 14, 2015 · 9 comments
Closed

TimeoutException - timed out after 10 seconds #1390

lawloretienne opened this issue Aug 14, 2015 · 9 comments
Labels

Comments

@lawloretienne
Copy link

I am getting these crashes in Fabric

java.util.concurrent.TimeoutException: io.realm.internal.Context.finalize() timed out after 10 seconds
       at java.lang.Object.equals(Object.java:205)
       at java.util.ArrayList.remove(ArrayList.java:418)
       at io.realm.internal.Context.cleanRows(Context.java:69)
       at io.realm.internal.Context.executeDelayedDisposal(Context.java:61)
       at io.realm.internal.Context.finalize(Context.java:113)
       at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:190)
       at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:173)
       at java.lang.Thread.run(Thread.java:818)
java.util.concurrent.TimeoutException: io.realm.internal.Context.finalize() timed out after 10 seconds
       at java.lang.ref.ReferenceQueue.poll(ReferenceQueue.java:47)
       at io.realm.internal.Context.cleanRows(Context.java:70)
       at io.realm.internal.Context.executeDelayedDisposal(Context.java:61)
       at io.realm.internal.Context.finalize(Context.java:113)
       at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:187)
       at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:170)
       at java.lang.Thread.run(Thread.java:841)

What could be causing the timeout? Also I have a try catch block around the realm transaction but the exception is not being caught.

@cmelchior
Copy link
Contributor

Yes, that is a bug in our code that cleans up the native resources. It was unfortunately slower than it should have been which has the effect you see there. We merged a fix to our master today: #1379 So it is available in our SNAPSHOT or the next release.

@cmelchior
Copy link
Contributor

Just to update. We apparently had a problem with our CI server, so the SNAPSHOT was never released. It should be available now with this fix.

@lawloretienne
Copy link
Author

When is v 0.83 slated to be released?

@cmelchior
Copy link
Contributor

We don't have a set timeline, but a good guess would be in a couple of weeks

@sumitnaharia
Copy link

Session 0: Exception while stopping repeating:
android.hardware.camera2.CameraAccessException: CAMERA_DISCONNECTED (2): cancelRequest:272: Camera device no longer alive
at android.hardware.camera2.CameraManager.throwAsPublicException(CameraManager.java:633)
at android.hardware.camera2.impl.ICameraDeviceUserWrapper.cancelRequest(ICameraDeviceUserWrapper.java:95)
at android.hardware.camera2.impl.CameraDeviceImpl.stopRepeating(CameraDeviceImpl.java:926)
at android.hardware.camera2.impl.CameraCaptureSessionImpl.close(CameraCaptureSessionImpl.java:378)
at android.hardware.camera2.impl.CameraCaptureSessionImpl$2.onDisconnected(CameraCaptureSessionImpl.java:514)
at android.hardware.camera2.impl.CameraDeviceImpl$7.run(CameraDeviceImpl.java:228)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: android.os.ServiceSpecificException: cancelRequest:272: Camera device no longer alive
at android.os.Parcel.readException(Parcel.java:1697)
at android.os.Parcel.readException(Parcel.java:1636)
at android.hardware.camera2.ICameraDeviceUser$Stub$Proxy.cancelRequest(ICameraDeviceUser.java:350)
at android.hardware.camera2.impl.ICameraDeviceUserWrapper.cancelRequest(ICameraDeviceUserWrapper.java:93)
at android.hardware.camera2.impl.CameraDeviceImpl.stopRepeating(CameraDeviceImpl.java:926) 
at android.hardware.camera2.impl.CameraCaptureSessionImpl.close(CameraCaptureSessionImpl.java:378) 
at android.hardware.camera2.impl.CameraCaptureSessionImpl$2.onDisconnected(CameraCaptureSessionImpl.java:514) 
at android.hardware.camera2.impl.CameraDeviceImpl$7.run(CameraDeviceImpl.java:228) 
at android.os.Handler.handleCallback(Handler.java:751) 
at android.os.Handler.dispatchMessage(Handler.java:95) 
at android.os.Looper.loop(Looper.java:154) 
at android.os.HandlerThread.run(HandlerThread.java:61) 
12-08 15:19:36.070 17309-17319/com.example.android.rippleeffectdemo E/AndroidRuntime: FATAL EXCEPTION: FinalizerWatchdogDaemon
Process: com.example.android.rippleeffectdemo, PID: 17309
java.util.concurrent.TimeoutException: com.opentok.android.Publisher.finalize() timed out after 10 seconds
at com.opentok.android.PublisherKit.finalizeNative(Native Method)
at com.opentok.android.PublisherKit.finalize(PublisherKit.java:512)

@sumitnaharia
Copy link

any one can give me solution how to handle this bugs

@Zhuinden
Copy link
Contributor

Zhuinden commented Dec 8, 2017

Update to a version that is 2.3.0 or higher

@ghost
Copy link

ghost commented Feb 22, 2018

@Zhuinden Update to 4.3.4 but it is still there

@shingchun
Copy link

@Zhuinden Using the Gradle plug-in, it is still there.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants