If I insert this block, execution stops at the point

I put a memory_Storge block and it stopped running at that block. Since local storage is used a lot this way, I don’t understand why it hangs.

Live Test will run like the video above.

Download ios / android and it will run like the video above.
I choose the right answer and the screen freezes and doesn’t move on to the next problem.

So to see the cause, I looked at the block that implemented this part.
The figure above shows the execution block when the correct answer is chosen.
When the live test is running without any problem, it breaks down one by one to explain why it should not be downloaded.

So what I found is the first picture attached.
The problem was with local storage.
But I haven’t solved the problem yet.
I tried changing the name to English to try to solve it, but the hang continued.

Is this a bug?
Please comment.

For now, inserting a list insert block will stop execution.
I don’t know what the cause is.


So far I think
There seems to be an error in the list insert at block.
Runs up to the insert block and stops at insert.
If you insert the insert block into then do like the attached snapshot, execution will continue without stopping.

@mom7667yafy, can you try placing a label in your app and the using this to output the contents of your list, before and after writing to it?

Thanks

I don’t know what you mean.
Does what you say solve my problem?

After printing the value obtained from local storage to the label
Do you mean run a list insert?

I’m just hoping to diagnose the problem first - so for example, I’m wondering if you’re initialising the list, or what values you have before and after you write values to your list?

https://x.thunkable.com/copy/2277e40420af63fe2c4f066e899f9610

I created a partial sample that shouldn’t be in my app.
Pressing the done button adds the word pressed to the local storage.

By the way, the sample works strangely what I want.
In live test, it should work normally and if you download it,
The samples I made both work fine. So something is different.
But the concept is the same.

What I don’t do in my app is that it stops running in the insert block, which adds the completed word to the list. It doesn’t go to the next code.
But live test goes well. By the way, do not run the file you downloaded. I’m very confused because the live test and the downloaded file run differently.

Hi there,

The Local Storage component is suited to storing a single value at a time. it does not work well with lists.

The best option would be to save everything you currently have as a Local Storage value as a stored variable. These fulfill the same task as the Local Storage component (saves data between sessions) except 1) the stored variable is easier to use and 2) it can be of any data type, including lists.

If you really want to stay using the local storage component, you will need to 1) convert your list to a string before saving it to Local Storage, and 2) convert that list to a string when you retrieve it. You can find the block for these functions in the Lists drawer of blocks.

Thanks,
Jane

I did my work based on what you said.
Most of the local storage has been changed with the stored variables.
In the live test, it is faster and reduces the number of blocks.
However, when I run the app with ios / android download, the same phenomenon does not proceed.
If it does in live test but not in download, isn’t it a bug?


Whether working with local storage or stored variables, everything works fine with Live Test.
But when I download and run the app, it doesn’t work.
Like the YouTube video I attached to the community, the screen freezes when the quiz is correct.
I think this is just a bug.

That last block is still saving a list to Local Storage. Please either use a stored variable block or a block to convert the list to a string.

The last block has nothing to do with the freezing that happens to me.
But I’ll try again later.

Just remove the two insert blocks in the attached picture and everything works fine.