Something went wrong in Image Explorer
🐛 Bug
Something went wrong
To reproduce
Probably kill aim process with kill -9 pid, and then restart pc
Expected behavior
Image Explorer shows images.
Environment
aim 3.28.0 aim-ui 3.28.0 aimrecords 0.0.7 aimrocks 0.5.2 Python 3.12.9 pip 24.3.1 OS Linux Mint
Additional context
aim storage reindex, aim storage prune and aim runs close had no effect. I tried to reinstall aim, no effect as well. It seems it is not working an any case including brand new repo. Also I clear cookies, no effect as well.
Google Chrome inspect result:
loader.js:6 A preload for 'http://127.0.0.1:43800/static-files/vs/editor/editor.main.js' is found, but is not used because the request credentials mode does not match. Consider taking a look at crossorigin attribute.
(anonymous) @ loader.js:6Understand this warning
react-dom.production.min.js:216 TypeError: Cannot read properties of undefined (reading 'content')
at onActivePointChange (imagesExploreAppModel.ts:1192:15)
at MediaPanel.tsx:100:11
at MediaPanel.tsx:112:7
at Object.onListScroll [as onScroll] (MediaPanel.tsx:242:5)
at t.<anonymous> (createListComponent.js:404:22)
at t._callOnScroll (memoize-one.esm.js:40:31)
at push.E.n._callPropsCallbacks (createListComponent.js:436:14)
at push.E.n.componentDidMount (createListComponent.js:245:12)
Hey @Roman223! Is it possible for you to share the faulty repo? Did I get it correctly that the error persists even on brand new repos? 🤔
Hey @mihran113!
I'm afraid I can not. But I can share with you a brand new repo that also doesn't work. Actually, it seems I have to share some cache or something else that's not removed with pip uninstall aim (and all libs from pip list | grep aim).
Code:
import aim
import numpy as np
import matplotlib.pyplot as plt
from aim import Image
def main():
tracker = aim.Run(experiment="test_experiment")
x = np.linspace(0, 1, 100)
y = np.linspace(0, 1, 100)
for i in range(100):
tracker.track(5, name="test score", epoch=i)
fig = plt.figure()
plt.plot(x, y)
plt.title(i)
plt.close(fig)
aim_fig = Image(fig)
tracker.track(aim_fig, epoch=i, name="progress")
if __name__ == '__main__':
main()
Result: Metrics are ok
Images not
Note that with steps there is something wrong...
Repo:
I have made a brand new venv for this. Result is the same
Huh, there must be something wrong somewhere else, I can see fine the logs you have provided. Can I ask if there are any error logs for aim up command?
If I just invoke aim up:
Running Aim UI on repo `<Repo#-4321863086304846917 path=<HIDE>/aim_corrupted/.aim read_only=None>`
Open http://127.0.0.1:43800
Press Ctrl+C to exit
BUT I can change log level and aim up --log-level DEBUG get this message appearing constantly:
INFO:aim.sdk.index_manager:No un-indexed runs found. Next check will run in 6 seconds. Waiting for un-indexed run...
<...>
Probably not an error but anyway...
This just keeps getting stranger and stranger. So that means there are no errors from BE side. Can I ask you to try a different browser as well?
Oh, I've managed to fix this by running in Incognito in Google Chrome.
From browser I got this error (in default chrome window):
That's odd...
Anyway in Incognito got this:
But the root of this problem remains unknown..
In Mozila everything works fine
I would suggest to clean the cache as well, as it is working fine in incognito mode.
Yes! I did this in the very beginning, but it gave no effect. I've done this twice..
Well, a new info on this bug. Recently I found a way to fix this in Chrome.
I took a link from Mozila and pass it to chrome and it works!
Broken link that Chrome opens by defualt:
And this was found in Mozila:
Seems no difference to me, but one works, another doesn't...