[Bug]: A improvement in 0.1.61 causes fails to start the GUI
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 56/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- electron, javascript
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Shell
- Sterne
- 110
- Forks
- 9
- Ø Merge
- 12 Min.
- Gemergte PRs (30 T.)
- 1
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus CommandCodeAI/desktop
-
[Bug]: v0.1.61 fails to initialize preload script due to system memory information error on LinuxOffenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
CommandCodeAI/desktop#167 ·
-
enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
CommandCodeAI/desktop#164 ·
-
enhancement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
CommandCodeAI/desktop#163 · 1 Reaktion ·
-
enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
CommandCodeAI/desktop#162 ·
-
[Bug]: Attaching documents and images in the initial prompt does not seem to work with a skill.Offenbug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
CommandCodeAI/desktop#161 ·
Alle Issues in CommandCodeAI/desktop
Ähnliche Issues
-
S3: friction & debt ws:testing
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
MedakaLang/medaka#5184 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Link Checker ReportOffenautomated issue report
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 78/100
a2aproject/A2A#2445 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 70/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
MadiroGlobalHealth/UVL-EMR#580 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Storage with Nitro Sandboxes: clarify which CSI volumes are supported (third-party NFS volumes fail)Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
awsdocs/amazon-eks-user-guide#1259 ·