Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安卓9.0播放音频闪退 playWav() #37

Open
corpsele opened this issue Jul 3, 2024 · 6 comments
Open

安卓9.0播放音频闪退 playWav() #37

corpsele opened this issue Jul 3, 2024 · 6 comments

Comments

@corpsele
Copy link

corpsele commented Jul 3, 2024

在安卓9.0系统中,正常打开App,正常下载基础配置文件,正常下载预览的模型文件,进入播放页面后,渲染出数字人模型,点击播放音频即闪退。试过多个安卓9.0模拟器也闪退。

硬件:华为note10, 系统鸿蒙:2.0.0,系统底层:安卓9.0

定位错误类:
CallActivity.kt - playWav() - duix?.playAudio(wavFile.absolutePath)
mHandler.sendMessage(msg);

DUIXThread.java - loadAudio
int all_bnf = scrfdncnn.onewav(path, ""); // 闪退代码

2024-07-03 16:08:14.127 1729-1852 InputDispatcher system_process E channel 'befb38c ai.guiji.duix.test/ai.guiji.duix.test.ui.activity.CallActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
---------------------------- PROCESS ENDED (7376) for package ai.guiji.duix.test ----------------------------
2024-07-03 16:08:14.127 1729-1852 InputDispatcher system_process E channel '4adc63c ai.guiji.duix.test/ai.guiji.duix.test.ui.activity.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
---------------------------- PROCESS STARTED (7898) for package ai.guiji.duix.test ----------------------------

@c-yyy
Copy link

c-yyy commented Jul 29, 2024

解决了吗?

@corpsele
Copy link
Author

思考是音频编解码问题,但还没有试

解决了吗?

@c-yyy
Copy link

c-yyy commented Jul 29, 2024

我猜这个应该是跟Android的存储权限导致的 他的SDK可能没有优化Android11以前的存储权限 11之前 特别是10之前的权限关于这个获取本地存储操作不太一样

@corpsele
Copy link
Author

我猜这个应该是跟Android的存储权限导致的 他的SDK可能没有优化Android11以前的存储权限 11之前 特别是10之前的权限关于这个获取本地存储操作不太一样

可能不是存储权限问题,在sdk里面c++接口里读取音频文件后获得长度crash的,我不知道我这么理解对不对。
Xnip2024-07-31_11-16-57

@c-yyy
Copy link

c-yyy commented Aug 8, 2024

另外我还有报错提示 could not get uids for ai.guiji.duix. test, put one
WechatIMG645

@corpsele
Copy link
Author

corpsele commented Aug 9, 2024

另外我还有报错提示 could not get uids for ai.guiji.duix. test, put one WechatIMG645

这个可能是下载模型找不到id
git restore .
回滚所有源码,再次运行试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants