Search Issue Tracker
Fixed in 2018.2.X
Fixed in 2018.1.X
Votes
0
Found in
2017.3.0f2
Issue ID
980524
Regression
No
[Profiler] File created with Profiler.logFile is not updated with profiled information until editor is closed or reopened
To reproduce:
1. Download and open attached "repro980524.zip" project.
2. Open "scene" Scene.
3. Open "TestProfiler.cs" script and set correct path to your profiler file to be saved.
4. Enter Play mode.
5. Notice the console. Soon after start, Log should appear saying that Profiling has started.
6. Wait till Profiling stops. Log should appear in the console saying that it stopped.
7. Locate "abc.data" file which was created by profiler in your specified directory in step 2.
8. Try to open it without closing unity editor.
Expected result: File is opened with selected application/code editor or it can be loaded in the unity profiler without closing or reopening the editor.
Actual result: File fails to open. Error is thrown that file is opened by another application.
Workaround: Close or reopen Unity editor. Now file can be opened with a selected text/code editor.
Reproduced with: 2018.1.0b1, 2017.3.0p1, 2017.2.1p1, 2017.1.3f1, 5.6.5f1.
Notes: Notice that before closing the editor, abc.data file size is 0. After trying to open it, file size is updated but it still cannot be viewed with any application. For opening the file Notepad++ and "VS code" text/code editors were used. Same issue happened when running the project with standalone player built. Created file cannot be opened while a game is running.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment