- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个非常奇怪的问题 - 我在所有设备上运行良好,但偶尔会在 Samsung Galaxy S2 上崩溃。
该应用程序使用 ffmpeg 并在某处发生崩溃。但是,我看不出代码本身有任何问题(如果有,它也会在其他设备上崩溃)。
我尝试在关闭所有 asm 优化的情况下进行编译,但仍然无济于事。
似乎崩溃只发生在 2.3.6 上,而不会在 ICS 上崩溃。
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I DEBUG : Build fingerprint: '2.3.6/GINGERBREAD/LA2:user/release-keys'
I DEBUG : pid: 28725, tid: 30055 >>> xxxxxxxxxxxxxx <<<
I DEBUG : signal 7 (SIGBUS), code 128 (?), fault addr 00000000
I DEBUG : r0 8e25e9fe r1 000000b1 r2 00877731 r3 00000000
I DEBUG : r4 5257fe78 r5 005a7300 r6 5257fec4 r7 00630340
I DEBUG : r8 00000000 r9 00000724 10 81de8c6c fp 006ccfe8
I DEBUG : ip 81de44b4 sp 5257fe08 lr 819c3748 pc 818386a0 cpsr 28000010
I DEBUG : d0 fd794ba0fd619c90 d1 fd96d984fd94d4d0
I DEBUG : d2 fd9232c4fd8c7b34 d3 fdaf8694fda5c318
I DEBUG : d4 3f33c07d3f333e16 d5 3f34c43d3f34428b
I DEBUG : d6 40667a147ae147af d7 bff0000000000000
I DEBUG : d8 3ee4f8b588e368f1 d9 4680000044a04000
I DEBUG : d10 43a18000446b8000 d11 0000000043a18000
I DEBUG : d12 0000000000000000 d13 0000000000000000
I DEBUG : d14 0000000000000000 d15 0000000000000000
I DEBUG : d16 0000000001e9a790 d17 fe4dfbc0fe7eccdc
I DEBUG : d18 fdd679ccfe11f78a d19 fd6edbecfd9d4964
I DEBUG : d20 fe9afe9afea3fea3 d21 fe4dfe4dfe7efe7e
I DEBUG : d22 fdd6fdd6fe11fe11 d23 fd6efd6efd9dfd9d
I DEBUG : d24 fd79fd79fd61fd61 d25 fd96fd96fd94fd94
I DEBUG : d26 fd92fd92fd8cfd8c d27 fdaffdaffda5fda5
I DEBUG : d28 3f3504f3bf3504f3 d29 bf3504f33f3504f3
I DEBUG : d30 4433681844aeb242 d31 3f3504f33f3504f3
I DEBUG : scr 2800009a
I DEBUG :
I DEBUG : #00 pc 000386a0 /data/data/xxxxxxx/lib/libffmpeg.so (av_packet_split_side_data)
I DEBUG : #01 lr 819c3748 /data/data/xxxxxxx/lib/libffmpeg.so
I DEBUG :
I DEBUG : libc base address: afd00000
I DEBUG :
I DEBUG : code around pc:
I DEBUG : 81838680 0a000012 e5941014 e351000c da00000f
I DEBUG : 81838690 e2411008 e30e09fe e0822001 e3480e25
I DEBUG : 818386a0 e5928000 e5929004 e1a01008 e1a02009
I DEBUG : 818386b0 e6bf2f32 e1838002 e1a06003 e1580000
I DEBUG : 818386c0 e6bf1f31 e1a07001 e1a09001 0a000002
I DEBUG :
I DEBUG : code around lr:
I DEBUG : 819c3728 e5933020 e3130020 1a000002 e5940014
I DEBUG : 819c3738 e3500000 0a00001c e1a00004 ebf9d3c4
I DEBUG : 819c3748 e595c078 e3a03000 e58d3004 e59c3020
I DEBUG : 819c3758 e3130901 1a000016 e58543a8 e1a00005
I DEBUG : 819c3768 e1a01007 e1a02006 e1a03004 e1a0e00f
I DEBUG :
I DEBUG : stack:
I DEBUG : 5257fdc8 00000000
I DEBUG : 5257fdcc 00631ed8
I DEBUG : 5257fdd0 00001004
I DEBUG : 5257fdd4 00001000
I DEBUG : 5257fdd8 00000007
I DEBUG : 5257fddc 0080a788
I DEBUG : 5257fde0 000017bd
I DEBUG : 5257fde4 81f08477 /system/lib/libOpenSLES.so
I DEBUG : 5257fde8 00632024
I DEBUG : 5257fdec 00000000
I DEBUG : 5257fdf0 05007ffc
I DEBUG : 5257fdf4 00000001
I DEBUG : 5257fdf8 00000018
I DEBUG : 5257fdfc afd464ec
I DEBUG : 5257fe00 0026e7f1
I DEBUG : 5257fe04 00000000
I DEBUG : #00 5257fe08 0026f4f6
I DEBUG : 5257fe0c afd13b69 /system/lib/libc.so
I DEBUG : 5257fe10 5257fe78
I DEBUG : 5257fe14 005a7300
I DEBUG : 5257fe18 5257fec4
I DEBUG : 5257fe1c 00630340
I DEBUG : 5257fe20 00000000
I DEBUG : 5257fe24 00000724
I DEBUG : 5257fe28 81de8c6c
I DEBUG : 5257fe2c 819c3748 /data/data/xxxxxxxx/lib/libffmpeg.so
I DEBUG : 5257fe30 0026f4f6
I DEBUG : 5257fe34 5257fe78
I DEBUG : 5257fe38 81de8c70
I DEBUG : 5257fe3c 5257fe78
I DEBUG : 5257fe40 81de8c70
I DEBUG : 5257fe44 81de4420
I DEBUG : 5257fe48 81de73c4
I DEBUG : 5257fe4c 00000000
I DEBUG : dumpstate /data/log/dumpstate_app_native.txt
I DEBUG : debuggerd committing suicide to free the zombie!
I DEBUG : debuggerd: Jan 5 2012 22:42:33
有没有人看到设备或特定 Android 版本有任何异常?或者有什么建议在哪里查看以及如何修复?
最佳答案
我有非常相似的问题 - ffmpeg 在解码数百帧后通过信号 7 (SIGBUS) 导致我的应用程序崩溃。它不是特定于设备的 - 在某些设备上,应用程序崩溃的频率更高,而在其他设备上则更少。
这对我来说是一个非常难以理解的问题,因为它可能在视频编码/解码的任何时候发生,而且我找不到任何导致失败的条件。但是我根据这篇有用的文章用 -malign-double
标志重新编译了 ffmpeg: http://software.intel.com/en-us/blogs/2011/08/18/understanding-x86-vs-arm-memory-alignment-on-android/ .它有帮助!所以我完整的“配置”行是(当然不是所有这些标志都对你有用):
./configure --target-os=linux --cross-prefix=arm-linux-androideabi- --disable-asm --arch=arm --cpu=cortex-a9 --sysroot=${SYSROOT} --enable-neon --disable-avdevice --enable-decoder=mjpeg --enable-demuxer=mjpeg --enable-parser=mjpeg --enable-demuxer=image2 --enable-muxer=mp4 --prefix=build/armeabi-v7a --extra-cflags='-DANDROID -I${NDK_ROOT}/sources/cxx-stl/system/include -mtune=cortex-a9 -mfpu=neon -mfloat-abi=softfp' --extra-ldflags='-Wl,--fix-cortex-a8 -malign-double -L../android-libs -Wl,-rpath-link,../android-libs' --extra-cxxflags='-Wno-multichar -malign-double -fno-exceptions -fno-rtti'
希望对你有帮助。
关于android - SIGBUS 仅在三星 Galaxy S2 上崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10739368/
我最近在/ drawable中添加了一些.gifs,以便可以将它们与按钮一起使用。这个工作正常(没有错误)。现在,当我重建/运行我的应用程序时,出现以下错误: Error: Gradle: Execu
Android 中有返回内部存储数据路径的方法吗? 我有 2 部 Android 智能手机(Samsung s2 和 s7 edge),我在其中安装了一个应用程序。我想使用位于这条路径中的 sqlit
这个问题在这里已经有了答案: What's the difference between "?android:" and "@android:" in an android layout xml f
我只想知道 android 开发手机、android 普通手机和 android root 手机之间的实际区别。 我们不能从实体店或除 android marketplace 以外的其他地方购买开发手
自Gradle更新以来,我正在努力使这个项目达到标准。这是一个团队项目,它使用的是android-apt插件。我已经进行了必要的语法更改(编译->实现和apt->注释处理器),但是编译器仍在告诉我存在
我是android和kotlin的新手,所以请原谅要解决的一个非常简单的问题! 我已经使用导航体系结构组件创建了一个基本应用程序,使用了底部的导航栏和三个导航选项。每个导航选项都指向一个专用片段,该片
我目前正在使用 Facebook official SDK for Android . 我现在正在使用高级示例应用程序,但我不知道如何让它获取应用程序墙/流/状态而不是登录的用户。 这可能吗?在那种情
我在下载文件时遇到问题, 我可以在模拟器中下载文件,但无法在手机上使用。我已经定义了上网和写入 SD 卡的权限。 我在服务器上有一个 doc 文件,如果用户单击下载。它下载文件。这在模拟器中工作正常但
这个问题在这里已经有了答案: What is the difference between gravity and layout_gravity in Android? (22 个答案) 关闭 9
任何人都可以告诉我什么是 android 缓存和应用程序缓存,因为当我们谈论缓存清理应用程序时,它的作用是,缓存清理概念是清理应用程序缓存还是像内存管理一样主存储、RAM、缓存是不同的并且据我所知,缓
假设应用程序 Foo 和 Eggs 在同一台 Android 设备上。任一应用程序都可以获取设备上所有应用程序的列表。一个应用程序是否有可能知道另一个应用程序是否已经运行以及运行了多长时间? 最佳答案
我有点困惑,我只看到了从 android 到 pc 或者从 android 到 pc 的例子。我需要制作一个从两部手机 (android) 连接的 android 应用程序进行视频聊天。我在想,我知道
用于使用 Android 以编程方式锁定屏幕。我从 Stackoverflow 之前关于此的问题中得到了一些好主意,并且我做得很好,但是当我运行该代码时,没有异常和错误。而且,屏幕没有锁定。请在这段代
文档说: android:layout_alignParentStart If true, makes the start edge of this view match the start edge
我不知道这两个属性和高度之间的区别。 以一个TextView为例,如果我将它的layout_width设置为wrap_content,并将它的width设置为50 dip,会发生什么情况? 最佳答案
这两个属性有什么关系?如果我有 android:noHistory="true",那么有 android:finishOnTaskLaunch="true" 有什么意义吗? 最佳答案 假设您的应用中有
我是新手,正在尝试理解以下 XML 代码: 查看 developer.android.com 上的文档,它说“starStyle”是 R.attr 中的常量, public static final
在下面的代码中,为什么当我设置时单选按钮的外观会发生变化 android:layout_width="fill_parent" 和 android:width="fill_parent" 我说的是
很难说出这里要问什么。这个问题模棱两可、含糊不清、不完整、过于宽泛或夸夸其谈,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开,visit the help center . 关闭 9
假设我有一个函数 fun myFunction(name:String, email:String){},当我调用这个函数时 myFunction('Ali', 'ali@test.com ') 如何
我是一名优秀的程序员,十分优秀!