Closed doutriaux1 closed 9 years ago
@doutriaux1 what machine is this? Is this remote or local?
data and json and script can be found at: https://github.com/doutriaux1/VTKLearning/tree/master/uvcdat_bugs
@dlonie I will need your help on this one I think.
it is on my local ubuntu. Confirmed by other users (@durack1) on RH6
Do you both have the same graphics card? The radeon errors make me wonder if this is hardware related...
what driver you are using @doutriaux1 We should be able to re-produce this bug if it is not hardware specific. @dlonie can you try the script and the data?
Sure. It'll be a bit before I can get to it, but sometime today.
I don't think this has anything to do with hardware, as it happens both on a real and virtual machine..
Yep, it's not hardware, I can reproduce this on my nVidia system.
@dlonie I don't think it's hardware related either happens on Ubunut/RH/Mac and a VM I would be really surprising if all these computers had the exact same graphic card (although I guess it is possible)
One of the concerning issues too, is that exporting to different formats yields completely different graphics.. So pngs seem to look fine, thought pdf and ps files have labels rotated differently and this difference is concerning..
That is a known issue unrelated to this one, see #503.
Yeah thanks @dlonie I was aware there was already an issue open on that.. Was just too lazy to link to it..
The problem seems to be triggered by the call to configureEvent() (since bg has no interactor, configureEvent never gets called). Still tracking down the specifics...
Removing the call to self.canvas.clear() in configureEvent (VTKPlots.py 173) fixes the issue. Is this call needed?
(note, I also had to add y.scriptrun("mesh_bug.json");y.setcolormap("bl_rd_12")
to the test_bg.py
script to get colors correct).
let me look into this, I think if we don't do a clear then plots never get cleared in the GUI and they get drawn on top of each other. The real question I guess is why do we get half a plot when calling clear.
You're right, the clear does need to be there for the GUI. I'm guessing that the configureEvent is being called at a bad time, possibly while in the middle of building up the scene.
I think this has been fixed by #873
the following script creates two different png depending if we use bg = True or not
bg=True leads to the correct output in bg mode, and incorrect in non bg mode
See attached pngs first is good and second is bad
now interestingly enough turning the bg to False leads to a core dump following this output: