当前位置:网站首页>Unity WebGL RuntimeError: integer overflow(整数溢出问题)
Unity WebGL RuntimeError: integer overflow(整数溢出问题)
2022-08-11 04:57:00 【九本才】
今天在开发Web版项目的时候发现整数溢出的问题。
An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:
RuntimeError: integer overflow

仔细查看是WebAssembly在实例化的时候出现了问题。于是我门查看一下打包的设置。
在打包设置里边我门看一下 WebAssembly Arithmetic Exceptions
包含 WebAssembly 代码的不同捕获模式的枚举。
此枚举在 WebGL 平台中用于定义在 WebAssembly 代码中执行算术运算时使用的捕获类型。
| throw | WebAssembly 代码会在除以零、将非常大的浮点数舍入为 int 等情况下抛出异常。 |
| ignore | 此模式通过在执行算术运算时将浮点值限制在合理范围内来避免陷阱。 |
设置为 Ignore,忽略掉浏览器的异常错误。
这样子就不会在浏览器端弹出报错弹窗而影响程序运行逻辑。

边栏推荐
- 交换机和路由器技术-36-端口镜像
- Kong实现禁止国外IP访问
- 论文笔记:Bag of Tricks for Long-Tailed Visual Recognition with Deep Convolutional Neural Networks
- How to read a paper
- 【FPGA教程案例49】控制案例1——基于FPGA的PID控制器verilog实现
- The principle, architecture, implementation, practice of "transfer" and "search", no need to be afraid of interviews
- 力扣——旋转数组的最小数字
- jwsManager服务接口实现类-jni实现
- 0 Basic software test for career change, self-study for 3 months, 12k*13 salary offer
- The use of async (asynchronous) and await
猜你喜欢

交换机和路由器技术-33-静态NAT

I wrote some code in my resume, but I still can't pass the interview

Word2021 中的图片保存后就变模糊了

Do you understand how the Selenium automated testing framework works?
![ERROR: Could not install packages due to an OSError: [Errno 2] 没有那个文件或目录: ‘/data/xxxx](/img/02/3896b29a955ae84a0f0326f0d2cabf.png)
ERROR: Could not install packages due to an OSError: [Errno 2] 没有那个文件或目录: ‘/data/xxxx

C语句:数据存储

交换机和路由器技术-28-OSPF的NSSA区域

Switch and Router Technology - 22/23 - OSPF Dynamic Routing Protocol/Link State Synchronization Process

Switch and Router Technology - 36-Port Mirroring

交换机和路由器技术-34-动态NAT
随机推荐
FPGA engineer interview questions collection 111~120
【小记】BatchSize的数值是设置的越大越好吗
send_sig: kernel execution flow
对象的创建以及显示转换
【电商运营】社交媒体营销策略该如何制定?
Network Skill Tree
交换机和路由器技术-25-OSPF多区域配置
智能指针笔记
Switch and Router Technology-33-Static NAT
Three 】 【 yolov7 series of actual combat from 0 to build training data sets
paddlepaddle实现CS_CE Loss且并入PaddleClas
zabbix构建企业级监控告警平台
延长经济保险(jeecgboot)
Layered Architecture & SOA Architecture
梅克尔工作室--OpenEuler培训笔记(1)
async(异步)和await的使用
Redis deletes keys in batches according to regular rules
FPGA工程师面试试题集锦121~130
【ImageNet】数据集1000个类的名称
力扣——旋转数组的最小数字