threedi / hhnk-threedi-plugin

QGIS plugin gebruikt voor analyses van 3Di modellen bij HHNK.
1 stars 0 forks source link

Logging geeft `AttributeError: 'NoneType' object has no attribute 'write'` bij tasks #128

Closed d2hydro closed 10 months ago

d2hydro commented 11 months ago

Deze issue is ook aangehaald in #91; het lijkt erop dat er bij het uitvoeren van tasks errors uit de logging-module komen:

  1. open MI en het testmodel
  2. Open de Python console
  3. voer Sqlite checks uit
  4. Zie dat MI begint vast te lopen, de logging komt er dan zo uit te zien:

Image

Wellicht iets te maken met multi-threading. Hier valt misschien een oplossing uit te halen: https://github.com/Preston-Landers/concurrent-log-handler/issues/4

d2hydro commented 10 months ago

@wvangerwen can you pls check if the fix in #151 allows for tasks to run smoothly? If so we can make this sollution more generic.