I noticed a similar thread from 2012 with the same error I’m getting, found here: thinkgeo.com/forums/MapSuite/tabid/143/aft/10840/Default.aspx#41227
Looks like this was resolved in a development version of Mapsuite 6, but I am now using Mapsuite 7.
I am able to display smaller JP2 files, but large ones (>150Mb) still crash with this error. It occurs as soon as I try to call layer.Open(). I am able to recreate this is the CSharp VS2012 sample application. If you’d like me to send you a sample jp2 that is failing, just let me know where.
Error & callstack:
External component has thrown an exception.
at oxQ=.hjg=.JiI=(String iTg=)
at ThinkGeo.MapSuite.Core.GisImage.dh0=(String dx0=)
at ThinkGeo.MapSuite.Core.EcwRasterSource.OpenCore()
at ThinkGeo.MapSuite.Core.RasterSource.Open()
at ThinkGeo.MapSuite.Core.RasterLayer.OpenCore()
at ThinkGeo.MapSuite.Core.Layer.Open()
at CSHowDoISamples.DisplayASatelliteImage.WpfMap_Loaded(Object sender, RoutedEventArgs e) in c:\Program Files (x86)\ThinkGeo\Map Suite Wpf Desktop Full Edition 7.0\Samples\CSharp Samples\Satellite Image\DisplayASatelliteImage.xaml.cs:line 33
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at MS.Internal.FrameworkObject.OnLoaded(RoutedEventArgs args)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
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, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
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, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
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.Application.RunInternal(Window window)
at System.Windows.Application.Run()
at WpfApplication1.App.Main() in c:\Program Files (x86)\ThinkGeo\Map Suite Wpf Desktop Full Edition 7.0\Samples\CSharp Samples\obj\Release\App.g.cs:line 0
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Issue with large JPEG2000 (jp2) image files
Hi Kevin,
I read the .jp2 file with the latest version 7.0.303.0, but it
works fine, here is a video showing what we have, pleae check it out:
screencast.com/t/oo67u1M5
Also can you try the latest version 7.0.303.0 dll packages?
Thanks,
Johnny
Hi Kevin, I read the .jp2 file with the latest version 7.0.303.0, but it
Johnny,
Posted By Johnny on 04-10-2014 04:38 AM
works fine, here is a video showing what we have, pleae check it out:
screencast.com/t/oo67u1M5
Also can you try the latest version 7.0.303.0 dll packages?
Thanks,
Johnny
I see that it is functioning for you. Unfortunatey for some reason I’m still having issues in my sample app. I updated all of my mapsuite files to 7.0.303, and yet I still get the following error when trying to call layer.open(). I can package up my current sample app as well as a jp2 file I’m attempting to use, to see if you can reproduce it on your end…
External component has thrown an exception.
at 3RM=.akA=.XyU=(String bUA=)
at ThinkGeo.MapSuite.Core.GisImage.rR8=(String rh8=)
at ThinkGeo.MapSuite.Core.EcwRasterSource.OpenCore()
at ThinkGeo.MapSuite.Core.RasterSource.Open()
at ThinkGeo.MapSuite.Core.RasterLayer.OpenCore()
at ThinkGeo.MapSuite.Core.Layer.Open()
at CSHowDoISamples.DisplayASatelliteImage.WpfMap_Loaded(Object sender, RoutedEventArgs e) in c:\Program Files (x86)\ThinkGeo\Map Suite Wpf Desktop Full Edition 7.0\Samples\CSharp Samples\Satellite Image\DisplayASatelliteImage.xaml.cs:line 31
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at MS.Internal.FrameworkObject.OnLoaded(RoutedEventArgs args)
at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
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, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
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, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
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.Application.RunInternal(Window window)
at System.Windows.Application.Run()
at WpfApplication1.App.Main() in c:\Program Files (x86)\ThinkGeo\Map Suite Wpf Desktop Full Edition 7.0\Samples\CSharp Samples\obj\Release\App.g.cs:line 0
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Hi Kevin,
Not pretty sure, but if you noticed there is an installer named “Map Suite Unmanaged Dependencies 7.0.291.0.msi” in your dll package? As the Jp2 feature is depended on it, you also need to re-install this installer to finish the upgrade. After the installation, then please check it again.
If the issue persists, would you mind to send your Jp2 files to us? Please contact support@thinkgeo.com and they will setup a ftp for you to upload your data. More details please refer to wiki.thinkgeo.com/wiki/Map_Suite_Sending_Data_to_Support
If any thing confused, please feel free to let us know.
Regards,
Troy