Opened 13 years ago

Last modified 4 years ago

#7738 assigned bug

[app_server] miscalculates GLTeapot clipping region when dragging it across workspaces

Reported by: ttcoder Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Servers/app_server Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Steps:

  • configure workspaces in two different resolutions
  • launch GLTeapot in an 1024x768 workspace
  • click-hold its titlebar
  • hit Alt-Fn, where 'n' refers to a 800x600 workspace

Behavior: the teapot view continues animating in the new workspace, but _outside_ of its BWindow (!)

Easily reproduced here, and by a friend with a different HW setup.

Looks like BDirectWindow (or it is BGLView) does not like the resolution going down (oddly the bug does not occur in the other direction, when the resolution goes up.. -- maybe the x,y coords of the mouse pointer are changed in the former case and not the latter; and the bug does not occur with normal BWindow/BView's it seems).

Attachments (1)

glteapot_warped.png (45.0 KB ) - added by ttcoder 13 years ago.
GLTeapot after abusing Dragging/Alt-²

Download all attachments as: .zip

Change History (7)

by ttcoder, 13 years ago

Attachment: glteapot_warped.png added

GLTeapot after abusing Dragging/Alt-²

comment:1 by ttcoder, 13 years ago

Looks like it's a more general problem in fact, it also occurs when switching between workspaces of the same resolution:

GLTeapot after abusing Dragging/Alt-²

Though it's much more difficult to reproduce in that case: you have to keep Alt-² depressed and drag the teapot window around.

Come to think of it, I've had others, very different, troubles on workspace switching a few weeks ago, that might be related: they involved a bad interaction between audio/VESA; could be triggered by the same bug.. The difference is that it would result in a system freeze (even KDL was inaccessible IIRC), it would be triggered easily at first or second WS switch, and it would occur only if in VESA mode and playing an mp3 in MediaPlayer.

So this could help narrow down the list of suspect: we're seemingly looking at a piece of code close to workspace-switching, that holds a ressource/lock for the duration of the switch and is sensitive to how long the switch takes: if switching to a different resolution (hence taking more time to return) and a concurrent change occurs in some also-sensitive guys (BGLView, some audio drivers, VESA ..etc) then bad things happen easily, otherwise they occur rarely.

Version 0, edited 13 years ago by ttcoder (next)

comment:2 by ttcoder, 12 years ago

Can't reproduce this behavior with my current dev PC (laptop, hence LCD display, instead of CRT I had tried with back then) and with the current haiku hrev.

comment:3 by ttcoder, 11 years ago

Found a trivially easy way to trigger a/the bug in hrev45681:

  • launch GLTeapot
  • resize its window by 1 pixel or more
  • close it.

Note: resizing up by 1 pixel does the trick, whereas resizing down by one pixel does not trigger any bug.

Also this observation might be more useful in another ticket, since the bug I'm seeing in this scenario only involves leftovers/remnants of the teapot, not an actually spinning (moving) teapot.

comment:4 by ttcoder, 9 years ago

Milestone: R1Unscheduled

comment:5 by axeld, 7 years ago

Owner: changed from axeld to nobody
Status: newassigned

comment:6 by ttcoder, 4 years ago

Note to self: check again after hrev53711 & friends.

Note: See TracTickets for help on using tickets.