how do I fix the error messege "trying to read pixel out of bounds unityeditor.DockArea:OnGui ()

I have created sprite atlas with all the components for my character sprite. I saved it as a png.

The atlas showsup fine when I add it to the scene view.

But when I open the sprite editor to slice the image up it doesnt appear. And the error messege shows "Trying to read pixel out of bounds unityeditor.dockarea:ongui ()

How do I fix this?

Just figured it out. It’s probably your size bro.

My image was like 5700 H and 5000 Width or so. (Cant remember)

I made my size 1200 ad it worked out.

Click on Sprite and look at Max Size. You’ll notice it doesn’t support sizes higher than 4096 that could be why it was going all crazy.

Hope that helps dude. If not then idk if I could help any further, I’m not really an expert lol, just observing the situation.