Crash when showing tooltip of collapsed region

SyntaxEditor for WPF Forum

Posted 4 months ago by Tobias Lingemann - Software Devolpment Engineer, Vector Informatik GmbH
Version: 19.1.0684
Platform: .NET 4.7
Environment: Windows 10 (64-bit)
Avatar

Hi,

I have implemented an outlining source based on RangeOutliningSourceBase and recently added support for pre-processor regions.

When the region is only one empty line and collapsed, the application crashes as soon as the tooltip is shown.

== System.ArgumentException ==
Message:
Width and Height must be non-negative.
Source:
WindowsBase
StackTrace:
at System.Windows.Rect..ctor(Double x, Double y, Double width, Double height)
at ActiproSoftware.Windows.Controls.SyntaxEditor.IntelliPrompt.Implementation.IntelliPromptSessionBase.#Pfc(Boolean #syf)
at ActiproSoftware.Windows.Controls.SyntaxEditor.IntelliPrompt.Implementation.QuickInfoSession.Reposition()
at ActiproSoftware.Windows.Controls.SyntaxEditor.IntelliPrompt.Implementation.QuickInfoSession.OnOpened(EventArgs e)
at ActiproSoftware.Windows.Controls.SyntaxEditor.IntelliPrompt.Implementation.IntelliPromptSessionBase.Open(IEditorView view, TextRange textRange)
at ActiproSoftware.Windows.Controls.SyntaxEditor.IntelliPrompt.Implementation.CollapsedRegionQuickInfoProvider.RequestSession(IEditorView view, Object context)
at ActiproSoftware.Windows.Controls.SyntaxEditor.IntelliPrompt.Implementation.QuickInfoProviderBase.RequestSession(IEditorView view, Object context, Boolean canTrackPointer)
at ActiproSoftware.Windows.Controls.SyntaxEditor.IntelliPrompt.Implementation.QuickInfoProviderBase.#2xk(IEditorView #N5b, InputPointerEventArgs #yhb)
at ActiproSoftware.Windows.Controls.SyntaxEditor.IntelliPrompt.Implementation.QuickInfoProviderBase.#zxk(IEditorView #N5b, InputPointerEventArgs #yhb)
at ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.EditorView.OnPointerHoverTimerTick()
at ActiproSoftware.Windows.Controls.SyntaxEditor.Implementation.TimerManager.#jDk()
at ActiproSoftware.Windows.Controls.SyntaxEditor.Implementation.TimerManager.#iDk(Object #xhb, Object #yhb)
at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)


Best regards, Tobias Lingemann.

Comments (1)

Posted 4 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Tobias,

I believe this was fixed in build 685 with this change description:

Fixed a bug introduced in the previous build where opening an IntelliPrompt quick info session could throw an exception in a certain scenario.


Actipro Software Support

The latest build of this product (v2019.1 build 0686) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.