Created an application for android. In general, it works stably, but one of the functions causes the application to crash. This function is a list of country and region names in different languages. About 600 lines. They are output to objects with the Text component via GetComponent().text = . When I output these lines in Latin or Cyrillic - everything is fine. But if I try to output in Chinese characters, it crashes.
Moreover, if i output not 600 lines, but 50, then the crash does not occur. But already at the output of 100 - the application freezes for 2-3 seconds and crashes. For these 600 lines, 246 unique characters are used. However, everything works fine on the PC. The crash happens only on the phone itself.
I also looked through the adb logcat logs of what is happening on the phone. But I’m not very good at them. I just realized that the function of assigning the corresponding text to the Text components works from beginning to end. And quite quickly. And then a 2-3 second freeze and crash. But I did not understand why exactly the crash occurs in the logs. What could be the problem? It seems that the phone cannot exactly draw the components with hieroglyphs.
Can you share the logs ? Also which Unity version is this happening with ?
Unity 2020.3.32f1
In the log, what happens immediately after the launch of this function.
Search is Debug.Log before of the function call.
Unity Function Start respectively at the beginning of the function execution.
Unity Function End after the function is executed.
7998504–1028307–log.txt (156 KB)
Your log doesn’t contain any messages with crash. Could you try filtering by package process id? There should be a stacktrace if there’s a crash
I didn’t really understand what needs to be done, but I made a test project that repeats this problem.
There are 193 countries data in this scene. They are displayed in a scrollable list after pressing the Start button. When outputting in Latin and Cyrillic, no problems arise. When outputting in Chinese characters, the speed of creating a list slows down sharply and somewhere at 140 positions my application simply closes after 3-4 seconds of waiting. In the drop-down menu, you can select the alphabet, and the slider can adjust the number of displayed countries. Checked on two different phones with similar characteristics.
7999008–1028382–Crash-Test.unitypackage (13.4 KB)
Could you submit a bug report - Unity QA: Building quality with passion with repro attached, so Unity QA can look at it?
Thank you
I submitted a report via Help - Report a Bug on this project.