Exception on call to ReaderSvg.Read during "Open and Resize"

6 views
Skip to first unread message

carl

unread,
Jan 15, 2009, 6:02:37 PM1/15/09
to WPF Graphics Site group
I get an exception when I try to open an SVG file using the
ReaderSvgSamples solution.
My SVG file opens ok in IE and has both an embedded <image> and vector
<path>, etc
elements. I'm using the eval version of ReaderSvgSamples downloaded
today. Tried
both Drag and Drop and Load in the Open and Resize sample. Any
ideas?

Thanks.

The exception detail:

System.ArgumentException was unhandled
Message="'Infinity' is not a valid value for property 'Height'."
Source="WindowsBase"
StackTrace:
at System.Windows.DependencyObject.SetValueCommon
(DependencyProperty dp, Object value, PropertyMetadata metadata,
Boolean coerceWithDeferredReference, OperationType operationType,
Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyProperty
dp, Object value)
at System.Windows.FrameworkElement.set_Height(Double value)
at Ab2d.ReaderSvg.ઘ(ݬ ઙ)
at Ab2d.ReaderSvg.Read(String url)
at Ab2d.Samples.ReaderSvgSamples.SimpleOpen.LoadSvg(String
fileName) in C:\Program Files\Ab2d.ReaderSvg\ReaderSvgSample
\SimpleOpen.xaml.cs:line 71
at Ab2d.Samples.ReaderSvgSamples.SimpleOpen.ShowOpenFileDialog
() in C:\Program Files\Ab2d.ReaderSvg\ReaderSvgSample
\SimpleOpen.xaml.cs:line 54
at Ab2d.Samples.ReaderSvgSamples.SimpleOpen.LoadOnClick(Object
sender, RoutedEventArgs e) in C:\Program Files\Ab2d.ReaderSvg
\ReaderSvgSample\SimpleOpen.xaml.cs:line 81
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object
target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source,
RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject
sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at
System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp
(MouseButtonEventArgs e)
at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object
sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler
(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate
handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object
target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source,
RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject
sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.CrackMouseButtonEventAndReRaiseEvent
(DependencyObject sender, MouseButtonEventArgs e)
at System.Windows.UIElement.OnMouseUpThunk(Object sender,
MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler
(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate
handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object
target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source,
RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject
sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args,
Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput
(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput
(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput
(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions
actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage
(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean&
handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(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 Ab2d.Samples.ReaderSvgSamples.App.Main() in C:\Program Files
\Ab2d.ReaderSvg\ReaderSvgSample\obj\Debug\App.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:

Andrej Benedik

unread,
Jan 20, 2009, 9:11:21 AM1/20/09
to wpf-gr...@googlegroups.com
Hi Carl,

It is hard to say what is wrong from just a call stack.
Could you please upload a file that causes problems, so I can check it.

This can be done in the discussion - on the right side there is files menu item. Here you can upload a file.

You can also send me the file in the Feedback section on my site (http://www.wpf-graphics.com/Feedback.aspx).

Thanx,
Andrej
Reply all
Reply to author
Forward
0 new messages