FATAL SIGNAL 11 (Sigsegv) at 0x00000000 (code=1)?

前端 未结 6 1133
余生分开走
余生分开走 2021-02-04 06:49

Why does this problem occur?

public static String path;
private VideoView mVideoView;


mVideoView = (VideoView) findViewById(R.id.surface_view);
mVideoView.setV         


        
6条回答
  •  无人共我
    2021-02-04 07:28

    As mentioned by Nicola, this is most likely caused by dereferencing a null pointer in the native code. I had a similar issue and resolved it by debugging the stack trace.

    If you turn off filtering in your log cat, you will see the entire stack trace. This will give you detailed information at where the crash occurred, I used the following python script in order to find the exact cause; https://code.google.com/p/android-ndk-stacktrace-analyzer/wiki/Usage

    In my case a null pointer was occurring due to running a custom android build.

    Good luck

提交回复
热议问题