Drag and drop of blocks as PNG doesn't work

When I drag blocks as PNG onto the surface, these blocks remain invisible but an error is displayed. When I now click on 'show errors', I still see a blank screen. OK, the error is there, but why can't I see the blocks? How can I remove them?

Here are the blocks

[mod edit - blocks image removed to prevent project corruption]

and here the aia.
Test.aia (1,2 KB)

Browser Edge/Win 11

Thnx

Oh, and this message appears.

You could have a corrupt project.

Test with new project (after restarting browser/AI2)

The project I have attached is completely new, without any blocks.

Maybe it's because of Edge. I think the block you showed is a bit broken internally. Maybe Edge doesn't download the block image correctly. Try another browser, like Chrome.

Working OK for me here with Chrome, with my own png block image.

Your block image does not work, probably not valid.

In my case, in chrome, I corrupted my project by dragging its block. Yes, when I downloaded the image myself in chrome, then it works. That's why I thought it might be Edge's fault.

Yep, corrupted my project as well. Will delete that image!!

Only the image is not visible in the blocks.

From this topic, so others do not try...:wink:

1 Like

I saved it from a working project with Edge and then tried to import it again.

Exactly, that's the problem. The blocks are not visible, I can't remove them. The project is now broken.

So don't use Edge with AppInventor. It's not one of the recommended browsers for working with appinventor.

OK, but I only have Edge installed and have never had any problems with it. Why suddenly now?

I don't know. I'll try it on Edge later. See if it's a permanent problem or a one-time issue.

1 Like

What if I want to continue working on a different computer that only has Edge installed? Do I need to ask the user for permission to install Chrome?

So I tried Edge and I don't see a problem. The only thing I noticed is that for me the name of the downloaded block was e.g. "block(12).png". The name of your png file was: "500e373a6afed0ef6f11debfcc8b924a9e3e1afd.png", it seems to me that your png file was modified by some program or something. I have no idea what.

@Pac-Man

Try this block (drag and drop onto new project)

Remember to click on it first to get the full size image.

With this block, it works. No problem anymore. Even if I download the block and reinsert it, it works.

The name of the PNG from above was blocks(3).png. The PNG from TIMAI2 is named 86826a585b5251069d518701f4fcd88d44a2a517.png. When I save it from my project, it is saved as blocks(4).png, and I can easily reinsert it.

OK, it seems that your specific block was the issue?

Open a new project, create some blocks, download them as image, (don't do anything to them), then try dragging and dropping them back.