ink icon indicating copy to clipboard operation
ink copied to clipboard

Right Side Preview not working after loading a .ink file

Open ConfusedMerlin opened this issue 3 years ago • 4 comments

What Version:

  • Inky win32-x64
  • Inky version: 0.12.0
  • ink version: 1.0
  • inkjs version: 1.10.2

What OS: Windows 10 (at least one major update behind, I am afraid)

What happens: When you save a project and load it again later, the preview section does not work as expected any more.

If the .ink file is small (like, saving the new project preview ink), the preview might appear, but the loading icon keeps loading. It does look like it will work, but once you hit the END/DONE, you cannot rewind properly. Currently it only shows "Once upon a time..." without any choices.

If the .ink file is big (like the one I made yesterday night), the loading icon keeps loading, but no preview appears after all.

In both cases, the actual source code is available totally without anything missing.

Steps to reproduce:

  1. Create a new project with some text in it (the preview is sufficient in my case)
  2. Save it as an .ink file somewhere (in my case, its located in my user folder Documents)
  3. close Inky, reopen it
  4. load (either select or select recent) the saved project
  5. try to start the ink (if there is any text after all at the right)

Workarounds: Well, you can create a new ink projekt and copy all you source code inside this ons. That will work. But once you saved it, it will happen again when you load it

Thoughts: Oh dear, what a bug. I am a bit astonished that this slipped by D:

ConfusedMerlin avatar Sep 15 '21 15:09 ConfusedMerlin

I don't reproduce it on my windows (my project loads fine, and even if I just save the basic template, it loads fine). Can you share an ink file where you can reproduce the bug?

Can you also try to just edit the ink side with adding some text, does the preview gets better?

Selsynn avatar Sep 15 '21 18:09 Selsynn

Here we go... Thing is, ALL of my projects have this problem. So I think it might be something on my system.

Hm... one more think: I extracted the inky archive and run it from that extracted folder. Which... seems like the proper way to do this.

As you can see (if that picture is visible) that is the default project. I just loaded up that one that is inside that zip using open. A new inky window appears, and... here we go. It will keep its "loading" animation going on forever, without me being able to actually do something.

Is there a log file somewhere?

inkyBug

test.zip

ConfusedMerlin avatar Sep 15 '21 21:09 ConfusedMerlin

I have the exact same issue. Inky version: 0.12.0 ink version: 1.0 inkjs version: 1.10.2 Running Windows 10

gnarlynora avatar Nov 03 '21 15:11 gnarlynora

Similar issue in Inky 0.13.0:

Inky win32-x64 Inky version: 0.13.0 ink version: 1.0 inkjs version: 2.1.0

This seems to be a memory leak. Inky maxes out 1 thread and eats an ever increasing amount of ram. I can hardly interact with the left view, but it does not fix the problem. I don't get this problem when copying and pasting in ink code.

image

AverageStardust avatar Sep 02 '22 21:09 AverageStardust