Opened 14 years ago

Last modified 12 years ago

#7050 assigned bug

BGLView /OpenGL resize bug when direct mode is enabled

Reported by: jackburton Owned by: kallisti5
Priority: normal Milestone: R1
Component: Kits/OpenGL Kit Version: R1/Development
Keywords: Cc:
Blocked By: #6614 Blocking:
Platform: All

Description

Launch GLTeapot, grab the resize knob, and start resizing the window very fast lots of times. After a while the application will hang. Reproducible on VirtualBox, didn't try yet on real hardware.

Change History (10)

comment:1 by the ringmaster, 14 years ago

happens for me as well. When I grab and flail the handle, the teapot window goes black and the window is unresponsive. Rev 40042

comment:2 by jscipione, 14 years ago

I've noticed the same thing happening if you move the window around wildly as well. Grab the window and move it around vigorously. Eventually the teapot will stop rendering inside the view and the app will crash and need to be killed.

comment:3 by stargatefan, 14 years ago

heh, does the teapot image still detach from the windo if you resize after you move it ? I was gonna file a bug report for this months ago but opengl is pretty low on the totem pole as I gather.

comment:4 by jackburton, 14 years ago

Summary: BGLView /OpenGL resize bugBGLView /OpenGL resize bug when direct mode is enabled

I think what happens is that BGLView::FrameResized() and BGLView::DirectConnected() are interacting in bad ways: FrameResized() is triggered asynchronously, while DirectConnected() is called synchronously. And in fact, the bug only shows up when direct mode is enabled. In both these functions we change some member variables which are closely connected and depends one on the other (fBounds and the direct_buffer_info stuff).

Version 0, edited 14 years ago by jackburton (next)

in reply to:  3 ; comment:5 by Disreali, 14 years ago

Replying to stargatefan:

heh, does the teapot image still detach from the windo if you resize after you move it ? I was gonna file a bug report for this months ago but opengl is pretty low on the totem pole as I gather.

That has already been reported on #6614.

jackburton, Is it possible that these two issues are related?

in reply to:  5 comment:6 by jackburton, 14 years ago

Replying to Disreali:

That has already been reported on #6614.

jackburton, Is it possible that these two issues are related?

Yes, they are definitely related, both are caused by the non-defined order in which DirectConnected() and FrameResized() can be called.

comment:7 by jackburton, 13 years ago

Blocked By: 6614 added
Resolution: duplicate
Status: newclosed

comment:8 by jackburton, 13 years ago

Resolution: duplicate
Status: closedreopened

Reopening, since the symptoms are different (but the cause is the same)

comment:9 by kallisti5, 12 years ago

Is this still an issue as of R1A4?

comment:10 by kallisti5, 12 years ago

Owner: changed from korli to kallisti5
Status: reopenedassigned
Note: See TracTickets for help on using tickets.