bfabiszewski / ulogger-server

μlogger • web viewer for tracks uploaded with μlogger mobile client
GNU General Public License v3.0
542 stars 85 forks source link

Node icons (white) missing when viewing track #141

Closed stevegdavis closed 4 years ago

stevegdavis commented 4 years ago

I have just noticed that if I view http://ulogger-demo.herokuapp.com with Chrome or Edge (Windows 10 Pro) that only the start and end icons are visible but no other (white) nodes are visible sometimes there are black squares instead of the white icons. I can still click on the waymarks to get the popup. All icons appear OK on Firefox 81.0 see left hand side of screenshot (Android chrome browser is OK) as well). I tried all the usual clear cache etc... ulogger browser icon error

bfabiszewski commented 4 years ago

Thanks for the report! I am on mac now, but I gave it a quick test on browserstack.com (win 10, edge) and it looks correct there. I will try to do some more testing later on some windows machine.

image

stevegdavis commented 4 years ago

Thanks for the reply. Not sure if this is any help but I just tried again and got the following on Chrome (Win 10).

ulogger browser icon error 2

However I have just tried on a Win 10 laptop and all is fine on Chrome and FF.

Also if I try to launch a debug session to Chrome from Visual Studio Code (server running on same Win 10 PC) I get an exception:-

ulogger browser icon error VS Code Chrome

and launch VS code Firefox similar exception:-

ulogger browser icon error VS Code Firefox

I have always used VS Code in the past and had no problems with ulogger-server 0.6 on this machine.

bfabiszewski commented 4 years ago

This is a caught exception and it is normal. It doesn't affect the application.

Have a look at Chrome DevTools. There may be some hints in Console or Network tabs. In Network tab you may select "Disable cache" checkbox, reload page and look for problems.

stevegdavis commented 4 years ago

That's funny when I disable the exception breakpoints the chrome launch gets as far as the login page but then crashes (open browser closes) but carries on when launching to FF. Console tab (Chrome) just says 'Navigated to http://ulogger-demo.herokuapp.com/'. Can't see anything untoward in any tab, screenshot of (Chrome) Network tab:-

ulogger browser icon error 3

bfabiszewski commented 4 years ago

I checked on some windows 10 machines and I couldn't reproduce your problem. It seems to be limited to your particular setup. Both Chrome and Edge are Chromium based, so it is possible that the engine is affected by some rare rendering problem related to your hardware/drivers. Anyway I don't think this is µlogger issue. You could try to report it upstream to openlayers or browsers teams. Keep me updated if you find out anything.

bfabiszewski commented 4 years ago

You might try to turn off hardware acceleration in Chrome and see if that has any effect.

stevegdavis commented 4 years ago

Unable to solve the problem, tried other chromium based browsers they also show the same problem, however as you suggested turning off the hardware acceleration 'cures' the problem. However if I change the 'normal' iconStyle in api_openlayers.js file (and npm re-build) to say the stop icon the icons now appear OK:-

ulogger browser stop icon

That in it's self is rather strange.

stevegdavis commented 4 years ago

Just found out it is an opacity problem on chrome, just removed the line opacity: 0.7, and the icons appear OK.

bfabiszewski commented 4 years ago

I just wanted to write it must be opacity issue. :) You could prepare a simple test case and report it to openlayers. Maybe it is fixable on their side?

stevegdavis commented 4 years ago

OK have you sent anything to the open layers team before, is there a forum or something?

bfabiszewski commented 4 years ago

I reported some issues at https://github.com/openlayers/openlayers/issues before. They respond pretty fast. It is better that you report this problem, because I can't even reproduce it.

stevegdavis commented 4 years ago

OK, thanks for your help, I will close this issue.

bfabiszewski commented 4 years ago

I found a fiddle that you could use as a base to create a test case: https://jsfiddle.net/geocodezip/k5wzhvb3/5/ Originally it illustrated some other issue, but you could adjust it to show your problem.

stevegdavis commented 3 years ago

@bfabiszewski just a courtesy message to say the problem has now gone away on my Windows 10 PC, white markers appear OK, thanks again for your help.

bfabiszewski commented 3 years ago

Thanks for the update! Out of curiosity, did you find out what the issue was?

stevegdavis commented 3 years ago

No, I didn't look into at all as per your suggestions , the only thing that has happened since is a usual Win10 update. I looked at updating the graphics driver but I couldn't it as the chipset on my PC is no longer supported, sorry can't explain it at all, probably it will return!!