- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用这个项目在 Android 设备上编写音乐流应用程序:https://github.com/spotify/psyonspotify
不幸的是,我的应用程序随机崩溃。我尝试使用 ndk-stack 调试 C 代码。根据输出,问题出在以下行:
assert(SL_RESULT_SUCCESS != result);
(sounddriver.cpp 中的 l.92)。我尝试更改和/或注释掉这一行,但错误仍然存在......
这似乎是与不正确的内存分配相关的某种问题,但它似乎与缓冲区大小没有任何关系,因为似乎还有足够的存储大小(请参阅日志输出)
09-03 20:00:50.556: I/DEBUG(4356): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-03 20:00:50.556: I/DEBUG(4356): Build fingerprint: 'samsung/p4notewifixx/p4notewifiww:4.1.2/JZO54K/N8010XXUCMH2:user/release-keys'
09-03 20:00:50.556: I/DEBUG(4356): pid: 2103, tid: 2204, name: Network Thread >>> com.masterarbeit.wheel4tunes <<<
09-03 20:00:50.556: I/DEBUG(4356): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
09-03 20:00:50.576: D/dalvikvm(2150): GC_EXPLICIT freed 122K, 43% free 29046K/50183K, paused 3ms+8ms, total 123ms
09-03 20:00:50.636: I/DEBUG(4356): r0 00000027 r1 deadbaad r2 40115b0c r3 00000000
09-03 20:00:50.636: I/DEBUG(4356): r4 00000000 r5 5e791acc r6 00000800 r7 00000002
09-03 20:00:50.636: I/DEBUG(4356): r8 00000000 r9 00000001 sl 00004e1f fp 5e791b1c
09-03 20:00:50.636: I/DEBUG(4356): ip 00004000 sp 5e791ac8 lr 400e7c65 pc 400e42fe cpsr 60000030
09-03 20:00:50.636: I/DEBUG(4356): d0 3f7aaaab0142ff80 d1 3ff0000042c80000
09-03 20:00:50.636: I/DEBUG(4356): d2 000000003f800000 d3 443c000000000000
09-03 20:00:50.636: I/DEBUG(4356): d4 0000000000000000 d5 3f80000000000000
09-03 20:00:50.636: I/DEBUG(4356): d6 3f80000000000000 d7 0142ff803f800000
09-03 20:00:50.636: I/DEBUG(4356): d8 0000000000000000 d9 0000000000000000
09-03 20:00:50.636: I/DEBUG(4356): d10 0000000000000000 d11 0000000000000000
09-03 20:00:50.636: I/DEBUG(4356): d12 0000000000000000 d13 0000000000000000
09-03 20:00:50.636: I/DEBUG(4356): d14 0000000000000000 d15 0000000000000000
09-03 20:00:50.636: I/DEBUG(4356): d16 41742ff808000000 d17 3fe0000000000000
09-03 20:00:50.636: I/DEBUG(4356): d18 0000000000000000 d19 2000000840070c00
09-03 20:00:50.636: I/DEBUG(4356): d20 0000000000000000 d21 0000000000000000
09-03 20:00:50.636: I/DEBUG(4356): d22 0000000000000000 d23 0000000000000000
09-03 20:00:50.636: I/DEBUG(4356): d24 0000000000000000 d25 0000000000000000
09-03 20:00:50.636: I/DEBUG(4356): d26 0000000000000000 d27 0000000000000000
09-03 20:00:50.636: I/DEBUG(4356): d28 0000000000000000 d29 0000000000000000
09-03 20:00:50.636: I/DEBUG(4356): d30 0000000000000000 d31 0000000000000000
09-03 20:00:50.636: I/DEBUG(4356): scr 20000010
09-03 20:00:50.641: I/DEBUG(4356): backtrace:
09-03 20:00:50.641: I/DEBUG(4356): #00 pc 000182fe /system/lib/libc.so
09-03 20:00:50.641: I/DEBUG(4356): #01 pc 0000dc04 /system/lib/libc.so (abort+4)
09-03 20:00:50.641: I/DEBUG(4356): #02 pc 0001f0bf /system/lib/libc.so (__assert2+30)
09-03 20:00:50.641: I/DEBUG(4356): #03 pc 000121f0 /data/data/com.masterarbeit.wheel4tunes/lib/libspotifywrapper.so (enqueue(short*, int)+176)
09-03 20:00:50.641: I/DEBUG(4356): #04 pc 00012568 /data/data/com.masterarbeit.wheel4tunes/lib/libspotifywrapper.so (music_delivery(sp_session*, sp_audioformat const*, void const*, int)+620)
09-03 20:00:50.641: I/DEBUG(4356): #05 pc 00168758 /data/data/com.masterarbeit.wheel4tunes/lib/libspotify.so
09-03 20:00:50.641: I/DEBUG(4356): stack:
09-03 20:00:50.641: I/DEBUG(4356): 5e791a88 5aa21e70
09-03 20:00:50.641: I/DEBUG(4356): 5e791a8c 5a1b1d2c /system/framework/twframework-res.apk
09-03 20:00:50.641: I/DEBUG(4356): 5e791a90 40004fb0
09-03 20:00:50.641: I/DEBUG(4356): 5e791a94 00000000
09-03 20:00:50.641: I/DEBUG(4356): 5e791a98 00000000
09-03 20:00:50.641: I/DEBUG(4356): 5e791a9c 00000000
09-03 20:00:50.641: I/DEBUG(4356): 5e791aa0 40110774 /system/lib/libc.so
09-03 20:00:50.641: I/DEBUG(4356): 5e791aa4 40115d10
09-03 20:00:50.641: I/DEBUG(4356): 5e791aa8 00000000
09-03 20:00:50.641: I/DEBUG(4356): 5e791aac 400e7c65 /system/lib/libc.so (_fwalk+32)
09-03 20:00:50.641: I/DEBUG(4356): 5e791ab0 00000001
09-03 20:00:50.641: I/DEBUG(4356): 5e791ab4 5e791acc
09-03 20:00:50.641: I/DEBUG(4356): 5e791ab8 00000800
09-03 20:00:50.641: I/DEBUG(4356): 5e791abc 00000002
09-03 20:00:50.641: I/DEBUG(4356): 5e791ac0 df0027ad
09-03 20:00:50.641: I/DEBUG(4356): 5e791ac4 00000000
09-03 20:00:50.641: I/DEBUG(4356): #00 5e791ac8 5e3e1e48 /data/data/com.masterarbeit.wheel4tunes/lib/libspotifywrapper.so
09-03 20:00:50.641: I/DEBUG(4356): 5e791acc fffffbdf
09-03 20:00:50.641: I/DEBUG(4356): 5e791ad0 40106ecc /system/lib/libc.so
09-03 20:00:50.641: I/DEBUG(4356): 5e791ad4 00000800
09-03 20:00:50.641: I/DEBUG(4356): 5e791ad8 00000002
09-03 20:00:50.641: I/DEBUG(4356): 5e791adc 400e71d1 /system/lib/libc.so (fprintf+16)
09-03 20:00:50.641: I/DEBUG(4356): 5e791ae0 40110718 /system/lib/libc.so
09-03 20:00:50.641: I/DEBUG(4356): 5e791ae4 5e3e1e48 /data/data/com.masterarbeit.wheel4tunes/lib/libspotifywrapper.so
09-03 20:00:50.641: I/DEBUG(4356): 5e791ae8 40106ecc /system/lib/libc.so
09-03 20:00:50.641: I/DEBUG(4356): 5e791aec 400d9c08 /system/lib/libc.so (__pthread_clone)
09-03 20:00:50.641: I/DEBUG(4356): #01 5e791af0 5e791af0
09-03 20:00:50.641: I/DEBUG(4356): 5e791af4 400eb0c3 /system/lib/libc.so (__assert2+34)
09-03 20:00:50.641: I/DEBUG(4356): #02 5e791af8 0000005c
09-03 20:00:50.641: I/DEBUG(4356): 5e791afc 5e3e2178 /data/data/com.masterarbeit.wheel4tunes/lib/libspotifywrapper.so
09-03 20:00:50.641: I/DEBUG(4356): 5e791b00 5e3e2178 /data/data/com.masterarbeit.wheel4tunes/lib/libspotifywrapper.so
09-03 20:00:50.646: I/DEBUG(4356): 5e791b04 5e3d91f4 /data/data/com.masterarbeit.wheel4tunes/lib/libspotifywrapper.so (enqueue(short*, int)+180)
09-03 20:00:50.646: I/DEBUG(4356): memory near r2:
09-03 20:00:50.646: I/DEBUG(4356): 40115aec 00000000 00000000 00000000 00000000 ................
09-03 20:00:50.646: I/DEBUG(4356): 40115afc 00000000 00000000 00000000 00000000 ................
09-03 20:00:50.646: I/DEBUG(4356): 40115b0c 00000001 00000000 00000000 00000000 ................
09-03 20:00:50.646: I/DEBUG(4356): 40115b1c 00000000 00000000 00000000 00000000 ................
09-03 20:00:50.646: I/DEBUG(4356): 40115b2c 00000000 00000000 00000000 00000000 ................
09-03 20:00:50.646: I/DEBUG(4356): memory near r5:
09-03 20:00:50.646: I/DEBUG(4356): 5e791aac 400e7c65 00000001 5e791acc 00000800 e|.@......y^....
09-03 20:00:50.646: I/DEBUG(4356): 5e791abc 00000002 df0027ad 00000000 5e3e1e48 .....'......H.>^
09-03 20:00:50.646: I/DEBUG(4356): 5e791acc fffffbdf 40106ecc 00000800 00000002 .....n.@........
09-03 20:00:50.646: I/DEBUG(4356): 5e791adc 400e71d1 40110718 5e3e1e48 40106ecc .q.@...@H.>^.n.@
09-03 20:00:50.646: I/DEBUG(4356): 5e791aec 400d9c08 5e791af0 400eb0c3 0000005c ...@..y^...@\...
09-03 20:00:50.646: I/DEBUG(4356): memory near sl:
09-03 20:00:50.646: I/DEBUG(4356): 00004dfc ffffffff ffffffff ffffffff ffffffff ................
09-03 20:00:50.646: I/DEBUG(4356): 00004e0c ffffffff ffffffff ffffffff ffffffff ................
09-03 20:00:50.646: I/DEBUG(4356): 00004e1c ffffffff ffffffff ffffffff ffffffff ................
09-03 20:00:50.646: I/DEBUG(4356): 00004e2c ffffffff ffffffff ffffffff ffffffff ................
09-03 20:00:50.646: I/DEBUG(4356): 00004e3c ffffffff ffffffff ffffffff ffffffff ................
09-03 20:00:50.646: I/DEBUG(4356): memory near fp:
09-03 20:00:50.646: I/DEBUG(4356): 5e791afc 5e3e2178 5e3e2178 5e3d91f4 0000c000 x!>^x!>^..=^....
09-03 20:00:50.646: I/DEBUG(4356): 5e791b0c 5e3e50c0 5e3e1f18 00000000 5e791b3c .P>^..>^....<.y^
09-03 20:00:50.646: I/DEBUG(4356): 5e791b1c 5e3d956c 00000800 5f44b10c 5e791b44 l.=^......D_D.y^
09-03 20:00:50.646: I/DEBUG(4356): 5e791b2c 40004698 00002000 0000c000 00000004 .F.@. ..........
09-03 20:00:50.646: I/DEBUG(4356): 5e791b3c 5e32975c 00000000 00000000 0000ac44 \.2^........D...
09-03 20:00:50.646: I/DEBUG(4356): memory near ip:
09-03 20:00:50.646: I/DEBUG(4356): 00003fe0 ffffffff ffffffff ffffffff ffffffff ................
09-03 20:00:50.646: I/DEBUG(4356): 00003ff0 ffffffff ffffffff ffffffff ffffffff ................
09-03 20:00:50.651: I/DEBUG(4356): 00004000 ffffffff ffffffff ffffffff ffffffff ................
09-03 20:00:50.651: I/DEBUG(4356): 00004010 ffffffff ffffffff ffffffff ffffffff ................
09-03 20:00:50.651: I/DEBUG(4356): 00004020 ffffffff ffffffff ffffffff ffffffff ................
09-03 20:00:50.651: I/DEBUG(4356): memory near sp:
09-03 20:00:50.651: I/DEBUG(4356): 5e791aa8 00000000 400e7c65 00000001 5e791acc ....e|.@......y^
09-03 20:00:50.651: I/DEBUG(4356): 5e791ab8 00000800 00000002 df0027ad 00000000 .........'......
09-03 20:00:50.651: I/DEBUG(4356): 5e791ac8 5e3e1e48 fffffbdf 40106ecc 00000800 H.>^.....n.@....
09-03 20:00:50.651: I/DEBUG(4356): 5e791ad8 00000002 400e71d1 40110718 5e3e1e48 .....q.@...@H.>^
09-03 20:00:50.651: I/DEBUG(4356): 5e791ae8 40106ecc 400d9c08 5e791af0 400eb0c3 .n.@...@..y^...@
09-03 20:00:50.651: I/DEBUG(4356): code around pc:
09-03 20:00:50.651: I/DEBUG(4356): 400e42dc e000b164 6823461c d1fb2b00 68e3e026 d....F#h.+..&..h
09-03 20:00:50.651: I/DEBUG(4356): 400e42ec 4a17b123 447a2401 47986014 20274911 #..J.$zD.`.G.I'
09-03 20:00:50.651: I/DEBUG(4356): 400e42fc 70082400 ebb2f7f4 f7f52106 a902ecf2 .$.p.....!......
09-03 20:00:50.651: I/DEBUG(4356): 400e430c f04f2006 460a5380 94029304 f7f59403 . O..S.F........
09-03 20:00:50.651: I/DEBUG(4356): 400e431c 4629e8d0 20024622 e8d8f7f5 eb9ef7f4 ..)F"F. ........
09-03 20:00:50.651: I/DEBUG(4356): code around lr:
09-03 20:00:50.651: I/DEBUG(4356): 400e7c44 41f0e92d 4c0b2600 447c4680 68a56824 -..A.&.L.F|D$h.h
09-03 20:00:50.651: I/DEBUG(4356): 400e7c54 e0076867 300cf9b5 dd022b00 47c04628 gh.....0.+..(F.G
09-03 20:00:50.651: I/DEBUG(4356): 400e7c64 35544306 d5f53f01 2c006824 4630d1ef .CT5.?..$h.,..0F
09-03 20:00:50.651: I/DEBUG(4356): 400e7c74 81f0e8bd 000288b2 43f0e92d fb01461f ........-..C.F..
09-03 20:00:50.651: I/DEBUG(4356): 400e7c84 f8dff602 b0878058 44f8460c 8000f8d8 ....X....F.D....
09-03 20:00:50.651: I/DEBUG(4356): memory map around fault addr deadbaad:
09-03 20:00:50.651: I/DEBUG(4356): beb7b000-beb9c000 [stack]
09-03 20:00:50.651: I/DEBUG(4356): (no map for address)
09-03 20:00:50.651: I/DEBUG(4356): ffff0000-ffff1000 [vectors]
不幸的是,我在处理或调试 C 代码方面经验不足。如果有人能指出我正确的方向,那就太好了!谢谢。
最佳答案
如果 assert(SL_RESULT_SUCCESS != result);
正在触发,则您的问题与 SLresult result = (*bqPlayerBufferQueue)->Enqueue(bqPlayerBufferQueue, buffer, size); 有关
SLAndroidSimpleBufferQueueItf
在 OpenSL 中实现。在尝试排队到缓冲区之前,您是否使用 init_audio_player() 正确初始化了音频播放器?
调试的一些想法:探索 SLAndroidSimpleBufferQueueItf
以了解其接口(interface)并在调用 Enqueue 之前验证是否满足所有假设。还要查找它提供的其他返回代码。如果它提供了有用的错误代码,将使您的生活更轻松。
还要看看如何调用 psyonspotify.so,以确保您正确遵守其接口(interface)和假设(即所需的任何 init 函数)。
关于android - Android 音乐流媒体应用程序上的致命信号 11,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18992238/
启动Android游戏时,我试图让一些音乐淡出。音乐在主菜单中播放,然后在播放器单击播放时淡出。我可以停止播放音乐,只是不会消失。 我试图用这个淡出: using UnityEngine; using
我正在 XNA 中创建一个游戏,它可以使用大量的音乐循环,但我似乎无法同步这些声音。 我总是错过几毫秒你能帮我吗? 这是我第一次尝试同步声音。请注意,我需要处理数十种声音...... 这个同步问题可能
我使用以下代码播放了一首歌,但它有 11 分钟长,我该如何停止它? 此代码位于 jFrame 1 中。如何使其停止在 jFrame 2 中? Input
在阅读我的书并浏览一些 YouTube 教程后,我对标准化的理解是,重要的事情之一就是不要有重复的值。更具体地说,主键 (ID) 不应重复。 因此,如果我正在使用音乐/音乐会数据库中的某些表,那么以下
我正在用 java 创建一个应用程序/游戏,其中包含背景音乐/声音。一切都按预期工作。如果播放某些系统声音/媒体声音/其他声音,我想静音/停止。 有什么建议...?? 最佳答案 我建议不要关心这个问题
只是尝试从图像 (1080p .png) + 音乐 (320Kb mp3) 为 youtube 制作视频。 ffmpeg -loop 1 -i image.png -i music.mp3 -
我正在GW-Basic中开发游戏,我想向其中添加音乐,但问题是我无法在后台播放,但是当我添加声音时先播放声音,然后在开始执行游戏和vICE之后vERSA。而我希望这两件事同时播放..所以知道怎么做吗?
我正在使用Xcode的Sprite套件开发iPhone游戏,想知道是否有一种简单或最佳实践的方法可以通过编程方式消除所有声音效果/音乐?对我来说,最明显的方法是创建一些 bool(boolean) 变
关闭。这个问题需要更多 focused .它目前不接受答案。 想改进这个问题?更新问题,使其仅关注一个问题 editing this post . 3年前关闭。 Improve this questi
我正在设计一个 Android 应用程序,需要依次播放各种短音乐文件。 我设置了一个“onClick”监听器来运行一个循环,一遍又一遍地播放这些声音文件,它们可能会播放 100 多次。 但是 我需要用
我有一个网站,其中包含集成到布局中的 Flash 音乐播放器。我希望用户能够在不中断音乐的情况下浏览网站。我做了很多研究和思考,以下是我提出的选项(请记住,我希望尽可能对 SEO 友好)。有人有其他想
我可以即时生成一些音调并播放声音吗?例如,如果我想生成 DO RI MI FA SO LA XI 音调并播放它们? 似乎声音 API 都是为了播放现有的音频文件。谢谢! 最佳答案 参见 Matt Ga
我一直在尝试将音乐添加到我的应用程序中,但没有特别成功。我一直在尝试使用 AVFoundation,我的代码如下: //MUSIC var audioPlayer = AVAudioP
MPMediaPickerController 返回一个 MPMediaItem 如果返回本地 url,则可以播放声音。 如果音乐没有下载到本地,则assetURL为空。 如何在本地下载 MPMedi
有什么方法可以检测是否正在播放 iPod 应用以外的其他来源的音乐或媒体? 我知道我可以检测到从 ipod 播放的音乐: [[MPMusicPlayerController iPodMusicPlay
我刚刚安装了 music21,我正在尝试开始使用它。我安装了 Musescore3,但我无法使 show() 函数工作。 我试过按照我在网上找到的一些说明更改路径,但无济于事 from music21
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 要求我们推荐或查找工具、库或最喜欢的场外资源的问题对于 Stack Overflow 来说是偏离主题的,
我目前正在寻找某种方式来扩展SFML.Net以使用MP3。因此,ioctllr推荐了NLayer,我想尝试一下。这是我的方法: namespace AudioCuesheetEditor.AudioB
我包含了正确的库和所有内容,这部分代码由于某种原因给出了段错误: int numerator = atoi(&fraction[0]); int denominator = atoi(&fracti
是否可以播放 AVPLayer 实例(带有视频)并同时使用 MPMusicPlayerController 实例来播放 iTunes 播放列表? 我尝试了几种解决方案,但每次播放视频时音频都会停止,每
我是一名优秀的程序员,十分优秀!