Unity升级到2022版本后,打开Spine会卡住

1)Unity升级到2022版本后,打开Spine会卡住
2)iPhone在同时播放多个音效的时候会压低某些音源的音量
3)在Y77手机上出现IMGSRV:GetMainShaderConstantBufferBaseAddress: Unsupported
4)UE4打包后在部分安卓机型出现“花屏”


这是第364篇UWA技术知识分享的推送,精选了UWA社区的热门话题,涵盖了UWA问答、社区帖子等技术知识点,助力大家更全面地掌握和学习。

Spine

Q:Unity升级到2022版本,发现打开Spine之后,等几秒必卡住。现象是音频正常播放,界面卡住,并且也不闪退也不卡死,也没触发无响应提示。跟踪了一下后发现UnityMainThread一切正常,有一个渲染类的线程一直卡住了,请问大家有遇到过类似这种问题吗?

针对以上问题,有经验的朋友欢迎转至社区交流分享:
UWA问答 | 游戏开发者互动问答社区 | 侑虎科技


Platform

Q:在场景中挂一个GO,循环播放BGM,在Prefab上挂一个AudioSource,播放一段战斗音效,然后短时间内初始化大概10个Prefab到场景里,接着就发现BGM音量变小了,战斗音效播完之后音量会慢慢变大。类似AudioMixer的Ducking Effect。由于其他平台都没有这个现象,因此想要在iPhone上也不要有这个效果。

经过测试有以下一些现象:

1. 只会在iPhone真机上出现,试了几个机子好像都能复现(没有连耳机,外放的)。

2. 试过用FMOD把BGM和战斗音效分到不同的Mix Group,没有做额外设置,就是单纯创建一个AudioMixer然后创建两个Group,再设置了一下两个AudioSource的Output,发现还是会被压低声音。

3. 试过改成用FMOD播声音,还是会压低音量。

4. 在Unity论坛上问过,官方回复说很像Ducking,上网搜过iPhone关掉自带的Audio Ducking,没有用,AudioMixer没有做设置,所以也是没有Ducking Effect的,一开始没有用AudioMixer也是会出现这个效果的。

想问下有人知道是什么问题吗,Unity或者iPhone哪里有相关的设置吗,Unity里面搜过Audio和iPhone相关设置,没有发现有关联的。

针对以上问题,有经验的朋友欢迎转至社区交流分享:
UWA问答 | 游戏开发者互动问答社区 | 侑虎科技


Platform

Q:在Y77这款手机上,对应GPU是PowerVR B-series BXM-8-256上,大家有没有遇到过出现IMGSRV:GetMainShaderConstantBufferBaseAddress: Unsupported的情况?

针对以上问题,有经验的朋友欢迎转至社区交流分享:
UWA问答 | 游戏开发者互动问答社区 | 侑虎科技


Platform

Q:UE4 安卓打包后在部分机型出现“花屏”,求助大佬可以帮忙分析一下出现的原因。

正常画面:

花屏画面:

对应的Log:

倒计时 currentSecond >>31
Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1088 com.android.server.OppoBaseBatteryService$2.run:192 android.os.Handler.handleCallback:883 android.os.Handler.dispatchMessage:100 android.os.Looper.loop:237
service_to_fd shell:am startservice -a falcon.action.ADB_HEART_BEAT --user 0
Background start not allowed: service Intent { act=falcon.action.ADB_HEART_BEAT } to com.testbird.falcon/.service.FalconService from pid=12276 uid=2000 pkg=com.android.shell startFg?=false
post waitpid (pid=12274) status=ff00
[minicap](this:0x7e90653000,id:0,api:1,p:574,c:9230) queueBuffer: slot 2 is dropped, handle=0x7e90666c80
getWifiLinkLayerStats_1_3_Internal(l.936) failed {.code = ERROR_NOT_SUPPORTED, .description = }
info 14:31:13.196 11154 11154 倒计时 currentSecond >>32
info 14:31:13.593 9230 9251 [minicap](this:0x7e90653000,id:0,api:1,p:574,c:9230) queueBuffer: slot 0 is dropped, handle=0x7e90666640
info 14:31:14.197 11154 11154 倒计时 currentSecond >>33
info 14:31:14.347 9230 9251 [minicap](this:0x7e90653000,id:0,api:1,p:574,c:9230) queueBuffer: slot 0 is dropped, handle=0x7e90666640
info 14:31:14.703 9230 9251 [minicap](this:0x7e90653000,id:0,api:1,p:574,c:9230) queueBuffer: slot 2 is dropped, handle=0x7e90666c80
info 14:31:14.784 9230 9251 [minicap](this:0x7e90653000,id:0,api:1,p:574,c:9230) queueBuffer: slot 1 is dropped, handle=0x7e90666a00
error 14:31:15.69 5186 7008 TakeRentPerfTask.update(Line:196)[TakeRentPerfTask]: update size=0
info 14:31:15.196 11154 11154 倒计时 currentSecond >>34
warn 14:31:15.388 440 449 Endorsement token not found, wait a bit longer [vendor/mediatek/proprietary/trustzone/trustonic/source/external/mobicore/common/410/Daemon/src/EndorsementInstaller.cpp:105]
info 14:31:15.810 9230 9251 [minicap](this:0x7e90653000,id:0,api:1,p:574,c:9230) queueBuffer: slot 2 is dropped, handle=0x7e90666c80
error 14:31:15.978 1483 1625 getWifiLinkLayerStats_1_3_Internal(l.936) failed {.code = ERROR_NOT_SUPPORTED, .description = }
info 14:31:16.196 11154 11154 倒计时 currentSecond >>35
warn 14:31:16.391 1483 3765 Background start not allowed: service Intent { act=falcon.action.START_SERVICE } to com.testbird.falcon/.service.FalconService from pid=12281 uid=2000 pkg=com.android.shell startFg?=false
info 14:31:17.5 9230 9251 [minicap](this:0x7e90653000,id:0,api:1,p:574,c:9230) queueBuffer: slot 0 is dropped, handle=0x7e90666640
service_to_fd shell:cat /sdcard/testbird/ipInfo.txt
post waitpid (pid=12284) status=0000
倒计时 currentSecond >>36
[minicap](this:0x7e90653000,id:0,api:1,p:574,c:9230) queueBuffer: slot 1 is dropped, handle=0x7e90666a00
type=1400 audit(0.0:841041): avc: denied { search } for name="power_supply" dev="sysfs" ino=39298 scontext=u:r:bspCriticalLog:s0 tcontext=u:object_r:sysfs_battery_supply:s0 tclass=dir permissive=0
uid=1000(system) /system/bin/bspCriticalLog identical 1 line
type=1400 audit(0.0:841043): avc: denied { search } for name="power_supply" dev="sysfs" ino=39298 scontext=u:r:bspCriticalLog:s0 tcontext=u:object_r:sysfs_battery_supply:s0 tclass=dir permissive=0
倒计时 currentSecond >>37
getWifiLinkLayerStats_1_3_Internal(l.936) failed {.code = ERROR_NOT_SUPPORTED, .description = }
TakeRentPerfTask.update(Line:196)[TakeRentPerfTask]: update size=0
倒计时 currentSecond >>38
[minicap](this:0x7e90653000,id:0,api:1,p:574,c:9230) queueBuffer: slot 0 is dropped, handle=0x7e90666640
[minicap](this:0x7e90653000,id:0,api:1,p:574,c:9230) queueBuffer: slot 1 is dropped, handle=0x7e90666a00
倒计时 currentSecond >>39
倒计时 currentSecond >>40
HttpUtils.log(Line:208): doGet https://checkip.amazonaws.com/
No valid NAT64 prefix (102, /0)
Background start not allowed: service Intent { act=falcon.action.START_SERVICE } to com.testbird.falcon/.service.FalconService from pid=12290 uid=2000 pkg=com.android.shell startFg?=false
[minicap](this:0x7e90653000,id:0,api:1,p:574,c:9230) queueBuffer: slot 2 is dropped, handle=0x7e90666c80
[minicap](this:0x7e90653000,id:0,api:1,p:574,c:9230) queueBuffer: slot 2 is dropped, handle=0x7e90666c80
getWifiLinkLayerStats_1_3_Internal(l.936) failed {.code = ERROR_NOT_SUPPORTED, .description = }
倒计时 currentSecond >>41
HttpUtils.log(Line:208): doGet https://checkip.amazonaws.com/, cost: 1038 ms
service_to_fd shell:am startservice -a falcon.action.ADB_HEART_BEAT --user 0
Background start not allowed: service Intent { act=falcon.action.ADB_HEART_BEAT } to com.testbird.falcon/.service.FalconService from pid=12296 uid=2000 pkg=com.android.shell startFg?=false
post waitpid (pid=12294) status=ff00
TakeRentPerfTask.update(Line:196)[TakeRentPerfTask]: update size=0
倒计时 currentSecond >>42
[minicap](this:0x7e90653000,id:0,api:1,p:574,c:9230) queueBuffer: slot 1 is dropped, handle=0x7e90666a00
Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1088 com.android.server.OppoBaseBatteryService$2.run:192 android.os.Handler.handleCallback:883 android.os.Handler.dispatchMessage:100 android.os.Looper.loop:237
倒计时 currentSecond >>43
[minicap](this:0x7e90653000,id:0,api:1,p:574,c:9230) queueBuffer: slot 2 is dropped, handle=0x7e90666c80
getWifiLinkLayerStats_1_3_Internal(l.936) failed {.code = ERROR_NOT_SUPPORTED, .description = }
倒计时 currentSecond >>44
[minicap](this:0x7e90653000,id:0,api:1,p:574,c:9230) queueBuffer: slot 1 is dropped, handle=0x7e90666a00
[minicap](this:0x7e90653000,id:0,api:1,p:574,c:9230) queueBuffer: slot 2 is dropped, handle=0x7e90666c80
Background young concurrent copying GC freed 17584(4444KB) AllocSpace objects, 381(7620KB) LOS objects, 60% free, 7800KB/19MB, paused 189us total 114.217ms
倒计时 currentSecond >>45

说明:目前测试环境为云真机OPPA3。

可以帮忙分析一下是什么原因导致的呢?感激不尽。

针对以上问题,有经验的朋友欢迎转至社区交流分享:
UWA问答 | 游戏开发者互动问答社区 | 侑虎科技

封面图来源于网络


今天的分享就到这里。生有涯而知无涯,在漫漫的开发周期中,我们遇到的问题只是冰山一角,UWA社区愿伴你同行,一起探索分享。欢迎更多的开发者加入UWA社区。

UWA官网:www.uwa4d.com
UWA社区:community.uwa4d.com

 

升级Unity项目的版本,你可以按照以下步骤进行操作: 1. 备份项目:在进行任何更改之前,务必备份你的项目。这样,即使出现问题,你也可以恢复到原始状态。 2. 下载新版本:从Unity官方网站上下载你想要升级Unity版本。确保选择与你当前项目兼容的版本。 3. 安装新版本:运行下载的安装程序,并按照提示完成安装过程。 4. 打开旧项目:打开你想要升级Unity项目。 5. 检查兼容性:在Unity编辑器中,选择"Edit"(编辑)菜单,然后选择"Project Settings"(项目设置)。在"Player"(播放器)选项卡中,检查"Scripting Runtime Version"(脚本运行时版本)和".NET版本"设置是否与新版本兼容。如果需要,根据新版本的要求进行修改。 6. 处理API更改:新版本Unity可能引入一些API更改。打开Unity的"Console"(控制台)窗口,查看是否有任何警告或错误信息。根据需要,对代码进行必要的修改以适应新版本的API。 7. 测试和修复:在升级后的Unity版本中进行测试,确保项目的功能和性能正常。如果发现任何问题,按照错误消息或警告进行修复。 8. 更新插件和资产:如果你在项目中使用了第三方插件或资产,确保它们与新版本Unity兼容。如果需要,更新插件或资产以适应新版本。 9. 更新构建设置:如果你计划构建和发布项目,则需要确保构建设置与新版本Unity兼容。检查构建设置并进行必要的修改。 10. 文档和学习:阅读新版本Unity文档,了解新功能和改进。如果有需要,学习新版本的使用方法和最佳实践。 请注意,在升级Unity项目之前,确保你已经了解新版本引入的任何重大更改,并且在备份项目的情况下进行操作。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值