Minimize NavBar Floating Window Size Out of Memory Exception

Navigation for WPF Forum

Posted 16 years ago by Jason Halbig
Version: 4.5.0487
Platform: .NET 3.5
Environment: Windows Vista (32-bit)
Avatar
With the NavBar is minimized, click on the title bar.
This will open the floating window.

Now select the gripper and the size the window as large as you can go.
This will cause an out of memory exception.

This was reproduced in the Samples application as well.

Comments (7)

Posted 16 years ago by Jason Halbig
Avatar
Easy fix found in a previous post:

Popup resize behavior (bug)?
by Kollen Glynn

Just set the max width of the root child element.
Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Jason,

We're not able to repro the exception here. We're opening the main NavigationBar demo, minimizing it, clicking the title to open the popup, clicking the gripper and dragging all over the place but no exception.

Any idea what we're doing that is causing it not to show up?


Actipro Software Support

Posted 16 years ago by Jason Halbig
Avatar
Well my screen resolution is at 1600x1200.
In the sample broswer choose the Outlook 2007 UI demo.

Once that is open maximize the window.
Then collapse the left NavBar.

Then select the collapsed NavBar pane to open the Pop Up.
Then size the pop up as far right as you go.
The height doesn't seem to be a problem, just the width.

Hope that helps some.
Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Jason,

We just tried this again and were not able to reproduce it. We followed the steps you outlined on two different machines (one with 1600x1200 and one with 1920x1200).

A couple questions:

1. Can you obtain a stack trace for the exception? Maybe by building the Sample Browser application provided in Visual Studio and running it in debug mode.
2. Are you running Vista with the Aero theme?
3. Do you have another machine you can try this on?


Actipro Software Support

Posted 16 years ago by Jason Halbig
Avatar
1. Can you obtain a stack trace for the exception? Maybe by building the Sample Browser application provided in Visual Studio and running it in debug mode.
See Below

2. Are you running Vista with the Aero theme?
No, Windows XP SP3 with regular XP theme.

3. Do you have another machine you can try this on?
Yes, I have already replicated it on another machine running Windows XP


==========================================================================

System.OutOfMemoryException was unhandled
Message="Insufficient memory to continue the execution of the program."
Source="PresentationCore"
StackTrace:
at System.Windows.Media.Composition.DUCE.Channel.SyncFlush()
at System.Windows.Media.MediaContext.CompleteRender()
at System.Windows.Interop.HwndTarget.OnResize()
at System.Windows.Interop.HwndTarget.HandleMessage(Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.HwndSubclass.DefWndProcWrapper(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.SetWindowPos(HandleRef hWnd, HandleRef hWndInsertAfter, Int32 x, Int32 y, Int32 cx, Int32 cy, Int32 flags)
at System.Windows.Interop.HwndSource.Resize(Size newSize)
at System.Windows.Interop.HwndSource.OnLayoutUpdated(Object obj, EventArgs args)
at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at ActiproSoftware.Windows.SampleBrowser.WindowsApp.Main() in C:\Documents and Settings\halbigjm\My Documents\Actipro Software\WPFStudio\v4.5.0486\SampleBrowser\obj\Debug\SampleBrowser\WindowsApp.g.cs:line 0
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Jason,

We tested this on an XP box with SP3, and again could not reproduce it. Originally, we were testing Vista, because that's the platform you indicated in the original post.

Since the call stack doesn't include any methods from our source base, I would suspect it's something unrelated to our code. We have run into issues that are caused by the video card/driver, which may be the case here. Can you tell me what video card you are running? And does the other machine you tested have the same video card?

A quick Google search turned up one relevant page, which again points to the video card/driver.


Actipro Software Support

Posted 16 years ago by Jason Halbig
Avatar
I am using a NVIDIA Quadro NVS 285 and No the other machine does not have the same video card the other machine is running Windows Vista with an NVIDIA Quadro FX 360M
The latest build of this product (v24.1.3) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.