Skip to content

io.objectbox.Transaction.finalize() timed out after 60 seconds #1228

@samirshaikh2804

Description

@samirshaikh2804

Is there an existing issue?

Build info

  • ObjectBox version: 5.0.1
  • OS: Android 16 | One UI 8.0
  • Device: Samsung Galaxy A36 5G (happen on any device)

Steps to reproduce

No specific steps. this issue happen everytime after i kept the app open idle for 1 or 2 minute.

Expected behavior

App Should not crash

Actual behavior

The app is mostly crashing right at startup and sometimes randomly while in middle of execution.

Logs, stack traces

FATAL EXCEPTION: FinalizerWatchdogDaemon Process: in.upstox.app.qa, PID: 11453
   java.util.concurrent.TimeoutException: io.objectbox.Transaction.finalize() timed out after 60 seconds
                                             at io.objectbox.Transaction.nativeDestroy(Native Method)
                                             at io.objectbox.Transaction.close(Transaction.java:130)
                                             at io.objectbox.Transaction.finalize(Transaction.java:87)
                                             at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:387)
                                             at java.lang.Daemons$FinalizerDaemon.processReference(Daemons.java:367)
                                             at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:339)
                                             at java.lang.Daemons$Daemon.run(Daemons.java:132)
                                             at java.lang.Thread.run(Thread.java:1119)

I see the following hint. which is the right place to call closeThreadResources()? here it is resolved just by calling closeThreadResources().

use closeThreadResources() to avoid finalizing recycled transactions (initial commit count: 7).

-->

Logs
[Paste your logs here]

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions