<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Heuristic crash</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=117269066" />
  <subtitle>Heuristic crash</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=117269066</id>
  <updated>2026-04-04T21:26:46Z</updated>
  <dc:date>2026-04-04T21:26:46Z</dc:date>
  <entry>
    <title>RE: Heuristic crash</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118311802" />
    <author>
      <name>László Tóth</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118311802</id>
    <updated>2020-01-21T15:08:18Z</updated>
    <published>2020-01-21T15:08:18Z</published>
    <summary type="html">I inspected the apps logs, on newer version it runs good... no error.Thank you!</summary>
    <dc:creator>László Tóth</dc:creator>
    <dc:date>2020-01-21T15:08:18Z</dc:date>
  </entry>
  <entry>
    <title>RE: Heuristic crash</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118101177" />
    <author>
      <name>László Tóth</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118101177</id>
    <updated>2019-12-17T09:21:06Z</updated>
    <published>2019-12-17T09:21:06Z</published>
    <summary type="html">As you&amp;#39;ve seen above, I use 7.2.2. I&amp;#39;d like to believe that it shouldn&amp;#39;t be possible, but this error is created by endusers mobile.  After refreshing to 7.2.2, the error occurrence is less than before in 7.2.1.I don&amp;#39;t know how can I check client&amp;#39;s lock.I trying to refresh the application one more time.</summary>
    <dc:creator>László Tóth</dc:creator>
    <dc:date>2019-12-17T09:21:06Z</dc:date>
  </entry>
  <entry>
    <title>RE: Heuristic crash</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118099314" />
    <author>
      <name>Victor Galan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118099314</id>
    <updated>2019-12-17T08:30:27Z</updated>
    <published>2019-12-17T08:30:27Z</published>
    <summary type="html">HeyIf you have the 7.2.2 version it shouldn&amp;#39;t be possible to get that error because we didn&amp;#39;t even use a reentrantLock in that class, can you check in your project the class OAuth2AuthenticationRefreshHandler and let me know if this is using the lock?&lt;br /&gt;Thanks </summary>
    <dc:creator>Victor Galan</dc:creator>
    <dc:date>2019-12-17T08:30:27Z</dc:date>
  </entry>
  <entry>
    <title>RE: Heuristic crash</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118089038" />
    <author>
      <name>László Tóth</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118089038</id>
    <updated>2019-12-16T16:20:19Z</updated>
    <published>2019-12-16T16:20:19Z</published>
    <summary type="html">The relevant dependencies&lt;br /&gt;+--- com.liferay.mobile:liferay-material-viewset:4.0.1@aar&lt;br /&gt;+--- com.liferay.mobile:liferay-screens:5.0.3@aar&lt;br /&gt;+--- com.liferay.mobile:liferay-push:1.2.1@aar&lt;br /&gt;+--- com.liferay.mobile:liferay-android-sdk:7.2.2@aar&lt;br /&gt;+--- com.liferay.mobile:liferay-android-services-v62:7.2.2@aar&lt;br /&gt;+--- com.liferay.mobile:liferay-android-services-v7:7.2.2@aar&lt;br /&gt;+--- com.liferay.mobile:liferay-android-services-v71:7.2.2@aar&lt;br /&gt;+--- com.liferay.mobile:liferay-android-services-v72:7.2.2@aar&lt;br /&gt;+--- com.liferay.mobile:liferay-android-sdk-core:7.2.2@aar</summary>
    <dc:creator>László Tóth</dc:creator>
    <dc:date>2019-12-16T16:20:19Z</dc:date>
  </entry>
  <entry>
    <title>RE: Heuristic crash</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118070966" />
    <author>
      <name>Victor Galan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118070966</id>
    <updated>2019-12-13T11:25:04Z</updated>
    <published>2019-12-13T11:25:04Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hey,Are you using liferay-screens in the same project?&amp;nbsp; I think it is using a past version imported for liferay-screensCan you check the version used executing &lt;pre&gt;&lt;code&gt;./gradlew app:dependencies &lt;/code&gt;&lt;/pre&gt;app is the name of the gradle project, yours can be different &lt;br&gt;I hope it helps &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif"&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Victor Galan</dc:creator>
    <dc:date>2019-12-13T11:25:04Z</dc:date>
  </entry>
  <entry>
    <title>RE: Heuristic crash</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118063781" />
    <author>
      <name>László Tóth</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118063781</id>
    <updated>2019-12-12T19:03:17Z</updated>
    <published>2019-12-12T19:03:17Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Now is coming the below exception.... it's not the same, but similar&lt;strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;java.lang.IllegalMonitorStateException:
at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease (ReentrantLock.java:152)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.release (AbstractQueuedSynchronizer.java:1285)
at java.util.concurrent.locks.ReentrantLock.unlock (ReentrantLock.java:458)
at com.liferay.mobile.android.auth.refresh.OAuth2AuthenticationRefreshHandler$1.onFailure (OAuth2AuthenticationRefreshHandler.java:45)
at com.liferay.mobile.android.auth.oauth2.TokenRequester$1.onFailure (TokenRequester.java:93)
at com.squareup.okhttp.Call$AsyncCall.execute (Call.java:185)
at com.squareup.okhttp.internal.NamedRunnable.run (NamedRunnable.java:33)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:764)
&lt;/code&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>László Tóth</dc:creator>
    <dc:date>2019-12-12T19:03:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: Heuristic crash</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118047247" />
    <author>
      <name>László Tóth</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118047247</id>
    <updated>2019-12-11T09:35:54Z</updated>
    <published>2019-12-11T09:35:54Z</published>
    <summary type="html">I&amp;#39;ve modified the dependency to the 7.2.2., but the the error is still coming! </summary>
    <dc:creator>László Tóth</dc:creator>
    <dc:date>2019-12-11T09:35:54Z</dc:date>
  </entry>
  <entry>
    <title>RE: Heuristic crash</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117333926" />
    <author>
      <name>Victor Galan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117333926</id>
    <updated>2019-10-01T13:58:35Z</updated>
    <published>2019-10-01T13:58:35Z</published>
    <summary type="html">Hey, this should be fixed with the 7.2.2 version of the liferay-mobile-sdk-core</summary>
    <dc:creator>Victor Galan</dc:creator>
    <dc:date>2019-10-01T13:58:35Z</dc:date>
  </entry>
  <entry>
    <title>Heuristic crash</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117269065" />
    <author>
      <name>László Tóth</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117269065</id>
    <updated>2019-09-24T10:31:14Z</updated>
    <published>2019-09-24T10:31:14Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi!&lt;br&gt;I use screenlets (usually AssetListScreenlet or WebContentDisplayScreenlet) to display contents, but sometimes it's crashing with this error:&lt;br&gt;&lt;pre&gt;&lt;code&gt;java.lang.IllegalMonitorStateException:
at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease (ReentrantLock.java:152)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.release (AbstractQueuedSynchronizer.java:1285)
at java.util.concurrent.locks.ReentrantLock.unlock (ReentrantLock.java:458)
at com.liferay.mobile.android.auth.refresh.OAuth2AuthenticationRefreshHandler$1.onFailure (OAuth2AuthenticationRefreshHandler.java:45)
at com.liferay.mobile.android.auth.oauth2.TokenRequester$1.onResponse (TokenRequester.java:101)
at com.squareup.okhttp.Call$AsyncCall.execute (Call.java:177)
at com.squareup.okhttp.internal.NamedRunnable.run (NamedRunnable.java:33)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:764)&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Why get this error?How can I prevent/catch this crash?&lt;br&gt;Thank you!&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>László Tóth</dc:creator>
    <dc:date>2019-09-24T10:31:14Z</dc:date>
  </entry>
</feed>
