Qt-dev / exile-diary

A game tracker for Path of Exile. Track literally everything that drops in your maps, and more!
41 stars 6 forks source link

"undefined" is not valid JSON - Error report for exile-diary 1.4.5 #251

Closed rawrstylin closed 11 months ago

rawrstylin commented 11 months ago

Error:

SyntaxError: "undefined" is not valid JSON
    at JSON.parse (<anonymous>)
    at Inflate.cb (C:\Program Files\Exile Diary Reborn\resources\app.asar\build\main\StashTabsManager.js:27:38)
    at Inflate.zlibBufferOnError (node:zlib:146:8)
    at Inflate.emit (node:events:513:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

OS: Windows NT 10.0.19045 App: exile-diary 1.4.5

rawrstylin commented 11 months ago

Hi there - just installed on Windows 10 and I keep getting this error trying to launch the program. I am unable to get to the 1st setup instruction listed in documentation.

Qt-dev commented 11 months ago

The configuration part of the documentation is out of date anyway for now. I changed the login flow a while ago and did not get to update it.

For this error, that's interesting. When you launch the app, does it tell you to login at least or does not launch at all?

rawrstylin commented 11 months ago

There is no login screen. Only the error appears.

rawrstylin commented 11 months ago

Hi QT, an update, the application seems to launch now, I see an overlay when launching POE but the program doesn't seem interactable and the overlay doesn't seem to update on zone changes. The program appears in the taskbar but doesn't actually open for me to go into settings and other options.

rawrstylin commented 11 months ago

image

Qt-dev commented 11 months ago

Interesting. Restarting it does not change anything for you I suppose ?

rawrstylin commented 11 months ago

No, it didn't change anything. I tried running in admin and regular mode. A little sad because I absolutely love this addon/tool and used the old version for the longest time before it got really wonky/broken.

Qt-dev commented 11 months ago

I understand yup, I was in the same situation and that's how I ended up taking over (to get rid of the wonkiness hehe) I am having breakfast right now but I will have a look to try and see if I can trigger the same bug in here. Hopefully I get a fix before league start :)

rawrstylin commented 11 months ago

This is what appears in-game:

image

rawrstylin commented 11 months ago

Anything else I can do to try and help diagnose?

Qt-dev commented 11 months ago

Yup, could you give me the logs from %AppData%\exile-diary ? They should tell me what I need to know to understand what is happening.

The overlay looks like it started and is showing what it should, that's good news at least

rawrstylin commented 11 months ago

I think I got it working! I think old exile diary files were conflicting or not properly removed in the uninstall process. I ended up deleting everything in app data roaming and local update folders. Reinstalled the latest version and I got a POE login screen but cant test further since servers are now down. Fingers crossed :)

rawrstylin commented 11 months ago

log.txt

rawrstylin commented 11 months ago

main.log

the new log file that was generated -

Qt-dev commented 11 months ago

Perfect. Can you try doing Windows+Right arrow when you have the app selected ? It looks like it is somehow starting right after your screen and the Windows key + Right or Left arrow should make it pop on your screen

rawrstylin commented 11 months ago

Interesting - I have never used that shortcut and it doesn't seem to work on my PC. Really weird... I'll test again once servers are up, I started getting a timeout error so closed application for now.

rawrstylin commented 11 months ago

Wow just discovered that the Windows key doesn't work on this keyboard... so much for hand-me-downs from my brother... argh.

Qt-dev commented 11 months ago

Haha yeah, that happens. Ok, a couple more solutions then :

rawrstylin commented 11 months ago

image

So far so good :) Haven't tried the settings file yet.

Qt-dev commented 11 months ago

Perfect :) I'll close this issue for cleanup then, but feel free to join on Discord if you have any issue, comment, question, or even just wanna chat while waiting in Queue :p