App crashing, no infinite loop


Hello,
I have this issue, where the app crash, when performing this function. Even tho its a long loop, while count<29 and while count<12. It can perform the first few loop and then stop. So there no actually problem with the structure. When the app is going though the loop, i cannot do anything in the app. is there a way to run it in the background. So the app doesn't think it lagged and crash it itself.

1 Like


Maybe you forgot to add an input here. If only three input is required so fix the block to take only three parameters.

Yes, I'm linking some useful extensions.

1 Like

replace the outer loop by a clock component and inside the clock timer event do only the inner loop for the current month, then send the text for the current month and increment global variable month_count

no extension necessary

also adjust the timer interval to an interval the sender is still able to receive the messages, start with a timer inverval off 1000 milliseconds

Taifun

1 Like

Those extensions are really good, but when i install this [Free] Async Procedures | Extension. i cannot connect to the ai companion. After scanning the qr code it just get stuck on main page without opening the app. i can still download the apk and it works perfectly but the usb and ai companion don't work. can someone help me

Could you please show us the relevant blocks that how you're trying?

just by importing the extension and not adding block its stops working. do you know if there is similar extension i could try out.

You may try the Itoo extension. It has gained significant popularity and support within the community.

Weirdly enough when i try another extension the companion stops working. it just get stuck in the menu page. And when i remove the app, it tells me that the companion has been disconnected as if it was connected

If it's working on the built apk, so you may continue with that extension.

I am also experiencing a similar problem, even with a very simple AIX. When I remove the AIX from the import section, the companion connects successfully. However, if I only import the AIX, the companion becomes stuck. I am encountering this issue on Android 14, while it functions properly on Android 13. Therefore, I believe the problem does not originate from the extension but rather from the companion app or App Inventor itself.

1 Like

I found the solution here. Please download the Companion from here and let us know if it is helpful for you?

1 Like

worked ! thank you

1 Like

You're welcome :bouquet::bouquet:

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