question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FATAL EXCEPTION: com.mixpanel.android.viewcrawler.ViewCrawler -- java.lang.AssertionError

See original GitHub issue

@patedit Please all my crash events recorded on mixpanel are coming from the SDK Guess it’s somewhere in this file

	public boolean isOpen() {
		assert ( readystate == READYSTATE.OPEN ? !flushandclosestate : true );
		return readystate == READYSTATE.OPEN;
	}

Full stacktrace

FATAL EXCEPTION: com.mixpanel.android.viewcrawler.ViewCrawler
    java.lang.AssertionError
        at com.mixpanel.android.java_websocket.WebSocketImpl.isOpen(WebSocketImpl.java:675)
        at com.mixpanel.android.java_websocket.client.WebSocketClient.connectBlocking(WebSocketClient.java:123)
        at com.mixpanel.android.viewcrawler.EditorConnection.<init>(EditorConnection.java:51)
        at com.mixpanel.android.viewcrawler.ViewCrawler$ViewCrawlerHandler.connectToEditor(ViewCrawler.java:494)
        at com.mixpanel.android.viewcrawler.ViewCrawler$ViewCrawlerHandler.handleMessage(ViewCrawler.java:333)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pateditcommented, Jun 10, 2020

Hi @Ezike - thanks for bringing this up to my attention. Production devices should not be trying to use ViewCrawler. Could you add this meta-tag inside your application tag in your AndroidManifest.xml file?

<meta-data android:name="com.mixpanel.android.MPConfig.DisableGestureBindingUI"
                      android:value="true" />

This will solve your issue. Thanks!

0reactions
Ezikecommented, Jun 17, 2020

Yup, you perfectly can!

Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fatal Exception: java.lang.AssertionError - Android
Description Fatal Exception: java.lang.AssertionError at com.zipow.videobox.util.PreferenceUtil.initialize(PreferenceUtil.java:1)
Read more >
Assertion Error in Android Studio when trying to compile the ...
It works fine when I build via CLI. java.lang.AssertionError at com.android.tools.idea.gradle.compiler.AndroidGradleBuildProcessParametersProvider.
Read more >
SDK Integration: Android Advanced | Mixpanel Developer Docs
Read our advanced documentation on Mixpanel's Android SDK integration. You'll dive deeper into additional configurations and use cases ...
Read more >
Official Mixpanel Android SDK - AndroidRepo
Our app crashes with the following stack traces. java.lang.RuntimeException: Unable to start activity ComponentInfo{<packagename>/com.mixpanel.
Read more >
AssertionError: Assertion failed caused by unbound Android ...
What is the expected result? Correct build. What happens instead? e: java.lang ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found