Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrupted/Invalid Open Document Tab State after running for a while #2540

Open
osirisgothra opened this issue Nov 2, 2024 · 1 comment
Open

Comments

@osirisgothra
Copy link

What are you trying to do, and what do you expect to happen?

(searched for this because it is probably common, but can't find an exact issue, sorry if i missed it)

Abstract

Opening multiple documents after working with BB for a while (>1hr from what I have seen)

Details (if you need them)

Opening/closing multiple projects, pretty straightforward. It works most of the time, and the workaround is to restart the program. I am only posting this because it might be a root cause to another more subtle issue. I have experienced no data loss from this despite the number of times it has happened, and it does not crash the program. Worst case scenario is exit where you are prompted to save anyway, and the saving always works fine.

I am working on a good 2-300 separate models, on a good day I could be opening/closing up to 25-30 models. These are usually the days this issue pops up, and its kinda an odd one. I wish I could reproduce it exactly, but it takes time (about an hour or so at least) before it happens.

It doesn't seem to be resource-related as I have had days where I've run myself right into the red with memory and been fine with even multiple big models open, but these always seem to happen even when I am doing little in the background (it would take having a few other big programs running which I typically don't do that, to run me into the red on resources).

What happens instead?

Summary

The open documents "tab state" is being... corrupted? The best way to explain it is, that the tabs stop being tied to said documents. This is subtle and it seems to happen after working with quite a few projects, opening and closing documents (opening a few at a time, closing a few down to the new tab page and then opening new pages again.

Examples

These are some examples of what happens.

  • When all documents are closed, the next documents to be opened will be linked to the recently closed document somehow, but will be completely uninteractive and frozen as it is obviously closed.
  • Close all the documents, and instead of a new tab page, get a "ghost document" (one that is not valid) which appears to be in an uninitialized state (some of the controls missing or not initialized, etc.)
  • Close all documents, and either the entire interface is gone, or just the menu remains and is unusable.
  • Open many documents and have one or more tied to the "new tab" page (the one with the clipart and the document history)

Other things you may need to know

  • Please keep in mind this is very subtle and seem to come up whenever I've run BB for more than an hour.
  • I have ruled out other possible causes such as conflicts and resource usage
  • I have kept settings a default as possible during the "testing" phase
  • All maximum model sizes are with the limits (I keep those warnings /!\ at the bottom resolved to 0)
  • The largest texture size I work with is 256x256 but that is rare, usually its 32x32 or 16x16.
  • I calculated 26 to be the average number of elements that my models have (smallest=1 element, largest=85 elements, only 7 models that are above 30 elements)
  • Some models do have to be manually edited to add the "render_type": "minecraft:TYPE", line but I don't think that has any effect on this and I always lint my jsons to make sure they are correctly formatted.
  • We appreciate all your hard work and effort, and yes I see all those issues piling up and know it must be tough to keep up, if there is anything I can help with feel free to ask 😺

Model format in which the issue occurs

Minecraft Java (JSON Model)

Blockbench variant

Program

Blockbench version

4.11.1 (self updating to latest automatically)

Operating System

(X)ubuntu Linux 20.04.20 (fully updated) x86_64

Installed Blockbench plugins

None

@JannisX11
Copy link
Owner

Could you send a screenshot of the console? Help > Developer > Open Dev Tools > Console tab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To triage
Development

No branches or pull requests

2 participants