[GH-ISSUE #2349] 启动报错Error occurred in handler for 'async' #1502

Closed
opened 2026-02-27 00:03:47 +03:00 by kerem · 0 comments
Owner

Originally created by @weyo on GitHub (Jan 11, 2022).
Original GitHub issue: https://github.com/electerm/electerm/issues/2349

Please check known issues first

https://github.com/electerm/electerm/wiki/Know-issues

Electerm version(版本号):

1.17.21

Operating system(linux, macos, or windows7/8/10?)(操作系统):

Windows 7

Expected Behavior(期望的行为)

正常打开electerm。

Can you reproduce the same behavior in other terminal(是否能在其他同类软件中复现):

其他软件无。

Current Behavior(当前行为)

启动后,进入logo图标页面即停止,无法继续下一步,且无关闭按钮。

Possible Solution(可能的解决办法)

查找js中可能存在的bug。

Steps to Reproduce(复现步骤)

1.双击打开软件;
2.停止在electerm黑色背景logo页面;

Context (Environment)(环境)

局域网 Windows7 虚拟机,无互联网访问权限。

Detailed Description(详细描述)

命令行启动报错提示如下:

C:\Users\ele\AppData\Local\Programs\electerm>
Open share memory unsuccessfully!
210:06:05 debug 鈥?electerm start
useSystemTitleBar undefined
Open share memory unsuccessfully!
2Open share memory unsuccessfully!
2Error occurred in handler for 'async': TypeError: Cannot read property 'replace' of undefined
    at normalise (C:\Users\ele\AppData\Local\Programs\electerm\resources\app.asar\node_modules\os-locale-s\cjs\index.js:32:36)
    at withCache (C:\Users\ele\AppData\Local\Programs\electerm\resources\app.asar\node_modules\os-locale-s\cjs\index.js:101:17)
    at C:\Users\ele\AppData\Local\Programs\electerm\resources\app.asar\node_modules\os-locale-s\cjs\index.js:117:42
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async loadLocales (C:\Users\ele\AppData\Local\Programs\electerm\resources\app.asar\lib\locales.js:11:21)
    at async Object.init (C:\Users\ele\AppData\Local\Programs\electerm\resources\app.asar\lib\ipc.js:58:9)
    at async electron/js2c/browser_init.js:201:563

Suggestions?(建议)

可能和文件权限或系统控制策略有关?抱歉,不太熟悉前端,暂无法提出专业建议。

Originally created by @weyo on GitHub (Jan 11, 2022). Original GitHub issue: https://github.com/electerm/electerm/issues/2349 ## Please check known issues first https://github.com/electerm/electerm/wiki/Know-issues <!--- Provide some basic info --> ## Electerm version(版本号): 1.17.21 ## Operating system(linux, macos, or windows7/8/10?)(操作系统): Windows 7 ## Expected Behavior(期望的行为) <!--- Tell me what should happen --> 正常打开electerm。 ## Can you reproduce the same behavior in other terminal(是否能在其他同类软件中复现): <!--- If same bahavior happens in other terminal, maybe it is supposed to be like this or not a problem of terminal app --> 其他软件无。 ## Current Behavior(当前行为) <!--- Tell me what happens instead of the expected behavior --> 启动后,进入logo图标页面即停止,无法继续下一步,且无关闭按钮。 ## Possible Solution(可能的解决办法) <!--- Not obligatory, but suggest a fix/reason for the bug, --> 查找js中可能存在的bug。 ## Steps to Reproduce(复现步骤) <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant --> 1.双击打开软件; 2.停止在electerm黑色背景logo页面; ## Context (Environment)(环境) <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> 局域网 Windows7 虚拟机,无互联网访问权限。 ## Detailed Description(详细描述) <!--- Provide a detailed description of the change or addition you are proposing --> 命令行启动报错提示如下: ```code C:\Users\ele\AppData\Local\Programs\electerm> Open share memory unsuccessfully! 210:06:05 debug 鈥?electerm start useSystemTitleBar undefined Open share memory unsuccessfully! 2Open share memory unsuccessfully! 2Error occurred in handler for 'async': TypeError: Cannot read property 'replace' of undefined at normalise (C:\Users\ele\AppData\Local\Programs\electerm\resources\app.asar\node_modules\os-locale-s\cjs\index.js:32:36) at withCache (C:\Users\ele\AppData\Local\Programs\electerm\resources\app.asar\node_modules\os-locale-s\cjs\index.js:101:17) at C:\Users\ele\AppData\Local\Programs\electerm\resources\app.asar\node_modules\os-locale-s\cjs\index.js:117:42 at processTicksAndRejections (internal/process/task_queues.js:93:5) at async loadLocales (C:\Users\ele\AppData\Local\Programs\electerm\resources\app.asar\lib\locales.js:11:21) at async Object.init (C:\Users\ele\AppData\Local\Programs\electerm\resources\app.asar\lib\ipc.js:58:9) at async electron/js2c/browser_init.js:201:563 ``` ## Suggestions?(建议) <!--- Not a bug report, just some thoughts or suggestions? It is totally OK and welcome too --> 可能和文件权限或系统控制策略有关?抱歉,不太熟悉前端,暂无法提出专业建议。
kerem 2026-02-27 00:03:47 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#1502
No description provided.