Opened 13 years ago

Last modified 11 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, 13 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, 13 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, 13 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, 13 years ago

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

The bug only shows up 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 by a BMessage, while DirectConnected() is called by releasing a semaphore by the app_server (still asynchronously, though). 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).

Last edited 13 years ago by jackburton (previous) (diff)

in reply to:  3 ; comment:5 by Disreali, 13 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, 13 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, 11 years ago

Is this still an issue as of R1A4?

comment:10 by kallisti5, 11 years ago

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