本文介绍了致命信号11(SIGSEGV)为00000000(code = 1)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么会出现这种问题出现?

Why does this problem occur?

public static String path;
private VideoView mVideoView;


mVideoView = (VideoView) findViewById(R.id.surface_view);
mVideoView.setVideoPath(path);
mVideoView.setMediaController(new MediaController(this));
mVideoView.requestFocus();

//...

    private int mLayout = VideoView.VIDEO_LAYOUT_ZOOM;

    @Override
    public void onConfigurationChanged(Configuration newConfig) {
        if (mVideoView != null)
            mVideoView.setVideoLayout(mLayout, 0);
        super.onConfigurationChanged(newConfig);
    }

推荐答案

您所看到的是由非关联化的本土code空指针错误消息。从你表现很难猜测可能是原因。

The error message you are seeing is caused by dereferencing a null pointer in native code. From what you show it's hard to guess what may be the cause.

在你的地方,我会仔细检查,你没有传递一个空引用到一个系统或库的方法。

In your place I'd double check that you're not passing a null references to a system or library method.

这篇关于致命信号11(SIGSEGV)为00000000(code = 1)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-05 07:37