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

WebViewクラッシュ対応 #143

Open
akidon0000 opened this issue Nov 8, 2023 · 6 comments
Open

WebViewクラッシュ対応 #143

akidon0000 opened this issue Nov 8, 2023 · 6 comments
Assignees
Labels

Comments

@akidon0000
Copy link
Member

No description provided.

@akidon0000
Copy link
Member Author

調査開始

@akidon0000
Copy link
Member Author

akidon0000 commented Mar 6, 2024

クラッシュ情報

No1
スクリーンショット 2024-03-06 14 03 44

No2
スクリーンショット 2024-03-06 14 04 10

No3
スクリーンショット 2024-03-06 14 04 16

@akidon0000
Copy link
Member Author

No2のクラッシュについて、原因が不明なのでクラッシュ時のURLを取得する方針で原因解明のための改善を行う

@akidon0000
Copy link
Member Author

Fatal Exception: NSInternalInconsistencyException
Completion handler passed to -[univIP.WebViewController webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:] was not called

致命的な例外:NSInternalInconsistencyException
-[univIP.WebViewController webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:] に渡された完了ハンドラが呼び出されませんでした

    /// alert対応
    func webView(_ webView: WKWebView,
                 runJavaScriptAlertPanelWithMessage message: String,
                 initiatedByFrame frame: WKFrameInfo,
                 completionHandler: @escaping () -> Void) {
        let alertController = UIAlertController(title: "", message: message, preferredStyle: .alert)
        let otherAction = UIAlertAction(title: "OK", style: .default) { action in completionHandler() }
        alertController.addAction(otherAction)
        present(alertController, animated: true, completion: nil)
    }

何が問題だ?

@akidon0000
Copy link
Member Author

クラッシュした人にどういう操作をしたらクラッシュしたか情報が来るまで、原因わからんかも

@akidon0000
Copy link
Member Author

クラッシュ: com.apple.root.default-qos
SIGABRT ABORT 0x00000001cbda7bc4

メモリ管理関連のクラッシュっぽい
Quality of Service
DispatchQueueらへんが怪しい

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant