Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] KoalaClient-2.1.0-win-x64.exe gives a gray blank window #116

Open
imesha10 opened this issue Feb 13, 2024 · 17 comments
Open

[Bug] KoalaClient-2.1.0-win-x64.exe gives a gray blank window #116

imesha10 opened this issue Feb 13, 2024 · 17 comments

Comments

@imesha10
Copy link

imesha10 commented Feb 13, 2024

Launching KoalaClient v2.1.0b on windows gives a grey blank window. I have uninstalled and installed it just to make sure.

image

System Information:
Windows 11

@jackschedel
Copy link
Owner

Hi, could you provide your error logs? Toggle Developer Tools -> Console

@imesha10
Copy link
Author

Hi, could you provide your error logs? Toggle Developer Tools -> Console

I did ctrl shift I then in console I see these

index-a4e37498.js:8 TypeError: Cannot read properties of undefined (reading 'model')
    at Qrt (index-a4e37498.js:1653:32719)
    at Yx (index-a4e37498.js:6:19551)
    at zM (index-a4e37498.js:8:44101)
    at RM (index-a4e37498.js:8:39819)
    at uie (index-a4e37498.js:8:39745)
    at Ey (index-a4e37498.js:8:39596)
    at m7 (index-a4e37498.js:8:35959)
    at LM (index-a4e37498.js:8:34906)
    at R (index-a4e37498.js:1:11631)
    at MessagePort.F (index-a4e37498.js:1:11995)
e7 @ index-a4e37498.js:8
index-a4e37498.js:8 Uncaught TypeError: Cannot read properties of undefined (reading 'model')
    at Qrt (index-a4e37498.js:1653:32719)
    at Yx (index-a4e37498.js:6:19551)
    at zM (index-a4e37498.js:8:44101)
    at RM (index-a4e37498.js:8:39819)
    at uie (index-a4e37498.js:8:39745)
    at Ey (index-a4e37498.js:8:39596)
    at m7 (index-a4e37498.js:8:35959)
    at LM (index-a4e37498.js:8:34906)
    at R (index-a4e37498.js:1:11631)
    at MessagePort.F (index-a4e37498.js:1:11995)

@imesha10
Copy link
Author

Something to mention is that last the previous version I had was compiled by cloning the repo and running the workflow for release.
However before installing this I uninstalled this and reinstalled just in case to check and it still failed.
Maybe it's the place where the chat saves and the api info is saved is the problem.
If you can tell me the location they are saved I can try deleting them if they are saved on the computer.

@jackschedel
Copy link
Owner

It is definitely a migration issue, but I would rather fix it that have you delete your history xD

@jackschedel
Copy link
Owner

jackschedel commented Feb 13, 2024

For future reference, the local files are located:
On macOS: ~/Library/Application Support/koala-client
On Windows: C:\Users<YourUsername>\AppData\Roaming\koala-client
On Linux: ~/.config/koala-client

@jackschedel
Copy link
Owner

jackschedel commented Feb 13, 2024

I was able to recreate a (not necessarily yours) Cannot read properties of undefined (reading 'model') error that will be fixed in 2.1.0c, so don't reset your data yet.

I also added sourcemap building, so the error message should tell me where it is occurring in the source code now.

@jackschedel
Copy link
Owner

@imesha10 did 2.1.0c fix it?

@imesha10
Copy link
Author

@imesha10 did 2.1.0c fix it?

No it still does not work though different error. I'll just temporarily rename the folder for the saved chats and it works.

index-ef3a6568.js:8 TypeError: Cannot read properties of undefined (reading 'prompt_cost_1000')
    at mermaid-ae477ddf.js:15312:69
    at Object.useMemo (index-ef3a6568.js:6:25886)
    at wn.useMemo (index-ef3a6568.js:1:8991)
    at mermaid-ae477ddf.js:15312:69
    at Yx (index-ef3a6568.js:6:19551)
    at t7 (index-ef3a6568.js:8:3143)
    at lM (index-ef3a6568.js:8:2355)
    at sM (index-ef3a6568.js:8:1897)
    at zM (index-ef3a6568.js:8:47395)
    at RM (index-ef3a6568.js:8:39819)
e7 @ index-ef3a6568.js:8
index-ef3a6568.js:8 Uncaught TypeError: Cannot read properties of undefined (reading 'prompt_cost_1000')
    at mermaid-ae477ddf.js:15312:69
    at Object.useMemo (index-ef3a6568.js:6:25886)
    at wn.useMemo (index-ef3a6568.js:1:8991)
    at mermaid-ae477ddf.js:15312:69
    at Yx (index-ef3a6568.js:6:19551)
    at t7 (index-ef3a6568.js:8:3143)
    at lM (index-ef3a6568.js:8:2355)
    at sM (index-ef3a6568.js:8:1897)
    at zM (index-ef3a6568.js:8:47395)
    at RM (index-ef3a6568.js:8:39819)

@jackschedel
Copy link
Owner

This should be fixed in 2.1.0d, but there's probably going to be alot more edge cases that occur since it looks like somehow your modelDefs or atleast modelDefs[0] is null (should've been populated as default config so idk)

@jackschedel
Copy link
Owner

Adding a scuffed modelDef reset if null check on app init, ig this is what I get for not following BetterChatGPT's migration schema.

@imesha10
Copy link
Author

Adding a scuffed modelDef reset if null check on app init, ig this is what I get for not following BetterChatGPT's migration schema.

Ok there is no rush if this is an edge case, I'll just wait till it's released and if it doesn't fix it I'll just delete my old chats. There is nothing I need to really keep there anyways.

@jackschedel
Copy link
Owner

is it still doing it on 2.1.0d?

@imesha10
Copy link
Author

imesha10 commented Feb 16, 2024

is it still doing it on 2.1.0d?

was just about to install it but this happened
image
On Microsoft Defender:
image
On virus total it's clean
https://www.virustotal.com/gui/file/eb47eda7781cfa622c446fbd1e493ab87fa14bbd98ce3f75fb58bb87564d8c49?nocache=1

However the file is quarentied.

@imesha10
Copy link
Author

I'll build this by myself and see if it happens again.

@imesha10
Copy link
Author

I built it.

(I forked the repo, then ran the workflow to build and publish desktop app and this time didn't qurentine the file)

However the error remains:

index-84599a02.js:8 TypeError: Cannot read properties of undefined (reading 'name')
    at mermaid-ae477ddf.js:15312:69
    at yy (index-84599a02.js:8:24296)
    at d1 (index-84599a02.js:8:42448)
    at IM (index-84599a02.js:8:36651)
    at bu (index-84599a02.js:6:3288)
    at hie (index-84599a02.js:8:41325)
    at Sh (index-84599a02.js:8:40309)
    at LM (index-84599a02.js:8:35758)
    at R (index-84599a02.js:1:11631)
    at MessagePort.F (index-84599a02.js:1:11995)
e7 @ index-84599a02.js:8
index-84599a02.js:6 Uncaught TypeError: Cannot read properties of undefined (reading 'name')
    at mermaid-ae477ddf.js:15312:69
    at yy (index-84599a02.js:8:24296)
    at d1 (index-84599a02.js:8:42448)
    at IM (index-84599a02.js:8:36651)
    at bu (index-84599a02.js:6:3288)
    at hie (index-84599a02.js:8:41325)
    at Sh (index-84599a02.js:8:40309)
    at LM (index-84599a02.js:8:35758)
    at R (index-84599a02.js:1:11631)
    at MessagePort.F (index-84599a02.js:1:11995)

@imesha10
Copy link
Author

imesha10 commented Feb 16, 2024

I think at this point if this is just an edge case and it's just my saves that are corrupted then I'm fine with deleting them. (it works after deleting the old saves entire folder)

As I mentioned before I built your app by forking it before to test out the new api menu when it wasn't done yet so it might have corrupted the saves there. I don't know but it might be just a case of me only.

Please close this issue if you also agree that this is probably just an edge case other probably won't get.

@jackschedel
Copy link
Owner

Weird about the virus check; this is why I provide the build hash data.

2.1.0e will have another fix, can't guarantee it'll be the last tho 🥲

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants