tomviz icon indicating copy to clipboard operation
tomviz copied to clipboard

state file crashes tomviz with view port white background

Open ercius opened this issue 3 years ago • 0 comments

Describe the bug

Note: Im trying to describe this in case someone else runs into the same problem and might be able to recover their work. If this can be fixed (its hard to reproduce) that would also be great!

A collaborator sent me a state file (tvsm) which would not load properly (on my computer and theirs). I eventually figured out that there was a SpreadSheetView included in the list of "views" at the end of the file. The issue presented itself as such:

  1. The state file loaded MRC data, did various tilt series alignments, and then did a reconstruction.
  2. During loading, the view port would go completely white/empty (see below) and there was no indication that the view port had a RenderView attached to it. It would look like this in the lower right view port (ignore the missing pipeline): image
  3. The pipeline would run (including the reconstruction), but then tomviz would hard crash at the end.
  4. I attempted to remove items from the pipeline to see what the issue was. If I removed the reconstruction module then tomviz would not crash, but no data could be seen in the view port. It stayed white and empty. Removing the entire pipeline (except the data) did not fix this.

I compared this tvsm file and a working state file line-by-line and found that at the end of the state file there is a list of "views." In the non-working state file the first view shown looks like this:

...
"views": [
        {
            "backgroundColor": [
            ],
            "camera": {
            },
            "id": 4808,
            "servers": 21,
            "viewSize": [
                400,
                400
            ],
            "xmlGroup": "views",
            "xmlName": "SpreadSheetView"
        },
...

This is then followed by a normal RenderView.

I removed this set of lines (thus removing the SpreadSheetView) and the pipeline worked properly.

I can provide the state file if you are interested in using it to test.

To Reproduce Steps to reproduce the behavior: Im sorry, but unknown! I was not able to reproduce this as the state file was sent by a collaborator. It might be an edge case. Im reporting in case someone else sees this so they can recover their data or reproduce the issue.

Expected behavior Prefer the renderview somehow and ignore a SpreadSheetView? Maybe a notice that something is wrong with the state file?

Desktop (please complete the following information):

  • Windows 10
  • 1.9.0

Hardware (please complete the following information): a couple of different computers.

ercius avatar Apr 15 '21 16:04 ercius