Skip to content
Prev 28942 / 63424 Next

grid error message when resizing graphics window after tcltk loaded

One more follow-up here before I head out for the weekend.

I added a PrintValue(gvp); immediately after the gvp = ... around line 
647 in grid.c in function L_unsetviewport.

Then I recompile R, and run the code loop below, and resize the window, 
very small, then large, repeated) until I see the offending error message.

I obviously am getting a long list of thing that look like

viewport[GRID.VP.262]

while I resize the window, with '262' varying.  But eventually, I will see,

viewport[ROOT]
Error: 11Cannot pop the top-level viewport (grid and graphics output mixed?)

I'm a bit in over my head at this point, but maybe this can give someone 
a clue.  If there's anything I can try on this end to further diagnose 
the problem, please let me know.

One more piece of information.

At work (on the RHEL4 machine described below), if I have a graphic that 
takes a 'long time' to draw (e.g., print 100000's of characters using 
grid.text at random points), I can hit the "close" button on the device 
window while it is drawing, which will almost always cause a 
segmentation fault.

Contrasted at home (setup described below), I could click the button, 
but it would not respond to my request to close the window until after 
it had finished drawing, at which point it would close the graphics 
window gracefully as expected.

Erik
Erik Iverson wrote: