hauke96 / simple-task-manager

A simple tasking manager made for OpenStreetMap.
https://stm.hauke-stieler.de
Other
34 stars 6 forks source link

Error on saving new project #219

Closed InsertUser closed 3 months ago

InsertUser commented 3 months ago

I'm getting an error when trying to save a new project:

Could not create project: runtime error: invalid memory address or nil pointer dereference

Created using the in browser tool, no import, GeoJson or other weirdness.

Tested in Firefox and Chrome.

hauke96 commented 3 months ago

Hi, thanks for the bug report. I just tried it and can't reproduce this issue, the backend logs unfortunately show no further information. Please provide the exact data (geometries and attributes) you create/enter when creating a project, feel free to add screenshots.

InsertUser commented 3 months ago

I don't know how to export the data for a project created in browser. I have five existing projects if that makes a difference.

My steps to get the errors are fairly straightforward, but I have included them anyway.

  1. Click "Create project"
  2. add title "test1"
  3. click pencil outline tool and start creating outline (image 1)
  4. close outline (image 2)
  5. add a description
  6. click save
  7. receive errors (image 3, 4)

In my original attempts I had used the subdivide tool to get the tasks down to 90m squares, but that doesn't seem to be necessary for me to get the error. I have tested with as few as four points on the outline. uBlock isn't reporting any domains blocked so I don't think that would be interfering.

Image 1: image 1

Inage 2: image 2

Image 3: image 3

Image 4: image

InsertUser commented 3 months ago

Hmm, I also can't set process points on a task of project 323 255 etc.

Is there some corruption specific to my account?

hauke96 commented 3 months ago

Thanks for the details. I'm not able to reproduce the issue with a new project, but I added myself to your project and can confirm the issue there. There seems to be something wrong with the project. I don't know what, but I'll look into it.

hauke96 commented 3 months ago

Unfortunately, I was not able to get to the bottom of this error. Everything worked on my machine (with the same database). I restarted the server and now, the issue is gone for me. Please check, whether the problem is gone for you, too.

InsertUser commented 3 months ago

Thank you.

I'm able to save on my old projects and managed to create a new one.

I'll mark this as closed as it's working now. I hope it's just a one off glitch.