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

Plugin crashes and exits Koreader #6

Open
whatever4kindle opened this issue Jul 25, 2023 · 16 comments
Open

Plugin crashes and exits Koreader #6

whatever4kindle opened this issue Jul 25, 2023 · 16 comments
Assignees

Comments

@whatever4kindle
Copy link

crash report:

./luajit: plugins/askgpt.koplugin/gpt_query.lua:31: Error querying ChatGPT API: 429
stack traceback:
[C]: in function 'error'
plugins/askgpt.koplugin/gpt_query.lua:31: in function 'queryChatGPT'
plugins/askgpt.koplugin/dialogs.lua:59: in function 'callback'
frontend/ui/widget/button.lua:411: in function 'handleEvent'
frontend/ui/widget/container/inputcontainer.lua:250: in function 'handleEvent'
frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent'
frontend/ui/widget/container/widgetcontainer.lua:100: in function 'handleEvent'
frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent'
frontend/ui/widget/container/widgetcontainer.lua:100: in function 'handleEvent'
frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent'
frontend/ui/widget/container/widgetcontainer.lua:100: in function 'handleEvent'
...
frontend/ui/widget/container/widgetcontainer.lua:100: in function 'handleEvent'
frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent'
frontend/ui/widget/container/widgetcontainer.lua:100: in function 'handleEvent'
frontend/ui/uimanager.lua:824: in function 'sendEvent'
frontend/ui/uimanager.lua:52: in function 'default'
frontend/ui/uimanager.lua:1313: in function 'handleInputEvent'
frontend/ui/uimanager.lua:1407: in function 'handleInput'
frontend/ui/uimanager.lua:1456: in function 'run'
./reader.lua:302: in main chunk
[C]: at 0x00013e9d
lipc-wait-event exited normally with status: 0

Maybe a ChatGPT problem, not a Koreader or plugin problem?

@drewbaumann
Copy link
Owner

Thanks for the report! I didn't see this till now. Will take a look at that line and see what I can find.

@drewbaumann drewbaumann self-assigned this Aug 12, 2023
@drewbaumann
Copy link
Owner

crash report:

./luajit: plugins/askgpt.koplugin/gpt_query.lua:31: Error querying ChatGPT API: 429 stack traceback: [C]: in function 'error' plugins/askgpt.koplugin/gpt_query.lua:31: in function 'queryChatGPT' plugins/askgpt.koplugin/dialogs.lua:59: in function 'callback' frontend/ui/widget/button.lua:411: in function 'handleEvent' frontend/ui/widget/container/inputcontainer.lua:250: in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' ... frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/uimanager.lua:824: in function 'sendEvent' frontend/ui/uimanager.lua:52: in function 'default' frontend/ui/uimanager.lua:1313: in function 'handleInputEvent' frontend/ui/uimanager.lua:1407: in function 'handleInput' frontend/ui/uimanager.lua:1456: in function 'run' ./reader.lua:302: in main chunk [C]: at 0x00013e9d lipc-wait-event exited normally with status: 0

Maybe a ChatGPT problem, not a Koreader or plugin problem?

A 429 indicates that you were rate limited and that is why the error occurred.

@SmokeShine
Copy link

where is the crash report? I am kindle PW 5.6.1 jailbreak with koreader. I selected a paragraph and entered "summarize" in the text box and it crashes. I have the api-key from a new account in the lua file.

@drewbaumann
Copy link
Owner

where is the crash report? I am kindle PW 5.6.1 jailbreak with koreader. I selected a paragraph and entered "summarize" in the text box and it crashes. I have the api-key from a new account in the lua file.

Look in the folder where KOReader is installed. There should be a file named crash.log.

@SmokeShine
Copy link

it works.is there any way to get "summary till this page"?

@drewbaumann
Copy link
Owner

it works.is there any way to get "summary till this page"?

Not at the moment! It's not a feature i have built, but it could certainly be interesting! It would be a big effort and something I'd have to put a little product thought into. However, this is an open source project so if you'd like to make a suggestion in a new issue we could take it from there.

@SmokeShine
Copy link

IMG_20230817_103441__01

the panel is not populating correctly.

@drewbaumann
Copy link
Owner

IMG_20230817_103441__01

the panel is not populating correctly.

Does Wikipedia or other plugins do the same thing? That does indeed look off, but i have not been able to replicate that.

@SmokeShine
Copy link

SmokeShine commented Aug 17, 2023

yes. they work fine.

edit - the glitch was due to custom font + custom screensaver. The addon works now and is great for reading research papers.

@whatever4kindle
Copy link
Author

crash report:
./luajit: plugins/askgpt.koplugin/gpt_query.lua:31: Error querying ChatGPT API: 429 stack traceback: [C]: in function 'error' plugins/askgpt.koplugin/gpt_query.lua:31: in function 'queryChatGPT' plugins/askgpt.koplugin/dialogs.lua:59: in function 'callback' frontend/ui/widget/button.lua:411: in function 'handleEvent' frontend/ui/widget/container/inputcontainer.lua:250: in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' ... frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/uimanager.lua:824: in function 'sendEvent' frontend/ui/uimanager.lua:52: in function 'default' frontend/ui/uimanager.lua:1313: in function 'handleInputEvent' frontend/ui/uimanager.lua:1407: in function 'handleInput' frontend/ui/uimanager.lua:1456: in function 'run' ./reader.lua:302: in main chunk [C]: at 0x00013e9d lipc-wait-event exited normally with status: 0
Maybe a ChatGPT problem, not a Koreader or plugin problem?

A 429 indicates that you were rate limited and that is why the error occurred.

Does it only work if you have the paid version? I already tried with 3 or 4 different API keys, same thing.

@SmokeShine
Copy link

crash report:
./luajit: plugins/askgpt.koplugin/gpt_query.lua:31: Error querying ChatGPT API: 429 stack traceback: [C]: in function 'error' plugins/askgpt.koplugin/gpt_query.lua:31: in function 'queryChatGPT' plugins/askgpt.koplugin/dialogs.lua:59: in function 'callback' frontend/ui/widget/button.lua:411: in function 'handleEvent' frontend/ui/widget/container/inputcontainer.lua:250: in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' ... frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/uimanager.lua:824: in function 'sendEvent' frontend/ui/uimanager.lua:52: in function 'default' frontend/ui/uimanager.lua:1313: in function 'handleInputEvent' frontend/ui/uimanager.lua:1407: in function 'handleInput' frontend/ui/uimanager.lua:1456: in function 'run' ./reader.lua:302: in main chunk [C]: at 0x00013e9d lipc-wait-event exited normally with status: 0
Maybe a ChatGPT problem, not a Koreader or plugin problem?

A 429 indicates that you were rate limited and that is why the error occurred.

Does it only work if you have the paid version? I already tried with 3 or 4 different API keys, same thing.

5 dollars is added when you make a new developer account. I didnot subscribe to any paid tier and it still works.

@drewbaumann
Copy link
Owner

crash report:
./luajit: plugins/askgpt.koplugin/gpt_query.lua:31: Error querying ChatGPT API: 429 stack traceback: [C]: in function 'error' plugins/askgpt.koplugin/gpt_query.lua:31: in function 'queryChatGPT' plugins/askgpt.koplugin/dialogs.lua:59: in function 'callback' frontend/ui/widget/button.lua:411: in function 'handleEvent' frontend/ui/widget/container/inputcontainer.lua:250: in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' ... frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/widget/container/widgetcontainer.lua:82: in function 'propagateEvent' frontend/ui/widget/container/widgetcontainer.lua💯 in function 'handleEvent' frontend/ui/uimanager.lua:824: in function 'sendEvent' frontend/ui/uimanager.lua:52: in function 'default' frontend/ui/uimanager.lua:1313: in function 'handleInputEvent' frontend/ui/uimanager.lua:1407: in function 'handleInput' frontend/ui/uimanager.lua:1456: in function 'run' ./reader.lua:302: in main chunk [C]: at 0x00013e9d lipc-wait-event exited normally with status: 0
Maybe a ChatGPT problem, not a Koreader or plugin problem?

A 429 indicates that you were rate limited and that is why the error occurred.

Does it only work if you have the paid version? I already tried with 3 or 4 different API keys, same thing.

5 dollars is added when you make a new developer account. I didnot subscribe to any paid tier and it still works.

Interesting. It's a paid API so I would assume you'd have to pay for this to work. This is not part of the research beta for ChatGPT which is free.

@TommyMay
Copy link

I have a similar issue with KOReader crashing after selecting a text and asking ChatGPT to f. e. summarize it.
The error I received is visible on the attached screen. I tested the API key in a simple Python application which calls ChatGPT API, which I issued also in api_key.lua file and I receive a response from the API. What could be the problem with this plugin not working?
Any help will be much appreciated!
20231017_212504

@drewbaumann
Copy link
Owner

I have a similar issue with KOReader crashing after selecting a text and asking ChatGPT to f. e. summarize it. The error I received is visible on the attached screen. I tested the API key in a simple Python application which calls ChatGPT API, which I issued also in api_key.lua file and I receive a response from the API. What could be the problem with this plugin not working? Any help will be much appreciated! 20231017_212504

@TommyMay yikes! I am sorry to see that it is blowing up on you. I unfortunately don't know that I have the ability to look into that issue at the moment.

On that note, I would love it if there are any Lua devs in the crowd who would be open to helping maintain this app!

@arjun9124
Copy link

Encountering similar issue here, PW3 5.13.7

@SmokeShine
Copy link

Encountering similar issue here, PW3 5.13.7

Check if you have credits. Free credits expire after 3 months. If yes, then add a credit card and put 5 dollars. Then remove the card. You will to create a new api key. Delete the old one.

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

5 participants