-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
attempt to fix bad inserted values for photo lat/lng #98
Conversation
Signed-off-by: Julien Veyssier <[email protected]>
Me neither thats why I just posted the log. |
There's no rush but: Once #94 is resolved and this fix is tested, accepted and merged, I'll probably publish v0.1.2 |
Yeah I know, I tested it on my development system with sqlite database but there the problem did not occur even without the fix. |
Do you mean it occurred without the fix and then you tried again and it didn't occur (still without the fix)? If so, it will be hard to be sure we avoid this kind of crash. |
Yeah, well I putted the picture onto my dev installation, which uses sqlite so there is a difference now I try if I can reporduce the problem on my production system. But this takes time due to the number of pictures. |
You could add the file in a fresh user account and scan for this user only. |
Ok the error can be reproduced with mysql database but not with sqlite. |
Were you running this PR's branch while testing on your mysql setup? |
No I first tried to reproduce the error. It allways happs on mysql but not on sqlite. |
It seems impossible to me 😄. I just tried in interactive mode with php7.2 and it's not. |
Ouch, strange thing:
It appears NAN is numeric and "NAN" is not. But how does the constant NAN reaches the variables we use? Could you quickly try to change the check and also verify that lat and lng are different than NAN? |
Signed-off-by: Arne Hamann <[email protected]>
Nice! I guess you tried it and it works 😄. |
Trying to fix #95.
I don't know how we can get strange lat/lng values but I hope at least the symptom is fixed with this PR.