Repository navigation
Closed
Labels
*duplicateIssue identified as a duplicate of another issue(s)bugIssue identified by VS Code Team member as probable bugterminal-persistenceRelating to process reconnection or process revive
Milestone
Description
I updated insider's, reloaded the window, and one of the terminals was not restored
2023-07-03 07:49:11.982 [info] Revived process, old id 1 -> new id 1
2023-07-03 07:49:11.986 [info] Revived process, old id 2 -> new id 2
2023-07-03 07:49:11.986 [info] Revived process, old id 3 -> new id 3
2023-07-03 07:49:11.987 [info] Revived process, old id 4 -> new id 4
2023-07-03 07:49:11.987 [info] Revived process, old id 5 -> new id 5
2023-07-03 07:49:11.999 [info] Expanding terminal instance, old id 3 -> new id 3
2023-07-03 07:49:12.000 [info] Expanding terminal instance, old id 2 -> new id 2
2023-07-03 07:49:12.000 [info] Expanding terminal instance, old id 1 -> new id 1
2023-07-03 07:49:12.000 [info] Expanding terminal instance, old id 3 -> new id undefined
2023-07-03 07:49:12.001 [info] Expanding terminal instance, old id 4 -> new id 4
2023-07-03 07:49:12.001 [info] Expanding terminal instance, old id 4 -> new id undefined
2023-07-03 07:49:12.001 [info] Expanding terminal instance, old id 5 -> new id 5
2023-07-03 07:49:16.139 [warning] Persistent process "3": Process had no disconnect runners but was an orphan
2023-07-03 07:49:16.139 [info] Persistent process reconnection "3"
2023-07-03 07:49:16.140 [warning] Persistent process "4": Process had no disconnect runners but was an orphan
2023-07-03 07:49:16.140 [info] Persistent process reconnection "4"
2023-07-03 07:49:16.140 [warning] Persistent process "2": Process had no disconnect runners but was an orphan
2023-07-03 07:49:16.141 [info] Persistent process reconnection "2"
2023-07-03 07:49:16.141 [warning] Persistent process "5": Process had no disconnect runners but was an orphan
2023-07-03 07:49:16.141 [info] Persistent process reconnection "5"
2023-07-03 07:49:16.142 [warning] Persistent process "1": Process had no disconnect runners but was an orphan
2023-07-03 07:49:16.142 [info] Persistent process reconnection "1"
2023-07-03 07:49:16.142 [warning] Persistent process "3": Process had no disconnect runners but was an orphan
2023-07-03 07:49:16.142 [info] Persistent process reconnection "3"
2023-07-03 07:49:16.143 [warning] Persistent process "4": Process had no disconnect runners but was an orphan
2023-07-03 07:49:16.143 [info] Persistent process reconnection "4"
2023-07-03 07:49:16.437 [info] Persistent process "4": Replaying 3669 chars and 1 size events
2023-07-03 07:49:16.455 [info] Persistent process "3": Replaying 129 chars and 1 size events
2023-07-03 07:49:16.464 [info] Persistent process "5": Replaying 4330 chars and 1 size events
2023-07-03 07:49:16.472 [info] Persistent process "2": Replaying 560 chars and 1 size events
2023-07-03 07:49:16.481 [info] Persistent process "4": Replaying 3669 chars and 1 size events
2023-07-03 07:49:16.506 [info] Persistent process "3": Replaying 129 chars and 1 size events
2023-07-03 07:49:16.512 [info] Persistent process "1": Replaying 241 chars and 1 size events
Metadata
Metadata
Assignees
Labels
*duplicateIssue identified as a duplicate of another issue(s)bugIssue identified by VS Code Team member as probable bugterminal-persistenceRelating to process reconnection or process revive
Activity
meganrogge commentedon Jul 3, 2023
reloaded the window again with trace log level and here are those
meganrogge commentedon Jul 3, 2023
it does receive the input though
Tyriar commentedon Jul 3, 2023
Could be related to #133542. This part is interesting how the instance is expanded twice for 3 and 4 🤔
meganrogge commentedon Jul 3, 2023
When
new id undefined, that must mean it's been deleted from the map. shouldn't we return ifrevivedPtyIdis undefined?vscode/src/vs/platform/terminal/node/ptyService.ts
Line 547 in 0ef9e9a
Tyriar commentedon Jul 3, 2023
No as this is shared between revive (ids differ) and reconnect (ids are the same).
Tyriar commentedon Jul 3, 2023
I think I've identified a problem, since revive can happen after startup (eg. open a new window with a folder), this could introduce conflicts in
_revivedPtyIdMap._revivedPtyIdMapshould include the workspace ID in its keyPrevent the same terminal being reconnected to twice
Tyriar commentedon Jul 3, 2023
Going to merge this into #133542