Search Issue Tracker
Fixed in 2021.2.X
Votes
0
Found in
Issue ID
1314163
Regression
No
IL2CPP doesn't properly handle invalid surrogate pairs causing crash
TextMeshPro accepts surrogate pair characters (e.g. emojis), however it doesn't properly handle them causing a crash within the IL2CPP marshaller. This impacts Universal Windows Platform apps when using the TouchScreenKeyboard, e.g. on the HoloLens device, but can be reproed on Windows desktop and may occur on other IL2CPP platforms as well.
Steps:
1. Open the attached Unity project
2. Switch to the Universal Windows Platform (UWP/WSA)
3. Build and Run the app
4. Select the TMP InputField in the bottom-right corner of the window
5. Open the Windows On-Screen keyboard (may need to enable it first in Settings)
6. In the On-Screen keyboard, click the "smiling face"; switches to the "emoji" panel
7. Click on an emoji from the keyboard to enter it into the TMP InputField
Expected: Placeholder characters like "boxes" or '?' are displayed in TMP (doesn't support rendering emoji characters)
Actual: The app hard crashes
NOTE: This bug might impact other platforms in addition to UWP, but it requires a combination of TouchScreenKeyboard input, surrogate pair character input, and IL2CPP back-end
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Editor crashes on StoredGraphicsBuffer::GetGfxBufferID when VFX Graph property is modified during Play Mode and Application.targetFrameRate is used to limit FPS
- Crash on NVAPI_Thunk when changing Player resolution while HDR display is used and Direct3D12 is set as the graphics API
- Only one out of multiple cameras is shown in the Play Mode while HDR display is used and Direct3D12 is set as the graphics API
- The "Paste Component as New" option is incorrectly displayed as active despite the action being prohibited
- "TLS Allocator ALLOC_TEMP_TLS" errors are thrown when unsuccessfully importing an FBX file
Add comment