Search code examples
c#uwpwkwebviewuno-platformwinui

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. Button click events not fire and doing nothing sometimes both on iOS and iPadOS WKWebview. They rarely work without problems. Sometimes cleaning web cache from Settings / Safari / Advanced Settings is solves problem. Unfortunately, this error is coming up again soon.

enter image description here

I have not any issue on desktop browser, the app running smoothly. I have iPhone X, iPad and iPhone 6. . The app works rarely without problems on X. Seems not run on others. The WebAssembly log on iOS is here.

Is it depends on device RAM size on Apple Device ? The app runs just perfectly on Android WebView.


Solution

  • Make sure to update to Uno 2.4.4 or later, which contains a fix for pointers management for Safari on iOS.

    Safari for iOS can return pointers being negative, which was causing trouble to the pointer management system in Uno. See this Pull Request for more information.