当前位置:网站首页>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,忽略掉浏览器的异常错误。
这样子就不会在浏览器端弹出报错弹窗而影响程序运行逻辑。

边栏推荐
- Kong implements ban on foreign IP access
- 对象的创建以及显示转换
- 【FPGA教程案例49】控制案例1——基于FPGA的PID控制器verilog实现
- 02. Fold hidden text
- CAD2020 打开错误报告 e06d7363h Exception at 13644F69h
- svg-icon的使用方法(svg-sprite-loader插件)
- 优化是一种习惯●出发点是“站在靠近临界“的地方
- Switch and Router Technology - 25 - OSPF Multi-Area Configuration
- Self-research capability was recognized again, and Tencent Cloud Database was included in the Forrester Translytical report
- Australia cyberspace security system construction
猜你喜欢

我的LaTeX入门

Switches and routers technology - 26 - configure OSPF peripheral area

剑指offer_抽象建模能力

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

Self-research capability was recognized again, and Tencent Cloud Database was included in the Forrester Translytical report

Object Creation and Display Transformation

交换机和路由器技术-29-OSPF虚链路

Apache初体验

嵌入式分享合集33

Selenium自动化测试框架工作原理你明白了吗?
随机推荐
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/data/xxxx
2021 Network Planning Designer Afternoon Case Questions
交换机和路由器技术-32-命名ACL
【FPGA教程案例50】控制案例2——基于FPGA的PD控制器verilog实现
Development Tools Lecture 7: Alibaba Cloud Log Query and Analysis
Switches and routers technology - 24 - configure OSPF single area
交换机和路由器技术-27-OSPF路由重分发
[Note] Is the value of BatchSize the bigger the better?
Word2021 中的图片保存后就变模糊了
延长经济保险(jeecgboot)
K8s复习笔记7--Redis单机和Redis-cluster的K8S实现
About the pom.xml file
zabbix构建企业级监控告警平台
Do you understand how the Selenium automated testing framework works?
交换机和路由器技术-31-扩展ACL
K8s Review Notes 7--K8S Implementation of Redis Standalone and Redis-cluster
MQ框架应用比较
[QNX Hypervisor 2.2 User Manual] 10.16 vdev virtio-blk
How to read a paper
网络技能树