aim icon indicating copy to clipboard operation
aim copied to clipboard

Something went wrong in Image Explorer

Open Roman223 opened this issue 8 months ago • 11 comments

🐛 Bug

Something went wrong

Image

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)

Roman223 avatar Apr 22 '25 11:04 Roman223

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? 🤔

mihran113 avatar Apr 22 '25 11:04 mihran113

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

Image

Images not

Image

Note that with steps there is something wrong...

Repo:

aim.tar.gz

Roman223 avatar Apr 22 '25 11:04 Roman223

I have made a brand new venv for this. Result is the same

Roman223 avatar Apr 22 '25 11:04 Roman223

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?

mihran113 avatar Apr 22 '25 12:04 mihran113

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...

Roman223 avatar Apr 22 '25 14:04 Roman223

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?

mihran113 avatar Apr 22 '25 14:04 mihran113

Oh, I've managed to fix this by running in Incognito in Google Chrome.

From browser I got this error (in default chrome window):

Image

That's odd...

Anyway in Incognito got this:

Image

But the root of this problem remains unknown..

Roman223 avatar Apr 22 '25 14:04 Roman223

In Mozila everything works fine

Roman223 avatar Apr 22 '25 14:04 Roman223

I would suggest to clean the cache as well, as it is working fine in incognito mode.

mihran113 avatar Apr 22 '25 15:04 mihran113

Yes! I did this in the very beginning, but it gave no effect. I've done this twice..

Roman223 avatar Apr 22 '25 15:04 Roman223

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:

broken link


And this was found in Mozila:

ok link

Seems no difference to me, but one works, another doesn't...

Roman223 avatar May 06 '25 08:05 Roman223