Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile Interface - Devices appear and disappear #144

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

Mobile Interface - Devices appear and disappear #144

studmuffinjj opened this issue Apr 12, 2015 · 11 comments
Labels

Comments

@studmuffinjj
Copy link

@studmuffinjj studmuffinjj commented Apr 12, 2015

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
Copy link
Owner

@vitalidze 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
Copy link
Author

@studmuffinjj studmuffinjj commented 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.

@vitalidze
Copy link
Owner

@vitalidze 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
Copy link
Author

@studmuffinjj studmuffinjj commented 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.

@vitalidze
Copy link
Owner

@vitalidze 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
Copy link
Author

@studmuffinjj studmuffinjj commented 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.

@vitalidze
Copy link
Owner

@vitalidze vitalidze commented Apr 12, 2015

Got them, thanks. I will start looking tomorrow.

@vitalidze vitalidze closed this in 0e2ace9 Apr 13, 2015
@vitalidze
Copy link
Owner

@vitalidze vitalidze commented Apr 13, 2015

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

@studmuffinjj
Copy link
Author

@studmuffinjj studmuffinjj commented Apr 13, 2015

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

Thanks!

@vitalidze
Copy link
Owner

@vitalidze vitalidze commented Apr 13, 2015

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

@vitalidze
Copy link
Owner

@vitalidze 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.