Desktop client on ARM Mac freezes after a few hours

Delta Chat version 1.46.1

Desktop client on MacOS Sonoma, M2 ARM CPU

Actual behavior

After a few hours (probably one or two hours) most functionality in the desktop client becomes unresponsive to mouse clicks. The debug logs fill up with many, many error messages (see below).

Steps to reproduce the problem

  1. Run deltachat client
  2. Wait a few hours

Debug log

The following error message is repeated over and over, creating enormous log files.

2024-07-01T10:23:55.510Z	renderer              	ERROR	"\nfile:///Applications/DeltaChat.app/Contents/Resources/app.asar/src/renderer/App.tsx:109:10"	"Unhandled Rejection:"	{"isTrusted":true}	{"stack":"RangeError: Map maximum size exceeded\n    at Map.set (<anonymous>)\n    at file:///Applications/DeltaChat.app/Contents/Resources/app.asar/node_modules/yerpc/client.ts:66:22\n    at new Promise (<anonymous>)\n    at A6.request (file:///Applications/DeltaChat.app/Contents/Resources/app.asar/node_modules/yerpc/client.ts:65:12)\n    at Sl.getFullChatById (file:///Applications/DeltaChat.app/Contents/Resources/app.asar/node_modules/@deltachat/jsonrpc-client/generated/client.ts:355:29)\n    at selectChat (file:///Applications/DeltaChat.app/Contents/Resources/app.asar/src/renderer/contexts/ChatContext.tsx:93:48)\n    at C (file:///Applications/DeltaChat.app/Contents/Resources/app.asar/src/renderer/components/screens/MainScreen.tsx:92:18)\n    at Object.tX (file:///Applications/DeltaChat.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:52:317)\n    at aX (file:///Applications/DeltaChat.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:52:471)\n    at iX (file:///Applications/DeltaChat.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.production.min.js:53:35)","message":"Map maximum size exceeded"}
2024-07-01T10:23:55.710Z	renderer              	ERROR

2 Likes

Thanks for reporting, I filed an issue typescript client: crashes after some amount of requests · Issue #60 · deltachat/yerpc · GitHub