Skip to content

App crashes on startup on macOS Monterey (Intel) — "undefined is not an object (evaluating 'xtermModule.Terminal')" #3110

Description

@easyandi

Describe the bug

The app crashes immediately on startup, before the editor UI loads. This began after updating from v5.0.5 (which has no Terminal feature and does not crash) to v5.1.24, and persists on 5.2.5 after a clean reinstall.

Reproduction

  1. Install Phoenix Code 5.1.24 or later on macOS Monterey (Intel).
  2. Launch the app.
  3. App crashes immediately with the above error, before the main window appears.

Expected behavior

App should start normally. If Terminal (xterm.js) can't initialize on this OS/architecture combination, it would be ideal if this failed gracefully rather than blocking the whole app from starting.

OS, Browser and Phoenix versions

  • Phoenix Code version: 5.2.5 (also reproduced on 5.1.24, a clean reinstall)
  • OS: macOS 12 Monterey, Intel
  • Install method: DMG from phcode.io

logs or debug stack trace if any

undefined is not an object (evaluating 'xtermModule.Terminal')
@phtauri://localhost/v5.2.5/brackets.js:1:1338124
execCb@phtauri://localhost/v5.2.5/thirdparty/requirejs/require.js:1:23875
check@phtauri://localhost/v5.2.5/thirdparty/requirejs/require.js:1:14639
@phtauri://localhost/v5.2.5/thirdparty/requirejs/require.js:1:18029
@phtauri://localhost/v5.2.5/thirdparty/requirejs/require.js:1:1825
@phtauri://localhost/v5.2.5/thirdparty/requirejs/require.js:1:18613
each@phtauri://localhost/v5.2.5/thirdparty/requirejs/require.js:1:1065
emit@phtauri://localhost/v5.2.5/thirdparty/requirejs/require.js:1:18579
check@phtauri://localhost/v5.2.5/thirdparty/requirejs/require.js:1:15437
enable@phtauri://localhost/v5.2.5/thirdparty/requirejs/require.js:1:18454
init@phtauri://localhost/v5.2.5/thirdparty/requirejs/require.js:1:13665
callGetModule@phtauri://localhost/v5.2.5/thirdparty/requirejs/require.js:1:11953
completeLoad@phtauri://localhost/v5.2.5/thirdparty/requirejs/require.js:1:22924
onScriptLoad@phtauri://localhost/v5.2.5/thirdparty/requirejs/require.js:1:24077
@phtauri://localhost/v5.2.5/thirdparty/bugsnag.min.js:1:31345

Additional context

Reverting to v5.0.5 (pre-Terminal feature) avoids the crash entirely.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions