Skip to content

VSCode crash on start after packages updated on kubuntu 21.10 (development branch) #132455

Closed

Description

@zorn-v
# /usr/share/code/code 
[main 2021-09-06T12:15:47.061Z] update#setState idle
[2930:0906/221547.065651:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[2930:0906/221547.373376:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[2930:0906/221547.534308:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[3036:0906/221547.552065:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
[2930:0906/221547.640368:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[3040:0906/221547.648768:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
[2930:0906/221547.743235:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[3044:0906/221547.751366:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
[2930:0906/221547.839606:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[3048:0906/221547.843726:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled
[2930:0906/221547.952225:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[3052:0906/221547.955907:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled
[2930:0906/221548.067570:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[3056:0906/221548.071281:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled
[2930:0906/221548.175118:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[2930:0906/221548.175137:FATAL:gpu_data_manager_impl_private.cc(415)] GPU process isn't usable. Goodbye.
Server response: 
Server response: 
Недопустимая инструкция (стек памяти сброшен на диск)

Last message is "Unsupported instruction (stacktrace dumped to disk)"

Activity

  1. hadim commented on Sep 6, 2021

    @hadim

    Same here using Ubuntu 21.10 dev.

  2. hadim commented on Sep 6, 2021

    @hadim

    Traceback:

    $ code --verbose
    [main 2021-09-06T21:54:34.951Z] Starting VS Code
    [main 2021-09-06T21:54:34.951Z] from: /usr/share/code/resources/app
    [main 2021-09-06T21:54:34.951Z] args: {
      _: [],
      diff: false,
      add: false,
      goto: false,
      'new-window': false,
      'reuse-window': false,
      wait: false,
      help: false,
      'list-extensions': false,
      'show-versions': false,
      version: false,
      verbose: true,
      status: false,
      'prof-startup': false,
      'no-cached-data': false,
      'prof-v8-extensions': false,
      'disable-extensions': false,
      'disable-gpu': false,
      telemetry: false,
      debugRenderer: false,
      logExtensionHostCommunication: false,
      'skip-release-notes': false,
      'skip-welcome': false,
      'disable-telemetry': false,
      'disable-updates': false,
      'disable-keytar': false,
      'disable-workspace-trust': false,
      'disable-crash-reporter': false,
      'crash-reporter-id': '634bea06-2fc3-4a0c-aa5c-d7fb1ef5d397',
      'skip-add-to-recently-opened': false,
      'unity-launch': false,
      'open-url': false,
      'file-write': false,
      'file-chmod': false,
      'driver-verbose': false,
      force: false,
      'do-not-sync': false,
      trace: false,
      'force-user-env': false,
      'force-disable-user-env': false,
      'open-devtools': false,
      __sandbox: false,
      'no-proxy-server': false,
      'no-sandbox': false,
      nolazy: false,
      'force-renderer-accessibility': false,
      'ignore-certificate-errors': false,
      'allow-insecure-localhost': false,
      logsPath: '/home/hadim/.config/Code/logs/20210906T175434'
    }
    [main 2021-09-06T21:54:34.953Z] Resolving machine identifier...
    [main 2021-09-06T21:54:34.953Z] Resolved machine identifier: d2abc133a0442c638f626ba13c6747cc41ce11a92774dec98b2b99b81139aba3
    [main 2021-09-06T21:54:34.953Z] Main->SharedProcess#connect
    [main 2021-09-06T21:54:34.964Z] StorageMainService: creating global storage
    [main 2021-09-06T21:54:34.965Z] lifecycle (main): phase changed (value: 2)
    [main 2021-09-06T21:54:34.966Z] windowsManager#open
    [main 2021-09-06T21:54:34.967Z] windowsManager#open pathsToOpen [
      {
        workspace: { id: '80a64860979efd1fcf8717876136a349', uri: [g] },
        exists: true
      }
    ]
    [main 2021-09-06T21:54:34.969Z] IPC Object URL: Registered new channel vscode:006d9618-ae92-4209-a2b8-0c7aea3dcf59.
    [main 2021-09-06T21:54:34.969Z] window#validateWindowState: validating window state on 1 display(s) { mode: 1, x: 0, y: 102, width: 2289, height: 1288 }
    [main 2021-09-06T21:54:34.969Z] window#validateWindowState: 1 monitor working area { x: 0, y: 27, width: 2560, height: 1363 }
    [main 2021-09-06T21:54:34.969Z] window#ctor: using window state { mode: 1, x: 0, y: 102, width: 2289, height: 1288 }
    [main 2021-09-06T21:54:35.001Z] StorageMainService: creating workspace storage (80a64860979efd1fcf8717876136a349)
    [main 2021-09-06T21:54:35.002Z] windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 1, emptyToRestore: 0, emptyToOpen: 0)
    [main 2021-09-06T21:54:35.003Z] lifecycle (main): phase changed (value: 3)
    [main 2021-09-06T21:54:35.004Z] update#setState idle
    [main 2021-09-06T21:54:35.004Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
    [5021:0906/175435.037401:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
    [5021:0906/175435.037419:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 1 time(s)
    [main 2021-09-06T21:54:35.071Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
    [5021:0906/175435.189392:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
    [5021:0906/175435.189447:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 2 time(s)
    [5021:0906/175435.381836:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
    [5021:0906/175435.381850:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 3 time(s)
    [5097:0906/175435.393328:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
    [5021:0906/175435.480713:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
    [5021:0906/175435.480740:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 4 time(s)
    [5101:0906/175435.493576:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
    [5021:0906/175435.578542:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
    [5021:0906/175435.578606:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 5 time(s)
    [5105:0906/175435.593475:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
    [5021:0906/175435.717234:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
    [5021:0906/175435.717259:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 6 time(s)
    [5109:0906/175435.721236:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled
    [5021:0906/175435.817297:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
    [5021:0906/175435.817339:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 7 time(s)
    [5113:0906/175435.821641:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled
    [5021:0906/175435.904632:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
    [5021:0906/175435.904653:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 8 time(s)
    [5117:0906/175435.908288:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled
    [5021:0906/175436.000169:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
    [5021:0906/175436.000197:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 9 time(s)
    [5021:0906/175436.000206:FATAL:gpu_data_manager_impl_private.cc(415)] GPU process isn't usable. Goodbye.
    
    
  3. zorn-v commented on Sep 7, 2021

    @zorn-v
    Author

    Run with code --disable-gpu --disable-software-rasterizer as workaround

  4. hadim commented on Sep 7, 2021

    @hadim

    Any chance to use VSCode without disabling the GPU? Is it something that should be fixed on the VSCode side or Ubuntu side?

  5. added
    chromium
    gpu
    linux
    upstream
    info-needed
    on Sep 8, 2021
  6. zorn-v commented on Sep 8, 2021

    @zorn-v
    Author
  7. deepak1556 commented on Sep 9, 2021

    @deepak1556
    Collaborator

    Thanks for the logs, can you also confirm your systemd versions systemctl --version, wondering if you are hitting #132609

  8. zorn-v commented on Sep 9, 2021

    @zorn-v
    Author
    systemd 248 (248.3-1ubuntu3)
    +PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT +GNUTLS -OPENSSL +ACL +BLKID +CURL +ELFUTILS -FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP -LIBFDISK +PCRE2 -PWQUALITY -P11KIT -QRENCODE +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=hybrid
    
  9. 15 remaining items

  10. vscode-triage-bot commented on Sep 22, 2021

    @vscode-triage-bot

    This bug has been fixed in the latest release of VS Code Insiders!

    zorn-v, you can help us out by commenting /verified if things are now working as expected.

    If things still don't seem right, please ensure you're on version 1b9403c of Insiders (today's or later - you can use Help: About in the command palette to check), and leave a comment letting us know what isn't working as expected.

    Happy Coding!

  11. zorn-v commented on Sep 22, 2021

    @zorn-v
    Author

    If things still don't seem right, please ensure you're on version 1b9403c of Insiders

    In message above, Hadrien Mary (@hadim) use exacly that version and it is not working as expected.

  12. removed
    upstream-issue-fixed
    author-verification-requested
    insiders-released
    on Sep 22, 2021
  13. deepak1556 commented on Sep 22, 2021

    @deepak1556
    Collaborator

    Thanks for verifying, can you provide the following additional data to help debug further

    1. Please attach the crash report from latest insiders based on VSCode crash on start after packages updated on kubuntu 21.10 (development branch) #132455 (comment)
    2. Please attach the log output from code-insiders --verbose --enable-gpu-debugging
    3. Does the issue repro when you launch with --disable-gpu-sandbox ?
  14. added
    fixed-in-electron-14
    on Sep 22, 2021
  15. hadim commented on Sep 22, 2021

    @hadim
    1. Please attach the crash report from latest insiders based on VSCode crash on start after packages updated on kubuntu 21.10 (development branch) #132455 (comment)

    crash.zip

    • Please attach the log output from code-insiders --verbose --enable-gpu-debugging
    $ code-insiders --verbose --enable-gpu-debugging
    Warning: 'enable-gpu-debugging' is not in the list of known options, but still passed to Electron/Chromium.
    [main 2021-09-22T12:41:35.306Z] Starting VS Code
    [main 2021-09-22T12:41:35.307Z] from: /usr/share/code-insiders/resources/app
    [main 2021-09-22T12:41:35.307Z] args: {
      _: [],
      diff: false,
      add: false,
      goto: false,
      'new-window': false,
      'reuse-window': false,
      wait: false,
      help: false,
      'list-extensions': false,
      'show-versions': false,
      version: false,
      verbose: true,
      status: false,
      'prof-startup': false,
      'no-cached-data': false,
      'prof-v8-extensions': false,
      'disable-extensions': false,
      'disable-gpu': false,
      telemetry: false,
      debugRenderer: false,
      logExtensionHostCommunication: false,
      'skip-release-notes': false,
      'skip-welcome': false,
      'disable-telemetry': false,
      'disable-updates': false,
      'disable-keytar': false,
      'disable-workspace-trust': false,
      'disable-crash-reporter': false,
      'crash-reporter-id': '5cbd6415-6ff7-4d74-a2a5-2d5be895a0e1',
      'skip-add-to-recently-opened': false,
      'unity-launch': false,
      'open-url': false,
      'file-write': false,
      'file-chmod': false,
      'driver-verbose': false,
      force: false,
      'do-not-sync': false,
      trace: false,
      'force-user-env': false,
      'force-disable-user-env': false,
      'open-devtools': false,
      __sandbox: false,
      'no-proxy-server': false,
      'no-sandbox': false,
      nolazy: false,
      'force-renderer-accessibility': false,
      'ignore-certificate-errors': false,
      'allow-insecure-localhost': false,
      logsPath: '/home/hadim/.config/Code - Insiders/logs/20210922T084135'
    }
    [main 2021-09-22T12:41:35.308Z] Resolving machine identifier...
    [main 2021-09-22T12:41:35.308Z] Resolved machine identifier: d2abc133a0442c638f626ba13c6747cc41ce11a92774dec98b2b99b81139aba3
    [main 2021-09-22T12:41:35.309Z] Main->SharedProcess#connect
    [main 2021-09-22T12:41:35.317Z] StorageMainService: creating global storage
    [main 2021-09-22T12:41:35.318Z] lifecycle (main): phase changed (value: 2)
    [main 2021-09-22T12:41:35.319Z] windowsManager#open
    [main 2021-09-22T12:41:35.319Z] windowsManager#open pathsToOpen [
      {
        backupPath: '/home/hadim/.config/Code - Insiders/Backups/1632266998887',
        remoteAuthority: undefined
      }
    ]
    [main 2021-09-22T12:41:35.320Z] IPC Object URL: Registered new channel vscode:c486bd22-4d9c-434f-ba45-715200186835.
    [main 2021-09-22T12:41:35.321Z] window#validateWindowState: validating window state on 2 display(s) { mode: 1, x: 550, y: 217, width: 1024, height: 768 }
    [main 2021-09-22T12:41:35.321Z] window#validateWindowState: multi-monitor working area { x: 0, y: 27, width: 2560, height: 1363 }
    [main 2021-09-22T12:41:35.321Z] window#ctor: using window state { mode: 1, x: 550, y: 217, width: 1024, height: 768 }
    [main 2021-09-22T12:41:35.360Z] windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 0, emptyToRestore: 1, emptyToOpen: 0)
    [main 2021-09-22T12:41:35.361Z] lifecycle (main): phase changed (value: 3)
    [main 2021-09-22T12:41:35.362Z] update#setState idle
    [main 2021-09-22T12:41:35.362Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
    [9259:0922/084135.386123:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
    [9259:0922/084135.386142:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 1 time(s)
    [9259:0922/084135.585746:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
    [9259:0922/084135.585762:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 2 time(s)
    [9259:0922/084135.746237:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
    [9259:0922/084135.746259:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 3 time(s)
    [9337:0922/084135.757996:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
    [9259:0922/084135.881232:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
    [9259:0922/084135.881252:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 4 time(s)
    [9341:0922/084135.889835:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
    [9259:0922/084135.993059:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
    [9259:0922/084135.993081:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 5 time(s)
    [9345:0922/084136.000898:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
    [9259:0922/084136.096607:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
    [9259:0922/084136.096628:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 6 time(s)
    [9349:0922/084136.100686:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled
    [9259:0922/084136.182529:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
    [9259:0922/084136.182546:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 7 time(s)
    [9353:0922/084136.186664:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled
    [9259:0922/084136.275375:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
    [9259:0922/084136.275433:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 8 time(s)
    [9357:0922/084136.279006:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled
    [9259:0922/084136.359687:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
    [9259:0922/084136.359707:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 9 time(s)
    [9259:0922/084136.359717:FATAL:gpu_data_manager_impl_private.cc(415)] GPU process isn't usable. Goodbye.
    /dev/fd/3: No such file or directory
    Server response:
    /dev/fd/3: No such file or directory
    Server response:
    

    3. Does the issue repro when you launch with --disable-gpu-sandbox ?

    No I can't reproduce with that flag. Code works correctly.

  16. 3vi1 commented on Sep 22, 2021

    @3vi1

    I just tested and got the same results as hadlm: Same 159 exit codes and "GPU process isn't usable" s in the log when using --enable-gpu-debugging, whereas using --disable-gpu-sandbox causes it to work without crashing.

  17. zorn-v commented on Sep 22, 2021

    @zorn-v
    Author

    Run with code --disable-gpu --disable-software-rasterizer as workaround

    By the way, sometimes need to run it several times to run code without crash.
    With --disable-gpu-sandbox it run more stable, but I don't want to disable sandbox.

  18. deepak1556 commented on Sep 23, 2021

    @deepak1556
    Collaborator

    Thanks for the logs, the root issue has been narrowed down. Merging to #133593

  19. locked and limited conversation to collaborators on Nov 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

chromiumfixed-in-electron-14gpulinuxupstream

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions