Skip to content

[Linux][Debian 13] ChatGPT Desktop 26.908.31748 startup-fatal “ChatGPT hit a snag”; renderer AppRoutes TypeError: n is not a function #44785

Closed

Description

@fslurrehman

What version of the Codex App are you using (From “About Codex” dialog)?

ChatGPT Desktop Linux package: 26.908.31748 Bundled app-server reported at startup: 0.154.0-alpha.6.1 The installed package and the current OpenAI stable Debian repository both advertise 26.908.31748. The app also selects/downloads Codex primary runtime 26.909.12148.

What subscription do you have?

Paid ChatGPT plan. Exact account tier omitted from the public report because it does not appear relevant to reproduction.

What platform is your computer?

  • Debian GNU/Linux 13 (trixie) - x86_64 / amd64 - KDE Plasma desktop - Installed from OpenAI's official Linux Debian repository

What issue are you seeing?

The official ChatGPT Linux desktop app fails during startup and displays:

ChatGPT hit a snag
Something went wrong. Try again to continue.

The web version of ChatGPT works normally on the same machine/account/network.

The local bundled Codex app-server starts successfully, the initialization handshake succeeds, and the app-server reaches connected. The failure then occurs in the Electron/React renderer.

Key log sequence:

[AppServerConnection] Current reported app-server version:
currentVersion=0.154.0-alpha.6.1

[AppServerConnection] initialize_handshake_result
outcome=success transportKind=stdio

[AppServerConnection] Codex CLI initialized

[AppServerConnection] app_server_connection.state_changed
next=connected

Immediately afterward:

[electron-message-handler] Initial route prefetch failed; rendering will retry
errorMessage="n is not a function"
errorName=Error
route=primary
windowType=electron

The renderer also reports:

Matched leaf route at location "/" does not have an element or Component.
This means it will render an <Outlet /> with a null value by default
resulting in an "empty" page.

The fatal renderer error is then caught by the application error boundary:

Electron renderer console [error]
TypeError: n is not a function

[electron-message-handler] error boundary
errorMessage="n is not a function"
errorName=Error
name=AppRoutes

This corresponds to the visible “ChatGPT hit a snag” screen.

A KDE System Settings → Shortcuts window also sometimes opens during startup and shows two entries such as:

ChatGPT shortcut: electron-accelerator-6291776:
No active shortcuts

This appears incidental rather than causal, because the renderer failure is independently reproduced with clean app state.

What steps can reproduce the bug?

Normal launch

  1. Install the current stable ChatGPT Linux package from OpenAI's Debian repository.
  2. Launch chatgpt.
  3. The window opens but then displays “ChatGPT hit a snag”.
  4. The renderer logs TypeError: n is not a function with name=AppRoutes.

Reinstall does not help

sudo apt update
sudo apt-get install --reinstall chatgpt
pkill -fi chatgpt
chatgpt

The same startup-fatal screen occurs.

Clean Electron profile + clean Codex home also reproduces

pkill -fi chatgpt

rm -rf /tmp/chatgpt-clean-profile
rm -rf /tmp/codex-clean
mkdir -p /tmp/codex-clean

CODEX_HOME=/tmp/codex-clean \
chatgpt --user-data-dir=/tmp/chatgpt-clean-profile

The same failure occurs.

Disabling apps/plugins also reproduces

pkill -fi chatgpt

rm -rf /tmp/chatgpt-noplugins
rm -rf /tmp/codex-noplugins
mkdir -p /tmp/codex-noplugins

cat > /tmp/codex-noplugins/config.toml <<'EOF'
[features]
apps = false
plugins = false
EOF

CODEX_HOME=/tmp/codex-noplugins \
chatgpt --user-data-dir=/tmp/chatgpt-noplugins

Even with a fresh profile and both features disabled, startup still fails with:

Initial route prefetch failed; rendering will retry
errorMessage="n is not a function"

followed by:

TypeError: n is not a function
name=AppRoutes

The fatal renderer failure occurs before the later bundled-plugin reconciliation, so plugin installation does not appear to be the primary trigger.

Package verification

dpkg-query -W -f='${Version}\n' chatgpt

returns:

26.908.31748

The OpenAI stable Debian repository also advertises:

26.908.31748

and:

dpkg -V chatgpt

produces no output.

What is the expected behavior?

The Linux desktop application should render its normal home/sign-in interface after the app-server initializes successfully.

A frontend routing/rendering exception should not replace the application with the fatal “ChatGPT hit a snag” screen.

Additional information

Confirmed during troubleshooting:

  • ChatGPT works normally in the browser.
  • Reinstalling the official .deb does not change the behavior.
  • dpkg -V chatgpt reports no modified/corrupt tracked package files.
  • A completely fresh Electron user-data directory reproduces the failure.
  • A completely fresh CODEX_HOME reproduces the failure.
  • Explicitly disabling both apps and plugins still reproduces the same renderer exception.
  • The bundled app-server itself initializes successfully and reaches connected; the observed startup-fatal failure is in the renderer/UI path.
  • The app currently selects Codex primary runtime 26.909.12148 while the stable desktop package remains 26.908.31748. This may be normal independent runtime rollout behavior; I am not asserting that the version difference is causal.
  • During another clean-profile run, a later bundled-plugin reconciliation produced plugin 'sites' was not found in marketplace 'openai-bundled', but the no-plugins reproduction shows the AppRoutes renderer failure occurs independently and earlier.

Possibly related but not exact duplicates:

Image

run.log

Activity

  1. added
    app
    on Sep 11, 2026
  2. added
    bug
    on Sep 11, 2026
  3. matkielesinski-cmd commented on Sep 11, 2026

    @matkielesinski-cmd

    Ubuntu 24.04.5 confirmation and verified rollback

    I reproduced this exact issue after upgrading the official AMD64 DEB from 26.903.71938 to 26.908.31748.

    Environment:

    • Ubuntu 24.04.5 LTS, kernel 6.8.0-139-generic
    • KDE Plasma 5.27.12, X11, amd64
    • ChatGPT Desktop 26.908.31748 (build 8720)
    • bundled app-server 0.154.0-alpha.6.1
    • primary runtime 26.909.12148

    Observed after the upgrade:

    Initial route prefetch failed; rendering will retry errorMessage="n is not a function"
    TypeError: n is not a function
    error boundary ... name=AppRoutes ... errorMessage="n is not a function"
    

    The error occurred on two launches/activations. A controlled full quit and restart initially loaded the primary window successfully, but the same TypeError then occurred in the hidden avatarOverlay renderer. The app-server initialization and account lookup both succeeded, dpkg -V chatgpt reported no modified/missing package files, and there was no OOM, disk, GPU-process or auth failure.

    I then downgraded only the application package to the cached official 26.903.71938 DEB without clearing the profile. On that version, both the primary renderer and avatarOverlay mounted their routes successfully. Two subsequent launcher activations did not reproduce the TypeError or AppRoutes error. The existing profile/state remained valid and its key project/thread structure counts were unchanged.

    This confirms a regression in 26.908.31748; clearing the user profile was not required. The package is temporarily held locally to prevent the broken build from being reinstalled while this issue is open.

  4. UM-PT commented on Sep 11, 2026

    @UM-PT

    I can reproduce the same issue on a different Linux/CPU platform.

    Environment:

    • ChatGPT Desktop: 26.908.31748
    • Ubuntu 24.04.5 LTS
    • Linux 6.17.0-1032-nvidia
    • aarch64 / ARM64
    • NVIDIA-based ASUS GX10
    • ChatGPT Plus

    Observed renderer failure is the same:

    TypeError: n is not a function
    name=AppRoutes
    app://-/assets/app-initial-97cc141651bb.js:6182

    Immediately before the failure I also get:

    Matched leaf route at location "/" does not have an element or Component.
    This means it will render an with a null value by default resulting in an "empty" page.

    I also reproduce the repeated:

    [install-primary-runtime] primary_runtime_update_poll_failed
    Failed to download primary runtime manifest (404).

    Isolation tests performed:

    • fresh Electron/Chromium --user-data-dir
    • fresh CODEX_HOME
    • official launcher restored
    • dpkg -V chatgpt reports no modified package files
    • installed/candidate version both 26.908.31748
    • current OpenAI APT repository offers only 26.908.31748

    The failure still reproduces with both a fresh user-data-dir and a fresh CODEX_HOME.

    This suggests the issue is not limited to Debian/x86_64 and also affects Ubuntu 24.04 on ARM64/aarch64.

  5. hmusamaofficial commented on Sep 11, 2026

    @hmusamaofficial

    I can reproduce the same startup-fatal issue on Ubuntu 24.04 LTS (x86_64).

    • ChatGPT Linux package: 26.908.31748
    • Installed through the official OpenAI Debian/Ubuntu repository
    • sudo apt update && sudo apt install --only-upgrade chatgpt reports that this is already the newest version.
    • The app opens directly to: “ChatGPT hit a snag — Something went wrong. Try again to continue.”
    • ChatGPT works normally in the web browser on the same account and network.

    Relevant desktop logs:

    [electron-message-handler] Initial route prefetch failed; rendering will retry
    errorMessage="n is not a function"
    route=primary
    

    followed by:

    [electron-message-handler] error boundary
    errorMessage="n is not a function"
    name=AppRoutes
    

    I fully terminated ChatGPT and moved its local ~/.config/ChatGPT / ~/.cache/ChatGPT data to backups so it launched with fresh local state. The same fatal screen and AppRoutes error still occurred.

    This appears to be the same renderer/UI startup failure, not an account, network, or package-update issue.

  6. alex9assassin4 commented on Sep 11, 2026

    @alex9assassin4

    Additional Raspberry Pi 500 / Debian ARM64 / Labwc confirmation, with diagnostics in #44818 (closing that report as a duplicate).

    Package 26.908.31748 produces TypeError: n is not a function, name=AppRoutes, at app://-/assets/app-initial-97cc141651bb.js:6182. The local UI remains on “ChatGPT hit a snag” while remote conversation and execution on the affected machine remain usable. We also observed primary_runtime_update_poll_failed with a manifest 404; its relationship to the renderer failure is unconfirmed.

    Hard reload, full relaunch, clearing only rebuildable Chromium Cache/Code Cache, and an existing-task deep link did not recover the interface. dpkg -V chatgpt passed. This extends the matching reports to Raspberry Pi hardware. Rollback has not yet been tested on this machine.

  7. alex9assassin4 commented on Sep 11, 2026

    @alex9assassin4

    Follow-up to the Raspberry Pi 500 ARM64 report (#44818): rollback to the cached official 26.903.71938 package restored the local UI. The user confirmed the interface is working after a full relaunch, and dpkg -V chatgpt passed. The existing profile and sign-in were preserved; no additional cache/profile reset was performed for the rollback.

    The captured post-rollback startup log contains zero occurrences of TypeError: n is not a function or name=AppRoutes. It still contains one primary_runtime_update_poll_failed occurrence, despite the working UI. Thus the updater 404 alone is not sufficient to produce the fatal interface failure in this observation.

    This provides additional rollback evidence on Debian ARM64 / Labwc for a regression in 26.908.31748. It is a successful startup and user confirmation, not a long-duration stability test.

  8. eantyshev commented on Sep 11, 2026

    @eantyshev

    Ubuntu 24.04.5 / X11 / amd64 confirmation on the newer ChatGPT Desktop 26.908.40401.

    The failure signature is identical:

    Initial route prefetch failed; rendering will retry
    errorMessage="n is not a function"
    TypeError: n is not a function
    name=AppRoutes
    

    The app-server 0.154.0-alpha.6.2 initializes and reaches connected, while the primary renderer remains visible/focused but enters the AppRoutes error boundary. There are no Crashpad dumps.

    A fresh Electron user-data directory reproduces the failure. A side-by-side run of cached 26.901.31953 with a fresh user-data directory, on the same machine and using the same account/config, proceeds into the normal thread UI without the exception. The failure in 26.908.40401 occurs before account/config responses complete and before bundled-plugin reconciliation.

    This confirms that the Linux renderer regression persists in 26.908.40401 and is not caused by Chromium profile state, bundled plugins, GPU startup, or a native crash.

    Platform output: Linux 6.8.0-94-generic x86_64 x86_64

  9. UsmanTariq2 commented on Sep 11, 2026

    @UsmanTariq2

    Same issue. cannot open the app at all.

  10. Migueldos2 commented on Sep 11, 2026

    @Migueldos2

    Confirming the same regression on Ubuntu 26.04.1 LTS x86_64 with ChatGPT Desktop 26.908.40401 and kernel 7.0.0-31-generic.

    Environment: XFCE over XRDP/X11.

    The application window opens and the local app-server connects successfully via stdio. Account lookup also succeeds with authenticatedAccountPresent=true and result=succeeded.

    The primary renderer then fails consistently with:

    Initial route prefetch failed; rendering will retry

    TypeError: n is not a function

    name=AppRoutes

    The issue persists after:

    • restarting the application;
    • rebooting the operating system;
    • recreating the complete Electron user-data directory;
    • launching with a clean, complete X11/XDG environment;
    • updating all Ubuntu packages.

    The official OpenAI APT repository currently offers 26.908.40401 as the latest and only available version. Codex CLI and the bundled app-server continue to work normally; only the desktop renderer is unusable.

    A screenshot of the error screen is available.

    Image
  11. yuzhu-oai commented on Sep 11, 2026

    @yuzhu-oai
    Contributor

    Fixed

  12. fslurrehman commented on Sep 12, 2026

    @fslurrehman
    Author

    Resolved in Version 26.908.40834, Released Sep 11, 2026

  13. UsmanTariq2 commented on Sep 12, 2026

    @UsmanTariq2

    Yes, resolved in above mentioned version by @fslurrehman

  14. titaniumjones commented on Sep 20, 2026

    @titaniumjones

    Still reproducible for me on a newer Linux build.

    Platform

    • Linux Mint 22.3 (Zena)
    • Ubuntu base: Noble 24.04
    • amd64 / x86_64
    • ChatGPT package: 26.908.40401
    • Installed using:
    sudo apt install ./chatgpt_amd64.deb
    

    The application launches but immediately shows:

    ChatGPT hit a snag
    

    Neither Try again nor Update ChatGPT resolves it.

    The backend appears to initialise successfully:

    [AppServerConnection] Transport start success connectionId=1 hostId=local transport=stdio
    [AppServerConnection] Codex CLI initialized
    [AppServerConnection] app_server_connection.state_changed ... next=connected
    

    The renderer then fails with:

    [electron-message-handler] Initial route prefetch failed; rendering will retry
    errorMessage="n is not a function"
    errorName=Error
    route=primary
    

    followed by:

    Electron renderer console [error] TypeError: n is not a function
    

    and the error boundary reports:

    errorMessage="n is not a function"
    errorName=Error
    name=AppRoutes
    

    The failure is reproducible after fully terminating and restarting the application.

    The browser version of ChatGPT works normally on the same machine/network.

    I’m adding this because this issue was previously marked resolved, but the same AppRoutes renderer failure is still present in package version 26.908.40401.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Linuxappbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions