While I was writing for help about the particular “Runtime Error - End application” error, I found a bug and I was able to identify the root cause.
So I had blocks like below, where I was fetching the data from Firebase and then storing it under TinyDB at login. I do not have values for User_VehicleNumber and User_isDriver. I found out that in the first tinydb store value User_vehicleNumber block, if the value is not found then it will store “not found” (as its a string), if the value is literally not there. However, in the second block User_isDriver, it is encountering the mentioned error(Runtime Error). Somehow tinyDB is not able to store boolean values, if the data does not exist hence throws an error.
I just wanted to write about this, maybe some other folks face the same error and this can be helpful for them. This might be possible for other component as well.
Issue: “Runtime error end application”
Cause: TinyDB not able to store the boolean value in case not found.
Fix: Either create the values before storing it under TinyDB or change the boolean to string format (“false” or “true”) instead of the boolean component.






