Android MediaExtractor crash when decoding some mp4 files. Libc fatal signal 11

血红的双手。 提交于 2019-12-12 04:17:07

问题


I am using Google Grafika examples to display video on TextureView. "Double decode" to be more specific . Code work most of the time but for some mp4 files it crash giving only :

libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 7998

Same code works for webM files and most mp4 files. Place where I expect it to fail is :

extractor = new MediaExtractor();
extractor.setDataSource(sourceFile);

in MoviePlayer [L:113]

Any hint how to walk around or what might be the problem?


回答1:


This is an error related to OpenGL-ES Apps

try adding this to your manifest:

  <uses-feature android:glEsVersion="0x00020000" android:required="true" />
  • Open AndroidManifest.xml, add android:allowClearUserData="true" tag to the application node.

    <application android:allowClearUserData="true"
    ....
    >
    

    This might help you



来源:https://stackoverflow.com/questions/33296292/android-mediaextractor-crash-when-decoding-some-mp4-files-libc-fatal-signal-11

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!