Skip to content

LettuceAI 2.2.0 and 2.2.1 both crash when opening Settings → Models #89

Description

@schlegan

Describe the bug
Hello, I never used Lettuce AI before. Today I did a fresh install of the 2.2.1 windows, cpu version on windows 10 and tried to follow the setup process. When I opened the setting page for choosing a local LLM model as part of the setup process, the whole app closed after a few seconds, regardless of what I do. There is no error message and this problem persists after restarts, fresh installs and repeated attempts.

I've tried to debug via Chat-GPT and it describes the problem as follows:

Windows 10/11, CPU Intel Xeon E5-2670 v2 (Ivy Bridge, AVX but no BMI2). LettuceAI 2.2.0 and 2.2.1 both crash when opening Settings → Models, before selecting a model. Event Viewer reports exception 0xc000001d. WinDbg identifies the faulting instruction as shlx edx,r8d,edx at lettuceai!onig_builtin_fail+0x1157bb. SHLX is a BMI2 instruction unsupported by Ivy Bridge. The Windows CPU build appears to have been compiled with BMI2 instructions enabled.

That onig_... naming is from Oniguruma, a regular-expression library. onig_builtin_fail is indeed an Oniguruma function.

To Reproduce
Steps to reproduce the behavior, as they have happend on my machine:

  1. Have windows 10 with an Intel Xeon E5-2670 v2 CPU or any other cpu that doesn't support BMI2 instructions.
  2. Install LettuceAI 2.2.1 fresh.
  3. Open LettuceAI.
  4. Click 'Get Started'.
  5. Click 'Yes, I know how this works'.
  6. Click 'I want to use local LLMs'.
  7. Click 'use my own gguf files'.
  8. Wait a few seconds and LettuceAI should close on its own.

Expected behavior
For everything to keep working or at least an error message.

Additional context

  • The CUDA version has the same problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions