"An Internal Error has occured" and it prevents me from using the designer view

Hi,

Today I was trying to re-arrage some labels on a horizontal arrangement. I had issue to make them switch places, they would not move over and rather disappear. So I thought about copy and pasting the labels to then edit them, but as soon as I hit the keys "ctrl+c" and "ctrl+v" I got a message saying "An internal error has ocurred. Report a bug?" The particular situation here is that the designer view does not display all the components I had added previously, and it shows up like in the picture below. The weirdest thing is that all the interface components are still listed on the right side of the menu, but I cannot see them neither manipulate them.

This is a very important project that I was almost done developing, which has taken me months, and I really hope I can recover all the data. The blocks are still there and all the list of components. How can this be solved?

image

This is 1/9 of the total componentes I had, none of them can be seen:
image

I approve the access to my account to help find the issue. Thanks in advance!

I have faced this issue when I use arrangements.
My advice is: NEVER use CTRL+C and CTRL+V inside any form of arrangements, it just creates an internal error.
I had 150 components in the designer, did a copy paste and had to redo the designer on another screen :sob:

Just make another screen and redo the designer


Please export your project and post it here.

1 Like

Thanks for your replies.

@ABG Here is my project:
MCmeterV1.aia (330.4 KB)

Thanks Alaqmar. This would be a lot of work, but it is a good idea I did not think about. I hope there is another way around.

Well, I know it is a lot of work. The thought of redoing the designer can scare anyone out :joy:

Even I would like to know that :smile:

OMG this must have hurt. I feel you! Let's see what @ABG has to say about this issue. Fingers crossed! :crossed_fingers:

1 Like

I got a bunch of errors trying to load your project into the code.appinventor.mit.edu server.

I loaded the .aia file in the Unchive tool at


and explored your deep nest of vertical and horizontal arrangements, but could not tell if anything was out of place, because of a lack of helpful naming conventions.

You could help by checking your tree structure in Unchive to see if anything is misplaced.

1 Like

Your Screen1 has a lot of arrangements, and a lot of your components have their height or width set as automatic, which can be a chore for the Designer at layout time.

I notice from your Arrangement nomenclature that you have devoted some of the to specific crops, i.e. soybeans.

Have you tried reducing your component count by reusing them for different crops?

Could you split your apps into multiple apps by crop, copying screen sections one by one into new smaller apps?
Here is a partial copy I attempted, until I ran into another error when I got greedy trying to carry over too much...
MCMeterV2ABG.aia (13.5 KB)

As the old saying goes,
If you ask for too much you end up with nothing.

How old is your latest .aia export file?

P.S. I notice AI2's visibility handling in the Designer breaks down once it gets an internal error. Usually, hiding (Visible=false) a parent Arrangement should hide everything in it. That's not happening for your project.

I thought of a way to export and save parts of your Designer work, for transplantation or cloning into new projects.

Once copied in the Designer, an Arrangement and its components have a text representation suitable for paste into Notepad, from which you can save it in a directory structure matching your app structure, as .txt files. Those can be copied and pasted into new projects for a rebuild. Any text export that produces an error at import time is too big or complex, and its export should be redone in smaller bites.

P.S.

Your Designer problem reminded me of something I saw elsewhere recently ...

Hi ABG, I do not have dedicated arragements for each crop. I am using two crops only, and the different screens are reused for each one. The only dedicated item per crop is the button to pick the crop at the beginning.

The project would not load. It says: Server error: could not upload project. Please try again later!

Sadly, I did not have a previous export of my work. I trusted MITAI2 too much.

This is really bad news. I'll try to explore my arrangements, but I am not sure what am I looking for?

What would be a more helpful naming convention? I named everything that was important to be recognized from the blocks, which was almost everything. I named the arrangements VArr (Vertical Arragement), HArr (Horizontal Arragement), labels LBL and buttons BTN, etc. Many of what is not named are labels used to fill empty space to help the visuals.

How can I get this text representation from? Also, how do I check the app directory structure?

Thanks for all your help, it is huge!

I successfully loaded this, but when I open it, I see the components you separated in the list on the right menu, but I do no see them in the designer view at all. Do you see them the same way as me?

Try this one MCmeterV1Bob.aia (330.4 KB), also you might want to rearrange labels in TableArrangement1..

OMG! It works! I am extremely happy! What did you do to fix it? I am beyond happy!

Long story short, one of the labels in TableArrangement1 didn't have a position (Column and Row) and thereby whole project broke..

Let's discuss diagnostic techniques for this kind of problem.

I imagine a Divide and Conquer approach starting from the component tree in the Designer, where you start at the root (Screen1), take an immediately descendant Arrangement, copy it (Ctrl-C) in the tree pane, and try to paste it into an empty project.
If it pastes with no error, it's okay, so try the next sibling branch
If it has an error, take a fresh empty target project, and home in on the problem Arrangement, taking it as the new root of the subtree to explore.
Repeat until you have the smallest possible Arrangement that causes an error on paste.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.