iOS平台下闪退原因汇总(一):"Ran out of trampolines of type 0/1/2" 运行时间错误

"Ran out of trampolines of type 0/1/2" 运行时间错误通常出现在使用大量递归泛型时。要看到这个错误需要连接着设备直接将项目build到设备里运行调试才能看到,您可以暗示 AOT 编译器分配更多type 0、type 1 或 type 2 trampolines。此外,AOT 编译器命令行选项可以在播放器设置 (Player Settings)的其他设置 (Other Setings) 部分指定。对于 type 1 trampolines,指定 nrgctx-trampolines=ABCD,其中 ABCD 是新的 trampolines 所需的值(如 4096)。对于 type 2 trampolines,指定 nimt-trampolines=ABCD,对于 type 0 trampolines,指定 ntrampolines=ABCD。

同时设置多个方式如下:nrgctx-trampolines=8192,nimt-trampolines=8192,ntrampolines=8192

Explanation
nrgctx-trampolines=8096 (these are recursive generics – the default is 1024)

nimt-trampolines=8096 (these are to do with interfaces and the default is 128)

ntrampolines=4048 (are to do with generic method calls, by default there are 1024)

引用自:http://whydoidoit.com/2012/08/20/unity-serializer-mono-and-trampolines/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值