gree / gree/unity-webview

[Android] Application crashes with "FATAL EXCEPTION"

Open
#582 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Objective-C++
Stars
2.7k
Forks
734
Avg merge
11h 39m
Merged PRs (30d)
1

Description

Crashes were automatically reported on different devices into Google Play Console

java.lang.Error: FATAL EXCEPTION [main]

at android.app.FragmentManagerImpl.checkStateLoss (FragmentManager.java:1436)
at android.app.FragmentManagerImpl.enqueueAction (FragmentManager.java:1454)
at android.app.BackStackRecord.commitInternal (BackStackRecord.java:708)
at android.app.BackStackRecord.commit (BackStackRecord.java:672)
at net.gree.unitywebview.CWebViewPlugin$2.run (CWebViewPlugin.java:217)
at android.os.Handler.handleCallback (Handler.java:754)
at android.os.Handler.dispatchMessage (Handler.java:95)
at android.os.Looper.loop (Looper.java:163)
at android.app.ActivityThread.main (ActivityThread.java:6379)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:904)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:794)

Unity version: 2019.4.2f1
Android version: vary, including 5.1, 6.0, 7.1, 8.1, 9, 10
Plugin version: around 2020-05-20

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Android stack trace and inspect CWebViewPlugin.java around line 217, where FragmentManager.commit is called. Reproduce the crash across the reported Android versions if possible and verify that the reported FATAL EXCEPTION no longer occurs; no test file is named.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, unity
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.