Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[Android] report error when reboot count > CRASHREINIT (#2720)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucky-chen authored and Darin726 committed Jul 17, 2019
1 parent 57bd65c commit 49f0cf9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Expand Up @@ -864,6 +864,8 @@ public int callReportCrashReloadPage(String instanceId, String crashFile) {
}

if (reInitCount > CRASHREINIT) {
WXExceptionUtils.commitCriticalExceptionRT("jsEngine", WXErrorCode.WX_ERR_RELOAD_PAGE_EXCEED_LIMIT,
"callReportCrashReloadPage","reInitCount:"+reInitCount,null);
return IWXBridge.INSTANCE_RENDERING_ERROR;
}
reInitCount++;
Expand Down
Expand Up @@ -123,6 +123,8 @@ public enum WXErrorCode {
*/
WX_ERR_RELOAD_PAGE("-2111", "reloadPage",ErrorType.NATIVE_ERROR,ErrorGroup.NATIVE),

WX_ERR_RELOAD_PAGE_EXCEED_LIMIT("-2114", "RELOAD_PAGE_EXCEED_LIMIT",ErrorType.NATIVE_ERROR,ErrorGroup.NATIVE),

WX_ERROR_WHITE_SCREEN("-2116", "WHITE_SCREEN",ErrorType.RENDER_ERROR,ErrorGroup.JS),


Expand Down

0 comments on commit 49f0cf9

Please sign in to comment.