Search Issue Tracker

Fixed

Fixed in 1.1.0-exp.3

Votes

0

Found in [Package]

1.1.0-exp.1

Issue ID

ULOG-17

Regression

Yes

[Unity Logging] Editor freezes when logging messages that contain curly brackets

Package: Unity Logging

-

Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Scenes/SampleScene.unity” Scene
3. Enter the Play Mode

Expected result: The error message "Some message with brackets {}" is present and the Editor continues to run
Actual result: Error message “FormatException: Input string was not in a correct format.“ is present and the Editor freezes

Reproducible with: 1.1.0-exp.1 (2022.3.11f1, 2023.1.16f1, 2023.2.0b13, 2023.3.0a9)
Not reproducible with: 1.0.16 (2023.3.0a9)
Could not test with: 0.51.1-preview.21 (2021.3.31f1) (Library\PackageCache\com.unity.collections@2.3.0-exp.1\Unity.Collections\FixedList.gen.cs(23,13): error CS0234: The type or namespace name 'Properties' does not exist in the namespace 'Unity')

Reproducible on: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested

Note:
- If double curly brackets are required for the correct behavior, the Error message “FormatException: Input string was not in a correct format.“ could mention that

  1. Resolution Note (fix version 1.1.0-exp.3):

    Issue was caused by attempting to format log messages that were already formatted by the logging package. This caused issues when the formatted log message contained braces.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.