Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renderer Process Crash When Navigating Back from WebView Page #2491

Open
1 of 2 tasks
tjkhank opened this issue Jan 9, 2025 · 1 comment
Open
1 of 2 tasks

Renderer Process Crash When Navigating Back from WebView Page #2491

tjkhank opened this issue Jan 9, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@tjkhank
Copy link

tjkhank commented Jan 9, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Description: I am encountering a crash with the flutter_inappwebview package (version 6.1.5) on Android when navigating back from a page displaying an HTML file via WebView. The crash occurs when using the back button to exit the page, causing the following error:

[ERROR:aw_browser_terminator.cc(165)] Renderer process (11887) crash detected (code -1).

This issue occurs consistently across three different devices:

Samsung Galaxy Tab S10 Plus
Oppo 11
Xiaomi A1

Expected Behavior

The WebView should dispose of its resources cleanly when navigating back, and no crash should occur.

Steps with code example to reproduce

Use the flutter_inappwebview package to load a local HTML file in a WebView.
Navigate to the page containing the WebView.
Press the back button to return to the previous page.
Observe the crash in the renderer process.
main.zip

Stacktrace/Logs

Stacktrace/Logs

D/ViewRootImpl(11751): enqueueInputEventMotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=80.0, y[0]=208.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=1361408991, downTime=1361408991, deviceId=3, source=0x1002, displayId=0 }
D/ViewRootImplMainActivity: processMotionEvent MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=80.0, y[0]=208.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=1361408991, downTime=1361408991, deviceId=3, source=0x1002, displayId=0 }
D/ViewRootImplMainActivity: dispatchPointerEvent handled=true, event=MotionEvent { action=ACTION_DOWN, actionButton=0, id[0]=0, x[0]=80.0, y[0]=208.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=1361408991, downTime=1361408991, deviceId=3, source=0x1002, displayId=0 }
D/ViewRootImplMainActivity: processMotionEvent MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=80.0, y[0]=208.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=1361409081, downTime=1361408991, deviceId=3, source=0x1002, displayId=0 }
D/ViewRootImplMainActivity: dispatchPointerEvent handled=true, event=MotionEvent { action=ACTION_UP, actionButton=0, id[0]=0, x[0]=80.0, y[0]=208.0, toolType[0]=TOOL_TYPE_FINGER, buttonState=0, classification=NONE, metaState=0, flags=0x0, edgeFlags=0x0, pointerCount=1, historySize=0, eventTime=1361409081, downTime=1361408991, deviceId=3, source=0x1002, displayId=0 }
I/BufferQueueProducer(11751): ImageReader-1080x2208f1m3-11751-0 disconnect(): api=1
I/BufferQueueConsumer(11751): ImageReader-1080x2208f1m3-11751-0 disconnect()
I/GED (11751): ged_boost_gpu_freq, level 100, eOrigin 2, final_idx 15, oppidx_max 15, oppidx_min 0
[AndroidInAppWebViewWidget] (android) AndroidInAppWebViewWidget ID 0 calling "dispose" using []
I/GED (11751): ged_boost_gpu_freq, level 100, eOrigin 2, final_idx 15, oppidx_max 15, oppidx_min 0
I/GED (11751): ged_boost_gpu_freq, level 100, eOrigin 2, final_idx 15, oppidx_max 15, oppidx_min 0
E/chromium(11751): [ERROR:aw_browser_terminator.cc(165)] Renderer process (11887) crash detected (code -1).

Flutter version

Flutter 3.24.3 • channel stable on Windows 11

Operating System, Device-specific and/or Tool

Android Studio Koala Feature Drop | 2024.1.2

Plugin version

flutter_inappwebview: ^6.1.5

Additional information

No response

Self grab

  • I'm ready to work on this issue!
@tjkhank tjkhank added the bug Something isn't working label Jan 9, 2025
@Devinder234
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants