-
This bug has puzzled me for a long time. I spent more than ten days and couldn't find the cause of the problem. I tried everything I could think of but failed. This bug only has to do with the ui of the first page. If the first page contains only system controls, it will always work correctly. This bug exists on both Android and iOS. To reproduce the bug, I created an empty project and added the original files to the project one by one, and the app worked fine. When a certain number of files are added, the application suddenly starts crashing, but not particularly frequently. As the number of files increases, crashes become more frequent. The output is different every time on android, but each time the following is included: The full output on Android The full output on iOS It seems to be a deadlock caused by multithreading. This can be caused when loading the style of custom controls. I upload the project for debugging. Please delete the include of the following file to avoid build errors:
Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 15 replies
-
Thanks for the report. Could you also upload the logs for the android and iOS devices? There may be some logging that could be useful. It also looks like there's no Uno logging available in your logs, you'll likely need to validate that the loggers configuration is appropriate (in app.xaml.cs, if you use the default template). |
Beta Was this translation helpful? Give feedback.
-
I need a multi-layer UI interface, so the root element is On android, just add a line of
But there are always different errors on ios, such as:
It took me a few more days and still couldn't fix it. The app crashes as soon as it starts and I can't continue working now. |
Beta Was this translation helpful? Give feedback.
-
The VS Output window gives accurate bug locations after upgrading to VS17.3 Stable.
It ends up being caused by calling the The I looked at the source code and didn't generate this code when it was in the release state. I tested it in the release state and never got this bug. I did the following:
This will allow me to launch the app normally. But it is not the fundamental solution. This error occurs after upgrading .NET 6.0. It exists on both Android and iOS. And it only appears when there are a lot of bindable types. My I don't know how to circumvent this bug. @jeromelaban Please help me, thank you very much! |
Beta Was this translation helpful? Give feedback.
I need a multi-layer UI interface, so the root element is
Grid
.MainWin.Content = RootGrid;
And th frame is added dynamically after window activation. This may be the problem.
On android, just add a line of
new Frame().Navigate(typeof(Page));
at the beginning and everything works fine. Even if the frame is not placed in the visual tree. I used this method to temporarily fix the bug on android.