Ticket #4 (closed defect: fixed)

Opened 6 years ago

Last modified 4 years ago

Alt-Tab freezes app

Reported by: mike Owned by: mike
Priority: normal Milestone: alpha-test
Component: client Version: 0.2
Keywords: Cc:
Estimated Effort: 1 day Platform: All
State: Designing Relative Size:

Description (last modified by mike) (diff)

Problem

Sometimes (esp when running two clients), alt+tabbing away and then going back will cause the display on one of the clients to freeze and not come back. Exiting the program is required.

This happens in Windows as well.

Change History

Changed 6 years ago by mike

  • status changed from new to assigned

Changed 6 years ago by mike

  • priority changed from high to low
  • version changed from pre-alpha to 0.2
  • effort_estimate set to 1 day
  • severity changed from major to minor
  • milestone changed from alpha-test to beta-test

This seems to only be a problem when running more than one client at a time. Something that really shouldn't be attempted by anyone other than developers. As such, I'm downgrading the priority.

Changed 6 years ago by mike

  • priority changed from low to normal
  • description modified (diff)
  • summary changed from Alt-Tab freezes app in Linux to Alt-Tab freezes app

Changed 6 years ago by mike

  • platform set to All
  • state set to Designing

Investigation

Line 725 of OgreRoot?.cpp shows that the default ogre runloop does this:

while( !mQueuedEnd )
        {
            //Allow platform to pump/create/etc messages/events once per frame
            mPlatformManager->messagePump(mAutoWindow);

            if (!renderOneFrame())
                break;
        }

MV3D only calls the renderOneFrame(). That is certainly the problem, but we will need to figure out what the mPlatformManager and mAutoWindow are. :)

Changed 6 years ago by mike

  • status changed from assigned to closed
  • resolution set to fixed

Solution

Did as above. mAutoWindow==self.renderWindow, and the mPlatformManager was gettable by a singleton. Seems to work now except maybe no mouse pointer when switching?

Changed 4 years ago by mike

  • milestone changed from beta-test to MV3D-0.32

Milestone beta-test deleted

Changed 4 years ago by mike

  • milestone changed from MV3D-0.32 to alpha-test

Setting the milestone back

Note: See TracTickets for help on using tickets.