Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux - startup crash due to reading properties of undefined getDesktopTTI #204

Closed
Moire9 opened this issue Jan 4, 2025 · 1 comment · Fixed by #205
Closed

Linux - startup crash due to reading properties of undefined getDesktopTTI #204

Moire9 opened this issue Jan 4, 2025 · 1 comment · Fixed by #205

Comments

@Moire9
Copy link

Moire9 commented Jan 4, 2025

Updated to Discord Development 0.0.61, and now OpenAsar crashes on startup. Behavior does not occur without OpenAsar or with Shelter.

Cause:

(node:29078) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of undefined (reading 'getDesktopTTI')
    at launchMainAppWindow (/home/sir/.config/discorddevelopment/0.0.61/modules/discord_desktop_core/core.asar/app/mainScreen.js:344:31)
    at Object.init (/home/sir/.config/discorddevelopment/0.0.61/modules/discord_desktop_core/core.asar/app/mainScreen.js:931:3)
    at Object.startup (/home/sir/.config/discorddevelopment/0.0.61/modules/discord_desktop_core/core.asar/app/index.js:91:14)
    at startCore (/opt/discord-development/resources/app.asar/bootstrap.js:1:1561)
    at EventEmitter.<anonymous> (/opt/discord-development/resources/app.asar/bootstrap.js:1:2693)
    at Object.onceWrapper (node:events:632:28)
    at EventEmitter.emit (node:events:518:28)
    at launchMain (/opt/discord-development/resources/app.asar/splash/index.js:1:834)
    at EventEmitter.<anonymous> (/opt/discord-development/resources/app.asar/splash/index.js:1:3408)
    at EventEmitter.emit (node:events:518:28)
    at emitUnhandledRejectionWarning (node:internal/process/promises:298:15)
    at warnWithErrorCodeUnhandledRejectionsMode (node:internal/process/promises:406:5)
    at processPromiseRejections (node:internal/process/promises:470:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:32)
(node:29078) TypeError: Cannot read properties of undefined (reading 'getDesktopTTI')
    at launchMainAppWindow (/home/sir/.config/discorddevelopment/0.0.61/modules/discord_desktop_core/core.asar/app/mainScreen.js:344:31)
    at Object.init (/home/sir/.config/discorddevelopment/0.0.61/modules/discord_desktop_core/core.asar/app/mainScreen.js:931:3)
    at Object.startup (/home/sir/.config/discorddevelopment/0.0.61/modules/discord_desktop_core/core.asar/app/index.js:91:14)
    at startCore (/opt/discord-development/resources/app.asar/bootstrap.js:1:1561)
    at EventEmitter.<anonymous> (/opt/discord-development/resources/app.asar/bootstrap.js:1:2693)
    at Object.onceWrapper (node:events:632:28)
    at EventEmitter.emit (node:events:518:28)
    at launchMain (/opt/discord-development/resources/app.asar/splash/index.js:1:834)
    at EventEmitter.<anonymous> (/opt/discord-development/resources/app.asar/splash/index.js:1:3408)
    at EventEmitter.emit (node:events:518:28)

It seems this is caused by Discord code calling _bootstrapModules.analytics.getDesktopTTI().trackMainWindowCreated(); it seems the stubbed analytics returns undefined for getDesktopTTI(), causing the crash. Looks like you'll need to change how you disable analytics.

Running Arch Linux, X11 with DWM, zen kernel 6.12.8

@Sanceilaks
Copy link
Contributor

Same

node:251898) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of undefined (reading 'getDesktopTTI')
    at launchMainAppWindow (/home/voidptr_t/.config/discordcanary/0.0.558/modules/discord_desktop_core/core.asar/app/mainScreen.js:344:31)
    at Object.init (/home/voidptr_t/.config/discordcanary/0.0.558/modules/discord_desktop_core/core.asar/app/mainScreen.js:932:3)
    at Object.startup (/home/voidptr_t/.config/discordcanary/0.0.558/modules/discord_desktop_core/core.asar/app/index.js:91:14)
    at startCore (/opt/discord-canary/resources/_app.asar/bootstrap.js:1:1561)
    at EventEmitter.<anonymous> (/opt/discord-canary/resources/_app.asar/bootstrap.js:1:2693)
    at Object.onceWrapper (node:events:632:28)
    at EventEmitter.emit (node:events:518:28)
    at launchMain (/opt/discord-canary/resources/_app.asar/splash/index.js:1:834)
    at EventEmitter.<anonymous> (/opt/discord-canary/resources/_app.asar/splash/index.js:1:3408)
    at EventEmitter.emit (node:events:518:28)

Arch Linux, Wayland. Plasma 6.2.5. Kernel 6.12.8-arch1-1 (64-bit)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants