localStorage takes a lot of time to save the values

Bug #1469487 reported by costales
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
oxide-qt (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi!

I'm using localStorage HTML5 for read/save the user preferences in GPS Navigation.

It's working, but it's taking (random time: 3", 5", 10") to really save those values.

Testing:
- Install my attachment.
- Running from the SDK the click numbers are OK. You can restart the app and the clicks will be OK.
- Running from the mobile if you click from 5 to 10 clicks the button and you kill the app fast, the next clicks will be 5, not 10. You have to wait a lot of seconds for real save that value.

For the test, I added to a normal HTML5 app in the SDK with this HTML5 code: http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_webstorage_local_clickcount

Thanks in advance!

Revision history for this message
costales (costales) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in oxide-qt (Ubuntu):
status: New → Confirmed
Revision history for this message
costales (costales) wrote :

@Olivier: I really think is not related to the bug #1456267.
The problem is:
- Webview is getting the values in the moment: In my attachment, you click on button and is getting the current clicks done.
- Webview is not storing the values in the moment: In my attachment, you can wait 2" and kill the app. In those 2", the app didn't save the values.
Thanks in advance!

Revision history for this message
Olivier Tilloy (osomon) wrote :

Marcos: and I’m pretty sure it is :)
What you’re seeing is the localStorage data not being written to disk synchronously, but only periodically. If you kill the app before the data has been flushed to disk, it won’t be persisted. This is fixed in oxide 1.8, to be released soon.

Revision history for this message
costales (costales) wrote : Re: [Bug 1469487] Re: localStorage takes a lot of time to save the values

Great :) Now I understood the problem :) Thanks a lot Olivier!

On Mon, Jun 29, 2015 at 10:58 AM, Olivier Tilloy <
<email address hidden>> wrote:

> *** This bug is a duplicate of bug 1456267 ***
> https://bugs.launchpad.net/bugs/1456267
>
> Marcos: and I’m pretty sure it is :)
> What you’re seeing is the localStorage data not being written to disk
> synchronously, but only periodically. If you kill the app before the data
> has been flushed to disk, it won’t be persisted. This is fixed in oxide
> 1.8, to be released soon.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1469487
>
> Title:
> localStorage takes a lot of time to save the values
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/oxide-qt/+bug/1469487/+subscriptions
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.