Hi everyone,
A strange thing happened to me; basically, after making some simple changes to my app, when I launched my APK, I got this strange error and then discovered that my entire TinyDB had been deleted.
See all the other topics raised regarding this. e.g.
TinyDB is basically saving my values as it wants!!
Means?
Basically, in the companion I get the error: Invalid dimension size: 0; so it doesn't save the data to TinyDB... while in the APK, I save a value of "1" and reopen the app, I find a value of "2".![]()
To overcome the current error with tinydb in nb204 I used this approach:
- Where you would normally set an empty list, set a list with one unique value, one that is unlikely to appear in your list
- When it is time to store a real value to the tinydb list, check for the presence of the unique value
- If present, reset the list to empty, then store the value to the list, otherwise store the value to the list
- store the list to the tinydb
You didn't add anything to your list ? You should be storing your list to tinydb not a textbox value.
But I don't need to save a list on tinyDB, but rather some text boxes. P.s: How long will it take for TinyDB to return to how it was before?
What is your bug ?
ValueNotThere of a blank text in GetValue does not generate an error ?
Show your blocks that cause the errror ?
I thought about abandoning my problematic app and remaking it more simply. So I started creating a simple shopping list... but still, I get that annoying message: Invalid dimension size: 0.
It happens right during initialization. But where do you think I went wrong?
Why dont you just debug your blocks in your screen init to see if you get the right results??
Basically, as long as there are items in the main ListView, the other TinyDBs are loaded too... but when I delete them all... I get "Invalid size: 0." and nothing is loaded anymore.
As covered earlier, the production servers are not yet fixed to resolve this error.
I provided you with a workaround for this.
Essentially if a tinydb tag 's value is set to empty list then the error is generated.
Your tinydb tags with lists always need to have something in the list.
If you are going to store a tinydb tag as a list, your valueNotThere needs to be a list, usually we would set an empty list, but because this draws an error, we have to set a list with something in it, then use an if condition to test the content.
Have you tried your aia project on the ai2-test server, where this problem is fixed?
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.




