You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2019/09/23 13:37:59 UTC

[GitHub] [incubator-weex] monkeycraps edited a comment on issue #2881: [Android] Unexpected crash when app is in profiler started state where weex version is 0.26.2

monkeycraps edited a comment on issue #2881: [Android] Unexpected crash when app is in profiler started state where weex version is 0.26.2
URL: https://github.com/apache/incubator-weex/issues/2881#issuecomment-534102218
 
 
   it seem to be cause by android studio 3.5 
   i open debug mode, it crash too
   ```
       
       --------- beginning of crash
   09-23 21:26:52.360 2677-2695/com.weex.app A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 2695 (WeexJSBridgeThr)
   ```
   
   ```
   public class WXApplication extends Application {
   
     @Override
     public void onCreate() {
       super.onCreate();
       initDebugEnvironment(true, "10.20.0.2"/*"DEBUG_SERVER_HOST"*/);
   //    WXSDKEngine.reload();
   
       WXSDKEngine.addCustomOptions("appName", "WXSample");
       WXSDKEngine.addCustomOptions("appGroup", "WXApp");
       WXSDKEngine.initialize(this,
           new InitConfig.Builder().setImgAdapter(new ImageAdapter()).build()
       );
   
       try {
         WXSDKEngine.registerModule("event", WXEventModule.class);
       } catch (WXException e) {
         e.printStackTrace();
       }
       AppConfig.init(this);
       WeexPluginContainer.loadAll(this);
     }
   
     private void initDebugEnvironment(boolean enable, String host) {
       WXEnvironment.sRemoteDebugMode = enable;
       WXEnvironment.sRemoteDebugProxyUrl = "ws://" + host + ":8089/debugProxy/native";
     }
   }
   
   ```

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services