JonasJurczok / factorio-todo-list

A distributed todo list mod for Factorio
MIT License
35 stars 21 forks source link

"non-recoverable error" while trying subtasks #152

Open weissel opened 4 years ago

weissel commented 4 years ago

Was exploring subtasks, create, delete, name, rename, trying to understand how they can work for me ...

The mod Todo List (18.0.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Todo-List::on_gui_click (ID 1)
__Todo-List__/todo/features/subtasks.lua:66: attempt to index local 'subtask' (a nil value)
stack traceback:
    __Todo-List__/todo/features/subtasks.lua:66: in function 'update_subtask'
    __Todo-List__/todo/features/subtasks.lua:55: in function 'on_edit_subtask_save_click'
    __Todo-List__/todo/todo.lua:163: in function 'on_gui_click'
    __Todo-List__/control.lua:20: in function <__Todo-List__/control.lua:19>
JonasJurczok commented 4 years ago

Hey,

thanks for the report.

Can you please describe what you did when this problem occured? How many subtasks did you have?

Thanks :)

weissel commented 3 years ago

Hi,

Sorry for being late --- life happened. Maximum number of sub tasks: about 8, more likely around 5 at the time of the crash. I was rapidly creating/deleting/changing subtasks to find out what they can do. IIRC I had only one single layer of subtasks on one main task.

Thanks!

JonasJurczok commented 3 years ago

life happened

Yeah, I know that feeling :D

Ah okay.

This could potentially happen when you click on edit on a couple tasks/subtasks without closing the dialog again.

But it should be a rare edge case.

If you find a way to reproduce it I can attempt to fix it :)