queal opened a new issue #2755: [Android]errorCode =  -1001,  
WXBridgeManager.mInit is dangerous
URL: https://github.com/apache/incubator-weex/issues/2755
 
 
   ## Describe the bug
   can not render page
   
   ## Result
   when i invoke mWXSDKInstance.render, i got errorCode =  -1001, 
degradeToH5|createInstance fail|wx_create_instance_error 
isJSFrameworkInit==false reInitCount == 1
   
   there is not .so bug, i debug the code, and found WXBridgeManager.mInit is 
dangerous,
   
   ## lifecycle
   init application (here invoke WXSDKEngine.initialize)
   init Activity
   new WXSDKInstance
   registerRenderListener(this)
   mWXSDKInstance.render
   
   ## Track
   WXSDKEngine.initialize() -> doInitInternal -> sm.initScriptsFramework -> 
msg.sendToTarget 
   
   but, 
   mWXSDKInstance.render -> renderInternal ->  
WXSDKManager.getInstance().createInstance -> mBridgeManager.createInstance ->  
if (!isJSFrameworkInit() && reInitCount == 1 && 
!WXEnvironment.sDebugServerConnectable) 
   
   then, 
    isJSFrameworkInit return not inited, and mWXSDKInstance.render return 
errorCode = -1001
   
   this is a bug? 
   
   ## Version 0.24

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to