Good day.
Android application start throws an error about
java.lang.IllegalMonitorStateException: object not locked by thread before wait()
in this line of code
outputs = model.process(inputFeature0)
Could someone helps to solve this problem?
Good day.
Android application start throws an error about
java.lang.IllegalMonitorStateException: object not locked by thread before wait()
in this line of code
outputs = model.process(inputFeature0)
Could someone helps to solve this problem?
Hi, @anon26980675
I apologize for the delayed response, When building multithreaded applications in Java, if a monitor needs to be synchronized on, the IllegalMonitorStateException
is thrown to indicate a thread attempted to wait or to notify other threads waiting on that monitor, without owning it.
Therefore, this exception occurs if one of the wait()
, notify()
or notifyAll()
methods of the Object
class are called outside a synchronized
block or method.
The IllegalMonitorStateException
can be resolved by calling the wait()
, notify()
and notifyAll()
methods after acquiring an object lock, i.e. within a synchronized
block or method. please refer this blog and stackoverflow issue thread
If your issue still persists after trying with latest version of TFLite if possible please help us with your github repo along with complete steps to replicate the same behavior from our end.
Thank you for your cooperation and patience.