简体   繁体   English

对于 iOS WKWebView 和 Uno 2.4 上的 UInt32 错误,值太大或太小

[英]Value was either too large or too small for a UInt32 Error on iOS WKWebView & Uno 2.4

I have an Uno WebAssembly app at here , you can try it now.我在这里有一个 Uno WebAssembly 应用程序,你现在可以试试。 Button click events not fire and doing nothing sometimes both on iOS and iPadOS WKWebview. iOS 和 iPadOS WKWebview 上的按钮单击事件有时不会触发并且什么也不做。 They rarely work without problems.他们很少能毫无问题地工作。 Sometimes cleaning web cache from Settings / Safari / Advanced Settings is solves problem.有时从 Settings / Safari / Advanced Settings 清除 web 缓存可以解决问题。 Unfortunately, this error is coming up again soon.不幸的是,这个错误很快就会再次出现。

在此处输入图像描述

I have not any issue on desktop browser, the app running smoothly.我在桌面浏览器上没有任何问题,应用程序运行流畅。 I have iPhone X, iPad and iPhone 6. .我有 iPhone X、iPad 和 iPhone 6。 The app works rarely without problems on X. Seems not run on others.该应用程序很少在 X 上正常工作。似乎无法在其他人身上运行。 The WebAssembly log on iOS is here . iOS 上的 WebAssembly 日志在这里

Is it depends on device RAM size on Apple Device?是否取决于 Apple 设备上的设备 RAM 大小? The app runs just perfectly on Android WebView.该应用程序在 Android WebView 上完美运行。

Make sure to update to Uno 2.4.4 or later, which contains a fix for pointers management for Safari on iOS.确保更新到 Uno 2.4.4 或更高版本,其中包含针对 iOS 上的 Safari 的指针管理的修复。

Safari for iOS can return pointers being negative, which was causing trouble to the pointer management system in Uno. iOS 的 Safari 可以返回负指针,这给 Uno 中的指针管理系统带来了麻烦。 See this Pull Request for more information.有关更多信息,请参阅此拉取请求

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM