bug(developer): kmcmplib wasm mode is not getting sentry call stacks
- Dominant language
- Pascal
- Stars
- 534
- Forks
- 143
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 113
Description
See e.g. https://keyman.sentry.io/issues/5097542930/events/48cdbb5c426544f3943f86110dc8f0ac/
```
Error: The compiler memory buffer overflowed
File "C:\BuildAgent\work\7ac43416c45637e9\keyman\developer\src\common\web\utils\src\KeymanSentry.ts", line 50, col 36, in Function.reportException
const eventId = await Sentry.captureException(e);
File "C:\BuildAgent\work\7ac43416c45637e9\keyman\developer\src\kmc\src\util\NodeCompilerCallbacks.ts", line 142, col 20, in NodeCompilerCallbacks.reportMessage
KeymanSentry.reportException(event.exceptionVar ?? event.message, false);
File "C:\BuildAgent\work\7ac43416c45637e9\keyman\common\web\types\src\util\compiler-interfaces.ts", line 467, col 19, in CompilerFileCallbacks.reportMessage
this.parent.reportMessage({filename: this.filename, ...event});
File "C:\BuildAgent\work\7ac43416c45637e9\keyman\developer\src\kmc-kmn\src\compiler\compiler.ts", line 224, col 20, in compilerMessageCallback
this.callbacks.reportMessage(mapErrorFromKmcmplib(line, code, msg));
File "C:\BuildAgent\work\7ac43416c45637e9\keyman\developer\src\kmc-kmn\src\import\kmcmplib\wasm-host.js", line 884, col 236, in wasm_msgproc
'{snip} ion') { console.log(`[${line}: ${msgcode}: ${UTF8ToString(text)}]`); return 0; } else { return proc(line, msgcode, UTF8ToString(text)); } }
File "wasm://wasm/014f8a32:wasm-function[135]:0xc8ed", in wasm_CompilerMessageProc(int, unsigned int, char const*, void*)
File "wasm://wasm/014f8a32:wasm-function[61]:0x3255", in AddCompileError(unsigned int)
File "wasm://wasm/014f8a32:wasm-function[48]:0x22dd", in CompileKeyboardBuffer(unsigned char*, int, FILE_KEYBOARD*)
```
Contributor guide
Assessment
This issue has not been assessed yet.