[Bug]: A improvement in 0.1.61 causes fails to start the GUI
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 56/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- electron, javascript
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Shell
- Étoiles
- 110
- Forks
- 9
- Merge moyen
- 12 min
- PR mergées (30 j)
- 1
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de CommandCodeAI/desktop
-
[Bug]: v0.1.61 fails to initialize preload script due to system memory information error on LinuxOuvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
CommandCodeAI/desktop#167 ·
-
enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
CommandCodeAI/desktop#164 ·
-
enhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
CommandCodeAI/desktop#163 · 1 réaction ·
-
enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
CommandCodeAI/desktop#162 ·
-
[Bug]: Attaching documents and images in the initial prompt does not seem to work with a skill.Ouvertebug
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
CommandCodeAI/desktop#161 ·
Toutes les issues de CommandCodeAI/desktop
Issues similaires
-
S3: friction & debt ws:testing
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
MedakaLang/medaka#5184 ·
Les mainteneurs répondent en général sous 1 jour
-
Link Checker ReportOuverteautomated issue report
Difficulté 1/5 Moins d'une heure Accessibilité débutants 78/100
a2aproject/A2A#2445 ·
Les mainteneurs répondent en général sous 2 jours
-
Blacklist | solotogelbisa.comOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 70/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
MadiroGlobalHealth/UVL-EMR#580 ·
Les mainteneurs répondent en général sous 1 jour
-
Storage with Nitro Sandboxes: clarify which CSI volumes are supported (third-party NFS volumes fail)Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
awsdocs/amazon-eks-user-guide#1259 ·