FATAL SIGNAL 11 (Sigsegv) at 0x00000000 (code=1)?(致命信号 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)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:致命信号 11(Sigsegv)在 0x00000000(代码=1)?
基础教程推荐
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- 修改 void 函数的输入参数,然后读取 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
