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

Commit

Permalink
Merge pull request #2946 from YorkShen/release/20190925
Browse files Browse the repository at this point in the history
Merge Release/20190925 into master
  • Loading branch information
jianhan-he authored Oct 8, 2019
2 parents 51c8d12 + ac0c6b1 commit 9cb3909
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ public class WXBridgeManager implements Callback, BactchExecutor {
static volatile WXBridgeManager mBridgeManager;
private static long LOW_MEM_VALUE = 120;
public volatile static int reInitCount = 1;
private volatile static int sInitFrameWorkCount = 0;
private static String crashUrl = null;
private static long lastCrashTime = 0;

Expand Down Expand Up @@ -909,6 +910,8 @@ public int callReportCrashReloadPage(String instanceId, String crashFile) {
commitJscCrashAlarmMonitor(IWXUserTrackAdapter.JS_BRIDGE, WXErrorCode.WX_ERR_RELOAD_PAGE, "reboot jsc Engine", instanceId, url,extInfo);
}

WXLogUtils.e("reInitCount:"+reInitCount);

if (reInitCount > CRASHREINIT) {
WXExceptionUtils.commitCriticalExceptionRT("jsEngine", WXErrorCode.WX_ERR_RELOAD_PAGE_EXCEED_LIMIT,
"callReportCrashReloadPage","reInitCount:"+reInitCount,extInfo);
Expand Down Expand Up @@ -2172,6 +2175,8 @@ private void initFramework(String framework) {

execRegisterFailTask();
WXEnvironment.JsFrameworkInit = true;
sInitFrameWorkCount++;
WXLogUtils.e("initFrameWorkCount :"+ sInitFrameWorkCount);
registerDomModule();
trackComponentAndModulesTime();
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,10 +388,9 @@ int CoreSideInPlatform::RefreshInstance(
}}
}
};

auto final_json_str = final_json.dump().c_str();
auto utf16_key = weex::base::to_utf16(const_cast<char*>(final_json_str),
strlen(final_json_str));
std::string out = final_json.dump();
auto utf16_key = weex::base::to_utf16(const_cast<char*>(out.c_str()),
out.length());
args->value.string = genWeexString(
reinterpret_cast<const uint16_t*>(utf16_key.c_str()), utf16_key.size());
msg.push_back(args);
Expand Down

0 comments on commit 9cb3909

Please sign in to comment.