masterplan icon indicating copy to clipboard operation
masterplan copied to clipboard

Fails to start up on loading of note with long description

Open Doy-lee opened this issue 3 years ago • 2 comments

The editor allows you to generate notes with a pretty long description but on subsequent load of the plan, the program crashes.

I've been using masterplan like a white board for jotting notes and ended up with a note that is pretty long. I've made a minimal reproducing case here, this is the note I was using, verbatim just replaced the description with a repeating character sequence.

{
  "version": "0.8.0-alpha.5",
  "pan": {
    "X": 0,
    "Y": 0
  },
  "zoom": 1,
  "pages": [
    {
      "id": 0,
      "pan": {
        "X": 0,
        "Y": 0
      },
      "zoom": 1,
      "cards": [
        {
          "id": 0,
          "rect": {
            "X": -384,
            "Y": -448,
            "W": 960,
            "H": 4096
          },
          "contents": "Note",
          "properties": {
            "description": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
          }
        }
      ]
    }
  ],
  "savedimages": {}
}

The log file is

2022/04/19 11:02:21 Release mode: release
2022/04/19 11:02:22 MasterPlan initialized successfully.
2022/04/19 11:02:22 Error: open <plan.file>: The system cannot find the file specified.
2022/04/19 11:02:38 Load started.
2022/04/19 11:02:38 Recent files list updated...
2022/04/19 11:02:38 Any saved images loaded.
2022/04/19 11:02:38 Loading pages...
2022/04/19 11:02:38 Deserializing page  0
2022/04/19 11:02:38 Deserializing card  0

Doy-lee avatar Apr 19 '22 01:04 Doy-lee

Hello!

Thank you for the report - I can't reproduce this on my machine. I'm guessing it might be that MasterPlan creates a GPU texture to handle text rendering, and your machine's GPU might not be able to create a texture large enough to handle the text, thereby creating this crash. Can you tell me your OS and GPU? Also, can you try (after backing up your plan file) editing your plan to change the rectangle height ("H") from 4096 to 960, or something similar?

SolarLune avatar Apr 19 '22 18:04 SolarLune

Thanks, I gave that shot but to no avail. I tried reducing the width, height to (960, 960) and more conservatively to (128, 128) and it continues to fail to start up.

Exceeding GPU VRAM sounds plausible as I am using a fairly dated laptop to run Masterplan. Specs are as follows

Processor	Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz   2.40 GHz
Installed RAM	8.00 GB (7.87 GB usable)

Edition	Windows 10 Home
Version	20H2
OS build	19042.1645
Experience	Windows Feature Experience Pack 120.2212.4170.0
GPU  Intel(R) HD Graphics 520
VRAM 128MB
Shared Mem 4030MB

Doy-lee avatar Apr 21 '22 14:04 Doy-lee