Search Issue Tracker

Won't Fix

Votes

0

Found in

2018.2.11f1

Issue ID

1091562

Regression

No

[macOS][VSCode] Unity crashed when ending debugging with VSCode: [Performance] ApplicationTickTimer

Themes

-

Steps:
1. Open attached project ("crash-small.zip")
2. Open scene "MainView"
3. Open script "Bluetooth.cs" with VSCode
4. Add a breakpoint in Bluetooth.cs line 285: void Start()
5. Attach to Unity and Play
6. Enter Play mode in Unity
7. Press Continue in VSCode
8. Switch back to Unity. If it doesn't crash repeat steps 5-8

Result: Unity crashes. No bug reporter is launched.

Reproduced with: 2017.4.14f1, 2018.1.9f2, 2018.2.14f1, 2018.3.0b8, 2019.1.0a6.

Stack Trace:
[Performance] ApplicationTickTimer : 4424 samples, Peak. 2.44 s (1316.4x), Avg. 1.85 ms, Total. 8.197 s (6.4%)
[Performance] VCProvider : 4425 samples, Peak. 32.9 us (27.5x), Avg. 1.20 us, Total. 5.298 ms (0.0%)
[Performance] ReloadAllUsedAssemblies : 198 samples, Peak. 761 us (48.9x), Avg. 15.5 us, Total. 3.079 ms (0.0%)
[Performance] Internal_SwitchSkin : 4425 samples, Peak. 46.0 us (449.6x), Avg. 102 ns, Total. 452.9 us (0.0%)
[Performance] UnityConnect : 613 samples, Peak. 84.8 ms (503.2x), Avg. 169 us, Total. 103.3 ms (0.1%)
[Performance] VerifyUpdate : 4425 samples, Peak. 42.0 us (164.8x), Avg. 255 ns, Total. 1.126 ms (0.0%)
[Performance] Collab : 613 samples, Peak. 547 us (174.5x), Avg. 3.14 us, Total. 1.922 ms (0.0%)
[Performance] CEF : 1051 samples, Peak. 6.89 ms (25.9x), Avg. 266 us, Total. 279.3 ms (0.2%)
[Performance] CurlRequestCheck : 345 samples, Peak. 111 us (55.1x), Avg. 2.01 us, Total. 694.9 us (0.0%)
[Performance] HubClient : 4425 samples, Peak. 26.0 us (53.6x), Avg. 484 ns, Total. 2.144 ms (0.0%)
[Performance] SceneBackgroundTask : 256 samples, Peak. 1.07 us (4.2x), Avg. 254 ns, Total. 64.97 us (0.0%)
[Performance] DoScheduler : 1698 samples, Peak. 2.03 ms (135.7x), Avg. 15.0 us, Total. 25.40 ms (0.0%)
[Performance] HandlePlayerUpdates : 613 samples, Peak. 367 us (4.1x), Avg. 90.6 us, Total. 55.52 ms (0.0%)
[Performance] GlobalCallbacks : 4425 samples, Peak. 25.5 ms (1575.8x), Avg. 16.2 us, Total. 71.74 ms (0.1%)
[Performance] PreloadManager : 4380 samples, Peak. 1.72 ms (151.3x), Avg. 11.4 us, Total. 49.86 ms (0.0%)
[Performance] SceneTracker : 4425 samples, Peak. 53.1 ms (179.7x), Avg. 295 us, Total. 1.307 s (1.0%)
[Performance] UpdateConsoleLog : 108 samples, Peak. 195 us (35.7x), Avg. 5.46 us, Total. 589.8 us (0.0%)
[Performance] ChangeLayoutIfNeeded : 4424 samples, Peak. 26.9 us (271.9x), Avg. 99.1 ns, Total. 438.3 us (0.0%)
[Performance] RepaintAll : 275 samples, Peak. 1.80 s (275.0x), Avg. 6.56 ms, Total. 1.804 s (1.4%)
[Performance] RepaintAllProfilerWindows : 4150 samples, Peak. 2.42 ms (2322.1x), Avg. 1.04 us, Total. 4.320 ms (0.0%)
[Performance] UpdateConsoleLog : 90 samples, Peak. 182 us (22.8x), Avg. 7.99 us, Total. 719.1 us (0.0%)
[Performance] UpdatePackageImport : 90 samples, Peak. 5.01 us (8.7x), Avg. 574 ns, Total. 51.62 us (0.0%)
[Performance] HierarchyWindowTick : 119 samples, Peak. 2.01 ms (63.1x), Avg. 31.9 us, Total. 3.799 ms (0.0%)
[Performance] UpdateInspectorMonoBehaviours : 119 samples, Peak. 2.47 ms (7.1x), Avg. 349 us, Total. 41.49 ms (0.0%)
[Performance] UpdateTooltip : 339 samples, Peak. 10.2 ms (103.6x), Avg. 98.1 us, Total. 33.26 ms (0.0%)
[Performance] RequestRepaintForPanels : 4150 samples, Peak. 333 us (74.8x), Avg. 4.45 us, Total. 18.47 ms (0.0%)
[Performance] UpdateSceneIfNeeded : 4150 samples, Peak. 280 ms (687.7x), Avg. 408 us, Total. 1.691 s (1.3%)
[Performance] UpdateVideoTextures : 4105 samples, Peak. 26.0 us (60.3x), Avg. 431 ns, Total. 1.770 ms (0.0%)
[Performance] Video : 4150 samples, Peak. 34.0 us (31.3x), Avg. 1.08 us, Total. 4.499 ms (0.0%)
[Performance] RequestRepaintForPanels : 4150 samples, Peak. 37.9 us (25.0x), Avg. 1.51 us, Total. 6.282 ms (0.0%)

VSCode version:
Visual Studio Community 2017 for Mac
Version 7.6.10 (build 27)

Note: not reproducible on Windows.

  1. Resolution Note:

    This particular case has been investigated thoroughly and we have decided, in the interests of protecting the stability and features of Unity for users that rely upon the affected versions, to not address this fix for the time being. We understand that this will cause problems for some users, and so may address in a future version.

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.