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

RuntimeError: wrapped C/C++ object of type SwissLocatorFilterFeature has been deleted #91

Open
gacarrillor opened this issue May 28, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@gacarrillor
Copy link
Contributor

Attempting to replicate #52, i.e., searching repeatedly for ort lavertezzo, I stumbled upon another issue:

image

Backtrace exported from the First Aid plugin at:
issue.json

@gacarrillor gacarrillor added the bug Something isn't working label May 28, 2024
@gacarrillor
Copy link
Contributor Author

On the other hand, while typing a simple search (e.g., ort lavertezzo) there are tons of messages like the following in the QGIS log widget's Qt tab.

@3nids, is this expected? Do you have an idea on what could be causing it?

2024-05-28T09:44:29     WARNING    QObject: Cannot create children for a parent that is in a different thread.
             (Parent is QNetworkAccessManager(0x62571aa85cf0), parent's thread is QThread(0x625712568600), current thread is QThread(0x62571609fd10)

@gacarrillor
Copy link
Contributor Author

gacarrillor commented May 28, 2024

Doing initial tests on Qt6, I was able to easily replicate this issue. A single search (don't even need to repeat it, just typing it quickly) triggered it.

I can obtain the final results for the search if I type really slowly ort lavertezzo and wait for partial results to arrive (i.e., wait the wait icon to disappear between letters).

The issue also occurs for SwissLocatorFilterLocation and SwissLocatorFilterLayer.

The log messages in Qt tab, mentioned in the comment above, also appear on Qt6.

Backtrace from First Aid plugin:
issue_qt6.json


Disabling the try block (which is too broad) in swiss_locator_filter.py, handle_reply() method, I can get this error message:

https://api3.geo.admin.ch/rest/services/api/SearchServer?type=featuresearch&searchText=ort &returnGeometry=true&lang=fr&sr=2056&limit=8&features=ch.bfe.solarenergie-einstrahlung_30_grad,ch.bfe.solarenergie-einstrahlung_75_grad,ch.bfe.solarenergie-einstrahlung_90_grad,ch.bfe.statistik-wasserkraftanlagen,ch.bfe.stauanlagen-bundesaufsicht,ch.bfe.thermische-netze,ch.bfe.waermepotential-gewaesser,ch.bfe.windenergieanlagen,ch.bfs.gebaeude_wohnungs_register,ch.bfs.gebaeude_wohnungs_register_waermequelle_heizung,ch.bfs.generalisierte-grenzen_agglomerationen_g1,ch.bfs.landschaftswandel,ch.blw.bodeneignung-gruendigkeit,ch.blw.bodeneignung-kulturland,ch.blw.bodeneignung-kulturtyp,ch.blw.bodeneignung-naehrstoffspeichervermoegen,ch.blw.bodeneignung-skelettgehalt,ch.blw.bodeneignung-vernaessung,ch.blw.bodeneignung-wasserdurchlaessigkeit

Performing such request, the server answers:

{"error":{"code":404,"message":"unknown local index 'ch_bfe_solarenergie_einstrahlung_30_grad' in search request"},"success":false}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant