Find doesn't work in the map window

Started by lama, October 25, 2024, 03:28:40 PM

Previous topic - Next topic

lama

I tried to geolocate some pictures, but the Find function doesn't work anymore. I can give any name, nothing happens.
It worked some weeks before. Nothing has changed since.
I'm using GeoNames.org, my account is ok.
Any help is appreciated.

Mario

Did you check the log file for warnings?
Maybe open the Output Panel (View menu) and switch to Apps before you search. If there is an error response, it might be logged there, or in the log file.

GeoNames.org works here just fine. Just tried.

Maybe your IP address or address range was banned for abuse? Can happen if you connect with a carrier that assigns you a pool IP and that pool IP was used for attacks or abuse before.

Restart your router perhaps to get a new IP address.
Double-check your GeoNames.org account is valid.
Retry in a couple of hours.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

lama

In the log file, I see this:

10.26 12:04:32+  407 [1C08] 00  M> >  0 CIMGeoLocationManager::GetLocations  'V:\develop\IMatch5\src\IMEngine\IMGeoLocation.cpp(228)'
10.26 12:04:32+    0 [1C08] 00  M>  <  0 CIMGeoLocationManager::GetLocations
10.26 12:04:34+ 2093 [38DC] 05  M> >  0 CIMatchWebServices::DestroySession  'V:\develop\IMatch5\src\imws\IMatchWebServices.cpp(3011)'
10.26 12:04:34+    0 [38DC] 05  M>  <  0 CIMatchWebServices::DestroySession
10.26 12:04:34+    0 [38DC] 00  M>  <  0 [11078ms #sl] CIMatchApp::InitInstance
10.26 12:04:34+    0 [2C20] 05  M> >  0 CIMatchWebServices::DestroySession  'V:\develop\IMatch5\src\imws\IMatchWebServices.cpp(3011)'
10.26 12:04:34+    0 [2C20] 05  M>  <  0 CIMatchWebServices::DestroySession
10.26 12:04:53+19125 [205C] 00  M> >  0 CIMGeoLocationManager::GetLocations  'V:\develop\IMatch5\src\IMEngine\IMGeoLocation.cpp(228)'
10.26 12:04:53+    0 [205C] 00  M>  <  0 CIMGeoLocationManager::GetLocations

(full log file is attached)


When I open the Find window, press F (Ort suchen), in the Apps output this line appears:
Autofocus processing was blocked because a document already has a focused element.
I type a city (Frankfurt), nothing happens. After pressing the Return button, the Find window disappears, the map stays where it was (not in Frankfurt).
When I open the Find window again, press F, the same sentence appears in the Apps output (Autofocus processing was blocked because a document already has a focused element.).
After that, the Return button doesn't work anymore. I have to close the Find window with the X.


Geonames.org works for me, I can log in to my account.

Restart of the router, got new IP, Find still don't work.

As I said, nothing has changed in the iMatch config. Geolocation worked some weeks ago with no problem.

Mario

None of these log entries are of relevance. No related warnings in the log file.
After checking that my GeoNames.org user account is entered correctly in Edit > Preferences > Geo & Maps, I search for Frankfurt in the Map Panel and I get:

Image1.jpg

So it works here. No other user has reported any issue. Not sure what I can do.

1. If you are experienced, open the Map Panel in your WebBrowser using this URL:

http://127.0.0.1:50519/imatch/apps/FEATURES/mapapp/index.html

(the port number after the : may be different on your PC, check the Info & Activity Panel or Dashboard for the port number used).

2. Open the developer tools with <F12>
3. Switch to the network tab and clear it (usually a trash can icon button at the top).
4. Open the Search Panel and search for Frankfurt

You should now see something like this in the Network tab - IMatch sending a request to GeoNames.org

Image2.jpg

The Response tab (Google Chrome browser) shows what GeoNames.org has returned, in my case:

Image3.jpg

If there is a communication error, your request is blocked, GeoNames.org returning any error codes etc., it will show in the Network tab and the response status code and response from GeoNames.org may help figure this out.

-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

rolandgifford

Quote from: Mario on October 26, 2024, 01:22:59 PMAfter checking that my GeoNames.org user account is entered correctly in Edit > Preferences > Geo & Maps, I search for Frankfurt in the Map Panel and I get:

...

On the small number of occasions that I have used this functionality I remember that I have to select one of the multiple options found by the search for it to become 'active'. Is it possible that there is some difference in the manual/automatic selection process in this case?

Mario

I don't follow. Make sure your account for GeoNames.org is entered in Edit > Preferences > Geo & Maps:

Image1.jpg

In the Map Panel Find dialog, also select GeoNames.org (see my screen shot).
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

lama

#6
My answer to your post at 1:22.59 got lost somewhere ...

I got an 401 error. So I decided to get a new account at GeoNames.org, made it, was activated and logged in. I entered the new account name in the Geo&Maps and selected GeoNames.org in the Find dialog. Result: 401

I got three errors in the network tab. Maybe the first two are important?

ADMIN: Removed tons of junk data. DO NOT copy & paste this kind of stuff into your posts. Use the attachment function, we have this for a reason.
      
       
      GET http://api.geonames.org/searchJSON?callback=jQuery34009803673730249449_1729943733002&q=Frankfurt&maxRows=5&style=MEDIUM&orderby=relevance&lang=de&username=ima66&_=1729943733003 net::ERR_ABORTED 401 (401)

Mario

Please don't dump hundreds of lines of nonsense data into your post. This fills the community search engine with nonsense and is bad for users. We have a way to attach text files for a reason.

I have removed the crap this time. I do that only once.

All the console output you have posted is normal Map Panel Behavior.
The 401 HTTP status code GeoNames.org returns means Unauthorized. Your account has no access. Make sure you have not only created but also enabled it, as described on the GeoNames.org web site: https://www.geonames.org/manageaccount
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

lama

Sorry for this, I will not do it again.

The reason it doesn't work with the new account was that the user account was not enabled to use the free webservice. I did this and it works now.

However, this does not explain why my first account has stopped working.

Mario

QuoteHowever, this does not explain why my first account has stopped working.
That's not an IMatch problem and nothing IMatch can solve. Use your old account and repeat the test. See what GeoNames.org returns. 401 or 403?
Contact GeoNames.org support. Probably an IP ban or abuse ban.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook