I was constantly encountering the error Fatal signal 11 (SIGSEGV)
, and after extensive debugging, I narrowed it down to my WebView
. When I commented it out, the error disappeared.
After further research and trial and error, I discovered that adding .alpha(0.99f)
to the modifier
resolved the issue.
Here’s how you can apply it:
AndroidView(
modifier = modifier
.fillMaxSize()
.alpha(0.99f), // This fixed the SIGSEGV crash for me
factory = { context ->
// Initialize WebView here
}
)
I’m not entirely sure why this works, but after months of searching, this simple tweak resolved my issue. If you're facing a similar problem, give this a try!