[GH-ISSUE #1753] [BUG]: Cannot read properties of undefined #1145

Closed
opened 2026-02-22 18:23:21 -05:00 by yindo · 9 comments
Owner

Originally created by @rosano on GitHub (Jun 24, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1753

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

I sent a message in a new workspace after configuring to use the only installed model: codellama 7b from provider AnythingLLM.
Screen Shot 2024-06-24 at 11 41 07

Are there known steps to reproduce?

No response

Originally created by @rosano on GitHub (Jun 24, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1753 ### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? I sent a message in a new workspace after configuring to use the only installed model: codellama 7b from provider AnythingLLM. <img width="494" alt="Screen Shot 2024-06-24 at 11 41 07" src="https://github.com/Mintplex-Labs/anything-llm/assets/1680612/7781602e-f809-48fb-a7f4-68ca30fd1120"> ### Are there known steps to reproduce? _No response_
yindo added the needs info / can't replicateDesktop labels 2026-02-22 18:23:21 -05:00
yindo closed this issue 2026-02-22 18:23:21 -05:00
Author
Owner

@timothycarambat commented on GitHub (Jun 24, 2024):

This seems to be that the vectorDB was not saved. Nobody else has had this issue on the desktop app and we haven't pushed a new version. When you go to "Vector Database Preference" you have LanceDB selected?

@timothycarambat commented on GitHub (Jun 24, 2024): This seems to be that the vectorDB was not saved. Nobody else has had this issue on the desktop app and we haven't pushed a new version. When you go to "Vector Database Preference" you have LanceDB selected?
Author
Owner

@rosano commented on GitHub (Jun 24, 2024):

@timothycarambat yes it was automatically on LanceDB.

If it helps, I notice that creating a new workspace without touching 'Agent Configuration' and typing into the chat gives this error:

vectordb: failed to load native library. You may need to run `npm install @lancedb/vectordb-darwin-x64`. If that does not work, please file a bug report at https://github.com/lancedb/lancedb/issues Source error: Error: dlopen(/Applications/AnythingLLM.app/Contents/Resources/backend/node_modules/@lancedb/vectordb-darwin-x64/index.node, 1): no suitable image found. Did find: /Applications/AnythingLLM.app/Contents/Resources/backend/node_modules/@lancedb/vectordb-darwin-x64/index.node: cannot load 'index.node' (load command 0x80000034 is unknown) /Applications/AnythingLLM.app/Contents/Resources/backend/node_modules/@lancedb/vectordb-darwin-x64/index.node: cannot load 'index.node' (load command 0x80000034 is unknown)

@rosano commented on GitHub (Jun 24, 2024): @timothycarambat yes it was automatically on LanceDB. If it helps, I notice that creating a new workspace without touching 'Agent Configuration' and typing into the chat gives this error: ```vectordb: failed to load native library. You may need to run `npm install @lancedb/vectordb-darwin-x64`. If that does not work, please file a bug report at https://github.com/lancedb/lancedb/issues Source error: Error: dlopen(/Applications/AnythingLLM.app/Contents/Resources/backend/node_modules/@lancedb/vectordb-darwin-x64/index.node, 1): no suitable image found. Did find: /Applications/AnythingLLM.app/Contents/Resources/backend/node_modules/@lancedb/vectordb-darwin-x64/index.node: cannot load 'index.node' (load command 0x80000034 is unknown) /Applications/AnythingLLM.app/Contents/Resources/backend/node_modules/@lancedb/vectordb-darwin-x64/index.node: cannot load 'index.node' (load command 0x80000034 is unknown)```
Author
Owner

@rosano commented on GitHub (Jun 24, 2024):

I'm using macOS 10.14 Mojave.

@rosano commented on GitHub (Jun 24, 2024): I'm using macOS 10.14 Mojave.
Author
Owner

@timothycarambat commented on GitHub (Jun 24, 2024):

@rosano are you on an M1? Seems like you downloaded the Intel version and not the Silicon version of the app (or vice versa). It is was expecting to find darwin-x64 that is for Intel chips, not M1. IIRC you might be able to run AnythingLLM in compatibility mode by downloading the wrong version but the binaries we use for some libraries wont exist and you will get issues like this.

@timothycarambat commented on GitHub (Jun 24, 2024): @rosano are you on an M1? Seems like you downloaded the Intel version and not the Silicon version of the app (or vice versa). It is was expecting to find `darwin-x64` that is for Intel chips, not M1. IIRC you _might_ be able to run AnythingLLM in compatibility mode by downloading the wrong version but the binaries we use for some libraries wont exist and you will get issues like this.
Author
Owner

@timothycarambat commented on GitHub (Jun 24, 2024):

The download for Intel is called AnythingLLMDesktop.dmg
Silicon is AnythingLLMDesktop-Silicon.dmg
https://useanything.com/download

@timothycarambat commented on GitHub (Jun 24, 2024): The download for Intel is called AnythingLLMDesktop.dmg Silicon is AnythingLLMDesktop-Silicon.dmg https://useanything.com/download
Author
Owner

@rosano commented on GitHub (Jun 25, 2024):

@timothycarambat Thanks for the feedback. I have an Intel mac and downloaded AnythingLLMDesktop.dmg which should be the correct version. I wonder if my system is too old but there aren't specific requirements on either of these pages:

@rosano commented on GitHub (Jun 25, 2024): @timothycarambat Thanks for the feedback. I have an Intel mac and downloaded `AnythingLLMDesktop.dmg` which should be the correct version. I wonder if my system is too old but there aren't specific requirements on either of these pages: - https://docs.useanything.com/installation/system-requirements - https://docs.useanything.com/installation/desktop/macos
Author
Owner

@timothycarambat commented on GitHub (Jun 25, 2024):

How old is your machine? LanceDBs only real requirement is AVX2 instruction set support on the CPU

@timothycarambat commented on GitHub (Jun 25, 2024): How old is your machine? LanceDBs only real requirement is AVX2 instruction set support on the CPU
Author
Owner

@rosano commented on GitHub (Jun 26, 2024):

How old is your machine? LanceDBs only real requirement is AVX2 instruction set support on the CPU

@timothycarambat It's a 2012 MacBook Pro Retina. How might I figure out whether it has that requirement?

@rosano commented on GitHub (Jun 26, 2024): > How old is your machine? LanceDBs only real requirement is AVX2 instruction set support on the CPU @timothycarambat It's a 2012 MacBook Pro Retina. How might I figure out whether it has that requirement?
Author
Owner

@timothycarambat commented on GitHub (Jun 26, 2024):

@rosano The processor in the 2012 MBP is an Intel i7-3520M - scrolling to Instruction set I see

Instruction Set Extensions: Intel® AVX

So I am fairly confident the app just cannot support the AVX2-based instruction. As a workaround, you will have to use any other vector database provider. This is obviously not ideal as it requires additional setup on your end, but that is a limitation imposed by the default VectorDB provider we use. AVX2 is not really a "new" tech and has been around for over a decade, which is why we have not seen this issue reported in the desktop client before and the speed gains using AVX2 support is very large :/

@timothycarambat commented on GitHub (Jun 26, 2024): @rosano The processor in the 2012 MBP is [an Intel i7-3520M](https://www.intel.com/content/www/us/en/products/sku/64893/intel-core-i73520m-processor-4m-cache-up-to-3-60-ghz/specifications.html) - scrolling to Instruction set I see Instruction Set Extensions: Intel® AVX So I am fairly confident the app just cannot support the AVX2-based instruction. As a workaround, you will have to use any other vector database provider. This is obviously not ideal as it requires additional setup on your end, but that is a limitation imposed by the default VectorDB provider we use. AVX2 is not really a "new" tech and has been around for over a decade, which is why we have not seen this issue reported in the desktop client before and the speed gains using AVX2 support is very large :/
yindo changed title from [BUG]: Cannot read properties of undefined to [GH-ISSUE #1753] [BUG]: Cannot read properties of undefined 2026-06-05 14:39:12 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#1145