lmstudio-ai / .github

34 stars 3 forks source link

A javascript error occurred in the main process #11

Open ufukkosker opened 5 months ago

ufukkosker commented 5 months ago

A javascript error occurred in the main process. I am using M2 Macbook. How can I fix this.

Screenshot 2024-01-14 at 14 56 48
yagil commented 5 months ago

@ufukkosker it's possible some other software on your Mac previously created a file called .cache in ~/.cache.

Here's how you can check whether or not that's the case. Run:

test -f ~/.cache && echo "It's a file" || echo "It's not a file"

if this comes out with "it's a file", read on. If not, please let me know.

If .cache is indeed a file on your system, you could consider renaming it (.cache-backup), and then restart LM Studio.

Word of caution: if you know some other software on your machine relies on .cache being a file it may break if you make this change. So make your own decision on whether or not to do it.

ufukkosker commented 5 months ago

I got "It's not a file" sir. There is no LMStudio in cache folder.

Screenshot 2024-01-15 at 01 02 38
yagil commented 5 months ago

@ufukkosker interesting, thanks. A few more options:

  1. did you run LM Studio directly from the .dmg window, or did you drag it into Applications first? Try this if you haven't
  2. if you simply try to run LM Studio again, does it give you the same error?
  3. just for the sake of experiment, try to rename your existing .cache folder something else (.cache-old) and try to run LM Studio again
ufukkosker commented 5 months ago

@yagil thank you so much sir. I already drag into Application folder firstly. I only change .cache folder name with .cache-old. Then LM Studio run. :)