Mobile Interface - Devices appear and disappear #144

Closed
studmuffinjj opened this Issue Apr 12, 2015 · 11 comments

Comments

Projects
None yet
2 participants
@studmuffinjj

I am experiencing this issue on the mobile interface where just 2 of my devices constantly disappear and reappear, presumably when the interface refreshes. I have my refresh set to 5 seconds. Below screenshots should indicate what I mean:

When I log on:
selection_017

After about 5 secs:
selection_018

After about 10 secs:
selection_019

After about 20 secs:
selection_017

And then both devices disappear again:
selection_018

These are device IDs 2 and 3. The other IDs don't seem to exhibit this problem. I have reinstalled the traccar server and dropped and recreated a fresh mysql database and the problem persists.

This is the April 7 version of traccar-web.war. The problem was experienced in previous releases as well.

@vitalidze

This comment has been minimized.

Show comment
Hide comment
@vitalidze

vitalidze Apr 12, 2015

Owner

Thanks for reporting, sounds like an issue from #126. Do you experience same issue when looking into mobile web UI from desktop web browser? If so then please take a look at the javascript console for error messages.

Owner

vitalidze commented Apr 12, 2015

Thanks for reporting, sounds like an issue from #126. Do you experience same issue when looking into mobile web UI from desktop web browser? If so then please take a look at the javascript console for error messages.

@studmuffinjj

This comment has been minimized.

Show comment
Hide comment
@studmuffinjj

studmuffinjj Apr 12, 2015

Yes, problem exists on both android mobile chrome browser and desktop browser accessing the mobile UI.
Here is the only output from the javascript console:

Consider using 'dppx' units, as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: (-webkit-max-device-pixel-ratio: 1), (max-resolution: 120dpi)

I believe you are correct that it is related to #126 because I have, on some occasions, opened the mobile UI on my phone and did not see one or two devices, even after waiting for a while, they never showed up.

Yes, problem exists on both android mobile chrome browser and desktop browser accessing the mobile UI.
Here is the only output from the javascript console:

Consider using 'dppx' units, as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: (-webkit-max-device-pixel-ratio: 1), (max-resolution: 120dpi)

I believe you are correct that it is related to #126 because I have, on some occasions, opened the mobile UI on my phone and did not see one or two devices, even after waiting for a while, they never showed up.

@vitalidze

This comment has been minimized.

Show comment
Hide comment
@vitalidze

vitalidze Apr 12, 2015

Owner

Ok, what about loading positions from archive? Do you get correct trace? Maybe these are some jumps related to incorrect work of GPS on your device?

Owner

vitalidze commented Apr 12, 2015

Ok, what about loading positions from archive? Do you get correct trace? Maybe these are some jumps related to incorrect work of GPS on your device?

@studmuffinjj

This comment has been minimized.

Show comment
Hide comment
@studmuffinjj

studmuffinjj Apr 12, 2015

On the desktop UI, loading from archive yields correct trace. If the device is in motion while on the mobile UI, they disappear and after a while, reappear at the new location. Web UI updates normally. There are 3 GPS devices, all the same gps103 protocol. Only 2 drop off the mobile UI.

When I dropped and re-created the mysql database, I entered the devices in a different order. One of them which was giving problems has stopped disappearing, now it's another one.

On the desktop UI, loading from archive yields correct trace. If the device is in motion while on the mobile UI, they disappear and after a while, reappear at the new location. Web UI updates normally. There are 3 GPS devices, all the same gps103 protocol. Only 2 drop off the mobile UI.

When I dropped and re-created the mysql database, I entered the devices in a different order. One of them which was giving problems has stopped disappearing, now it's another one.

@vitalidze

This comment has been minimized.

Show comment
Hide comment
@vitalidze

vitalidze Apr 12, 2015

Owner

Well, I will try to do a code revision next week to indicate an issue. But from my understanding the code is quite simple: both mobile and desktop UI use same code to retrieve latest positions, just the serialization format differs. Maybe this is some kind of issue in OpenLayers. You can also give me some kind of temporary access to your web UI if that's an option (in such case I can debug your issue directly in browser). Right now on my traccar instances this issue does not reproduce.

Owner

vitalidze commented Apr 12, 2015

Well, I will try to do a code revision next week to indicate an issue. But from my understanding the code is quite simple: both mobile and desktop UI use same code to retrieve latest positions, just the serialization format differs. Maybe this is some kind of issue in OpenLayers. You can also give me some kind of temporary access to your web UI if that's an option (in such case I can debug your issue directly in browser). Right now on my traccar instances this issue does not reproduce.

@studmuffinjj

This comment has been minimized.

Show comment
Hide comment
@studmuffinjj

studmuffinjj Apr 12, 2015

Not a problem. I have sent an email to vitavaque@gmail.com with details for admin credentials. Kindly confirm receipt.

Please let me know if you require SSH access to the server as well.

Thanks for your assistance.

Not a problem. I have sent an email to vitavaque@gmail.com with details for admin credentials. Kindly confirm receipt.

Please let me know if you require SSH access to the server as well.

Thanks for your assistance.

@vitalidze

This comment has been minimized.

Show comment
Hide comment
@vitalidze

vitalidze Apr 12, 2015

Owner

Got them, thanks. I will start looking tomorrow.

Owner

vitalidze commented Apr 12, 2015

Got them, thanks. I will start looking tomorrow.

@vitalidze vitalidze closed this in 0e2ace9 Apr 13, 2015

@vitalidze

This comment has been minimized.

Show comment
Hide comment
@vitalidze

vitalidze Apr 13, 2015

Owner

I think I have found and fixed the issue. Please try latest version.

Owner

vitalidze commented Apr 13, 2015

I think I have found and fixed the issue. Please try latest version.

@studmuffinjj

This comment has been minimized.

Show comment
Hide comment
@studmuffinjj

studmuffinjj Apr 13, 2015

Issue has been corrected. All devices remain on the mobile UI as they should now.

Thanks!

Issue has been corrected. All devices remain on the mobile UI as they should now.

Thanks!

@vitalidze

This comment has been minimized.

Show comment
Hide comment
@vitalidze

vitalidze Apr 13, 2015

Owner

Glad to hear that! Please don't forget to remove my user account from your server.

Owner

vitalidze commented Apr 13, 2015

Glad to hear that! Please don't forget to remove my user account from your server.

@vitalidze

This comment has been minimized.

Show comment
Hide comment
@vitalidze

vitalidze Apr 14, 2015

Owner

Written news, included in latest available and demo versions.

Owner

vitalidze commented Apr 14, 2015

Written news, included in latest available and demo versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment