致命信号 11(Sigsegv)在 0x00000000(代码=1)? [英] FATAL SIGNAL 11 (Sigsegv) at 0x00000000 (code=1)?

查看:42
本文介绍了致命信号 11(Sigsegv)在 0x00000000(代码=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);
    }

推荐答案

您看到的错误消息是由于在本机代码中取消引用空指针引起的.从你的显示很难猜测可能是什么原因.

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)在 0x00000000(代码=1)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆