[Bug]: A improvement in 0.1.61 causes fails to start the GUI
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 56/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- electron, javascript
Direção de pesquisa
The report points to the preload sequence and process.getSystemMemoryInfo() in the desktop app. Read the code that sets residentChatLimit and check how it handles sandboxed Linux startup when retrieving system memory throws. Reproduce with the 0.1.61 AppImage in a sandboxed environment; done means the preload completes and the GUI loads without the renderer errors.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
GUI version
0.1.61
Operating system
Linux (Debian/Ubuntu)
Reproduction steps
- Launch
CommandCode-0.1.61-x86_64.AppImageon Linux (in our case upgraded from 0.1.60 via the in-app updater). - Wait for startup to finish. The main-process log reaches
window-created/ready-to-shownormally. - Observe the window: it shows the error page "An unexpected error occurred. Reloading usually fixes this..." (in some runs under Wayland the window never appears at all, while the process keeps running).
- Click Reload → the error page comes back every time; the app never becomes usable.
Expected behavior
The app loads its UI normally and the preload script installs without errors.
Actual behavior
Timeline captured with --enable-logging, in order of occurrence:
- First exception — start of the failure chain: the preload script fails to load:
Unable to load preload script: <AppDir>/resources/app/out/preload/index.js
Error: Unable to retrieve system memory information
- Because the preload never finishes, the IPC bridge is never installed; the renderer then crashes with:
TypeError: Cannot read properties of undefined (reading 'authStatus')
TypeError: Cannot read properties of undefined (reading 'onMenuAction')
- The renderer shows the generic error page. Every reload fails identically, so press the "reload" button never recovers.
Screenshots, recordings, or sanitized logs
An improvement introduced in 0.1.61—"The app stays responsive on 8 GB machines and while long replies stream"—involves setting a memory threshold in preload sequence:
const threshold = 8 * 2**30; // 8 GiB, in bytes
function chooseLimit(totalBytes) {
return totalBytes <= threshold ? 3 : 8;
}
residentChatLimit: chooseLimit(
process.getSystemMemoryInfo().total * 1024 // Convert KiB to bytes
)
(Comments added by the issue author)
This approach first checks the machine’s available memory and then selects a memory limit based on that amount. However, in a sandboxed environment, calling getSystemMemoryInfo() will throw an error, resulting in the message "Error: Unable to retrieve system memory information" during debugging, and the GUI will redirect to a generic error page. Starting the application with the --no-sandbox parameter may resolves this issue.
Safety check
- I removed credentials and private project information from this report.
- Linguagem predominante
- Shell
- Estrelas
- 110
- Forks
- 9
- Merge médio
- 12min
- PRs com merge (30d)
- 1
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de CommandCodeAI/desktop
-
[Bug]: v0.1.61 fails to initialize preload script due to system memory information error on LinuxAbertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
CommandCodeAI/desktop#167 ·
-
enhancement
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
CommandCodeAI/desktop#164 ·
-
enhancement
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
CommandCodeAI/desktop#163 · 1 reação ·
-
enhancement
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
CommandCodeAI/desktop#162 ·
-
[Bug]: Attaching documents and images in the initial prompt does not seem to work with a skill.Abertabug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 55/100
CommandCodeAI/desktop#161 ·
Todas as issues de CommandCodeAI/desktop
Issues semelhantes
-
S3: friction & debt ws:testing
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
MedakaLang/medaka#5184 ·
Mantenedores costumam responder em até 1 dia
-
Link Checker ReportAbertaautomated issue report
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 78/100
a2aproject/A2A#2445 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 70/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
MadiroGlobalHealth/UVL-EMR#580 ·
Mantenedores costumam responder em até 1 dia
-
Storage with Nitro Sandboxes: clarify which CSI volumes are supported (third-party NFS volumes fail)Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
awsdocs/amazon-eks-user-guide#1259 ·