当前位置:网站首页>Unity WebGL RuntimeError: integer overflow
Unity WebGL RuntimeError: integer overflow
2022-08-11 05:02:00 【This is nine】
I found an integer overflow problem today while developing a web version project.
An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:
RuntimeError: integer overflow

A closer look is that there is a problem with WebAssembly instantiation.So I checked the packaged settings.
Let's take a look at WebAssembly in the packaging settingsArithmetic Exceptions
Contains an enumeration of different capture modes for WebAssembly code.
This enumeration is used in the WebGL platform to define the capture types used when performing arithmetic operations in WebAssembly code.
| throw | WebAssembly code rounds very large floating-point numbers to int when dividing by zeroThrows an exception in other cases. |
| ignore | This mode works by limiting floating point values to a reasonable range when performing arithmetic operationsAvoid pitfalls. |
Set to Ignore to ignore browser exception errors.
In this way, the error pop-up window will not pop up on the browser side and affect the program running logic.

边栏推荐
猜你喜欢

Switch and Router Technology - 36-Port Mirroring

延长经济保险(jeecgboot)

C语言题解:谁是凶手!

交换机和路由器技术-35-NAT转PAT

Jetson Orin platform 4-16 channel GMSL2/GSML1 camera acquisition kit recommended

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

Paper Notes: BBN: Bilateral-Branch Network with Cumulative Learning for Long-Tailed Visual Recognition

交换机和路由器技术-36-端口镜像

交换机和路由器技术-26-OSPF末梢区域配置

交换机和路由器技术-34-动态NAT
随机推荐
Zabbix builds enterprise-level monitoring and alarm platform
ALSA音频架构 -- snd_pcm_open函数分析
用白嫖的Adobe正版软件,减少应届毕业生的慢就业、不就业等现象
Research on a Consensus Mechanism-Based Anti-Runaway Scheme for Digital Trunking Terminals
Jetson Orin platform 4-16 channel GMSL2/GSML1 camera acquisition kit recommended
Switch and Router Technology-27-OSPF Route Redistribution
论文笔记:BBN: Bilateral-Branch Network with Cumulative Learningfor Long-Tailed Visual Recognition
4 模块三:文献阅读与研究方法
Bubble sort and heap sort
Switch and Router Technology-33-Static NAT
交换机和路由器技术-30-标准ACL
form表单提交数据库中文变成问号
在 关闭页面/卸载(unload)文档 之前向服务器发送请求
[Web3 series development tutorial - create your first NFT (9)] How to view your NFT in the mobile wallet
Switches and routers technology - 24 - configure OSPF single area
Listen to pull out U disk inserted into the message, U disk drive
IP-Guard如何禁止运行U盘程序
Redis: Solve the problem of modifying the same key with distributed high concurrency
Application of Identification Cryptography in IMS Network
剑指offer_抽象建模能力