Crash upon text generation.
Describe the bug Tested several different models. Local LM Studio and apps built in llama.ccp
Loads and response in AI Character creator. Crashes during actual character text generation.
Latest build Latest Cuda kit Win11
what kind of hardware do you have?
what kind of hardware do you have?
9800x3D 4080 Super 64gb DDR5
It's not my hardware as I can run other AI apps just fine.
Can you share your logs? I cannot help you without the logs.
Can you share your logs? I cannot help you without the logs. Which logs would you like in general.
I do have several of the AppCrash_ report logs CrashDumps And the app logs under dev.lettuceai.app logs
I can also toss them into a pastebin for easier accessibility.
CrashDumps are usually for Webview's error but sure.
I would prefer hastebin or email me: [email protected]
Roger, email then.
The crash files show a stack overflow in LettuceAI. Since it happens with both LM Studio and the built-in llama.cpp, it probably isnt caused by one model or CUDA.
Can you get us a crash dump please?
Download ProcDump from Microsoft: https://learn.microsoft.com/sysinternals/downloads/procdump Close LettuceAI, open PowerShell as admin in the ProcDump folder, and run:
mkdir C:\LettuceDumps
.\procdump64.exe -accepteula -ma -e -w lettuceai.exe C:\LettuceDumps
Keep the window open, start LettuceAI, and reproduce the crash. It should create a .dmp file in C:\LettuceDumps.
Please also tell us which model you used, the prompt, if streaming was enabled, and whether it crashed while generating or after the response finished. Dont upload the dump publicly since it may contain private data from the app. Send it privately.
Im on Linux, thats why I need you to do it.
Sure thing, glad we found something off and not a 'stupid' reason. I'll email it to ya in a bit.
Sorry, forgot the other info:
No custom prompt, all app settings were default.
Models used: Mistral-Small-22B-ArliAI Ministral-3-14B zerofata__Magistry-24B And gemma-4-12B-it-GGUF
Streaming is on. Crash happens on first generation. Example: open character chat, hit enter. Crash.
Just pinging to see if you need anything further.
Thanks, the dump helped. I found the crash.
It is a stack overflow in the Character Creator async code. A very large async task is being placed on the Windows main-thread stack, and it runs out of space when Tauri starts it. So it isnt caused by the model, LM Studio, llama.cpp, or CUDA.
I have enough information and will work on a fix.
(It took a while to decode the .dmp file and connect the dots)
All good, glad I could help find a bug with the app.
To be fair, I wont be fixing this issue in 2.2.0. Because after 2.2.0, App will go through a total rewrite. LettuceAI is currently almost 600k line and it reached to a point where its too hard to maintain. I will spend a weekend to organize and redesign alot of things. Smart Creator is included to this.
Ah, that's sad to hear and understandable at the same time, I wanted to give this App a good go, but I understand the needs to redo legacy items as newer systems come online. Though curious as why particular issue hasn't cropped up yet, unless those that it does happen to, aren't reporting it.
Im currently working on the refactor: https://github.com/LettuceAI/app/tree/refactor/lettuceai-next
Just for shits and giggles, I tried the newest pre-release, same thing happens.
But, just like the previous build, the AI Character Creator, has no problem loading the llama.cpp and working with LM studio. Figured it might be worth noting as I mentioned it in my initial massage.
LMStudio
Figured I'd let you know.
Desktop Release 2.2.1 resolved the problems. Good work~!