jan icon indicating copy to clipboard operation
jan copied to clipboard

bug: error loading model : undefined

Open Alias4D opened this issue 1 year ago • 13 comments

Describe the bug error on loading model : undefined

Steps to reproduce Steps to reproduce the behavior:

  1. run Jan
  2. select downloaded model tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf
  3. write prompt then run
  4. See error

Screenshots Image 001

Environment details

  • Operating System: [ Windows 10]64-bit operating system
  • Jan Version: [e.g., 0.4.4]
  • Device name Ali-VAIO Processor Intel(R) Core(TM) i7 CPU Q 720 @ 1.60GHz 1.60 GHz Installed RAM 4.00 GB SonyVaio Uploading SonyVaio.png…

Logs 2024-01-20T20:56:23.370Z [NITRO]::CPU informations - 8 2024-01-20T20:56:23.375Z [NITRO]::Debug: Request to kill Nitro 2024-01-20T20:56:23.651Z [NITRO]::Debug: Nitro process is terminated 2024-01-20T20:56:24.166Z [NITRO]::Debug: Spawning Nitro subprocess... 2024-01-20T20:56:24.167Z [NITRO]::Debug: Spawn nitro at path: C:\Users\xxx\jan\extensions@janhq\inference-nitro-extension\dist\bin\win-cpu\nitro.exe, and args: 1,127.0.0.1,3928 2024-01-20T20:56:26.992Z [NITRO]::Debug: Nitro exited with code: 3221225794 2024-01-20T20:56:26.993Z [NITRO]::Error: child process exited with code 3221225794

Alias4D avatar Jan 20 '24 21:01 Alias4D

@Alias4D I think we need a bit more logs to properly diagnose, can you paste a bit more lines? Pls redact any personal info.

freelerobot avatar Jan 21 '24 05:01 freelerobot

Having the same issue:

https://github.com/janhq/jan/assets/89722390/a4d21a4a-b95e-4fe4-b9a2-bdd94ed10246

Here's my logs: server.log

Mac Air 16GB Sonoma 14.2

imtuyethan avatar Jan 25 '24 10:01 imtuyethan

@Alias4D Anyone facing the "undefined" issue, please follow this approach:

  1. Try wiping the Jan folder, and reopening the Jan app and see if the issue resolved.
  2. Go to jan folder / extensions / @janhq / inference-nitro-extension / dist / bin / your OS / nitro => try to start the nitro manually and see if any errors are displayed.
  3. Resolve errors from your side until nitro is properly started with no issue.
  4. Reopen and double check the Jan app again.

Van-QA avatar Jan 26 '24 08:01 Van-QA

Thanks for your time 🙏 I try steps above, but

Nitro.exe Application Error The application was unable to start correctly (0xc0000142). Click OK to close the application.

Alias4D avatar Jan 26 '24 09:01 Alias4D

@Alias4D, can you give us the settings.json?

Van-QA avatar Jan 26 '24 09:01 Van-QA

In the settings folder of Jan app: image

Van-QA avatar Jan 26 '24 09:01 Van-QA

{ "notify": true, "run_mode": "cpu", "nvidia_driver": { "exist": false, "version": "" }, "cuda": { "exist": false, "version": "" }, "gpus": [], "gpu_highest_vram": "" }

Alias4D avatar Jan 26 '24 09:01 Alias4D

1 data point : diagnosing my system here, starting nitro generates "vcruntime140_1.dll missing".

I'll chase it down / update the machine and report back.

(it would be helpful for the program to just pass these types of errors back up.)

zaphodddd avatar Jan 30 '24 07:01 zaphodddd

Reporting back installing the vcruntime140_1 fixed the error on my Win10 machine.


Microsoft page for VC++ redistributable https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170

zaphodddd avatar Feb 03 '24 07:02 zaphodddd

Thank you @zaphodddd

louis-jan avatar Feb 03 '24 07:02 louis-jan

Got the "undefined" error on MacOS Sonoma, M1 silicon. Deleting the ~/jan folder completely and restarting Jan helped!

arukompas avatar Feb 10 '24 19:02 arukompas

Got the "undefined" error on MacOS Sonoma, M1 silicon. Deleting the ~/jan folder completely and restarting Jan helped!

Thank you, I guess this is related to the backward incompatible model.json issue that has been addressed on Nightly Build 270. cc @Van-QA

louis-jan avatar Feb 15 '24 04:02 louis-jan

Reporting back installing the vcruntime140_1 fixed the error on my Win10 machine.

Microsoft page for VC++ redistributable https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170

cc @hiro-v, regarding VC++ redistributables component. Please help on this.

louis-jan avatar Feb 15 '24 04:02 louis-jan

1 data point : diagnosing my system here, starting nitro generates "vcruntime140_1.dll missing".

I'll chase it down / update the machine and report back.

(it would be helpful for the program to just pass these types of errors back up.)

Addressed in Nightly Build 0.4.6-273

louis-jan avatar Feb 18 '24 08:02 louis-jan