SolarLune / masterplan

MasterPlan is a project management software / visual idea board software. It attempts to be easy to use, lightweight, and fun.
https://solarlune.itch.io/masterplan
512 stars 46 forks source link

Crash when trying to change color theme inside the tutorial #37

Closed theoratkin closed 3 years ago

theoratkin commented 3 years ago

Steps to reproduce:

  1. Open tutorial.
  2. Go to settings.
  3. Try several different color themes.
  4. The program will crash.

I'm running the latest git version of the program on Arch Linux.

This is the contents of log.txt file after crash (home directory path replaced with ...):

2020/11/12 01:16:35 

# ERROR #
2020/11/12 01:16:35 
.../masterplan/src/masterplan/main.go:80
2020/11/12 01:16:35  | Error: runtime error: index out of range [0] with length 0
2020/11/12 01:16:35 
/usr/lib/go/src/runtime/panic.go:969
2020/11/12 01:16:35 
/usr/lib/go/src/runtime/panic.go:88
2020/11/12 01:16:35 
.../go/pkg/mod/github.com/solarlune/raylib-go@v0.0.0-20201012173321-c86364b3c299/raylib/textures.go:143
2020/11/12 01:16:35 
.../masterplan/src/masterplan/whiteboard.go:296
2020/11/12 01:16:35 
.../masterplan/src/masterplan/task.go:2242
2020/11/12 01:16:35 
.../masterplan/src/masterplan/board.go:602
2020/11/12 01:16:35 
.../masterplan/src/masterplan/project.go:1341
2020/11/12 01:16:35 
.../masterplan/src/masterplan/project.go:1754
2020/11/12 01:16:35 
.../masterplan/src/masterplan/project.go:2160
2020/11/12 01:16:35 
.../masterplan/src/masterplan/main.go:309
2020/11/12 01:16:35 
/usr/lib/go/src/runtime/proc.go:204
2020/11/12 01:16:35 
/usr/lib/go/src/runtime/asm_amd64.s:1374
2020/11/12 01:16:35 

# ERROR #
SolarLune commented 3 years ago

Hello~ That commit should resolve the issue. Sorry for the late reply, and thanks for reporting!

theoratkin commented 3 years ago

Yes, I can verify that it's fixed. Great job!

SolarLune commented 3 years ago

Thanks! Glad to hear it's fixed.