ThinkGeo.com    |     Documentation    |     Premium Support

V10 - MrSidRasterLayer & Jpeg2000RasterLayer - Exceptions

Hi Dennis,

I think all the changes in V9 had been brought to V10, but I will double check that with the developer.

Thanks for upload your data, our developer will test that and see what’s the problem.

Any update I will let you know.

Regards,

Ethan

Hi Dennis,

Thanks for your data, our developer had reproduced that, we will look into it.

Any update I will let you know.

Regards,

Ethan

hi Ethan,

I’ve noticed that when running the application in Visual Studio debugger that sometimes the MrSid’s are causing the application to crash. Below is the popup window that appears. When running outside the debugger this does not appear to happen, at least not yet.

If I set the Rasters to Invisible the application runs fine in the debugger.

I believe that this was an issue in prior MapSuite versions as it does not occur in V9. This may be memory related.

A change I made with the transition to V10 was to open each raster file (about 16 total) and leave them open for the life of the application. Prior to this the raster would be opened/closed during the DrawCore method. What overhead is there leaving 16 raster files open? Could this be causing this crash that I described here?

The application does make use of auto-tile caching. I think I’m seeing that this crash occurs the first time that it has to create a tile cache for the extent. The tile might actually get created because when the application is restarted and I go back to that location it always renders properly.

I’ll wait until you provide the other fixes from the other problems and I’ll test with new DLL’s.

Dennis

This is from the Windows Event Log.

Faulting application name: OriStarVision.vshost.exe, version: 14.0.23107.0, time stamp: 0x559b788a
Faulting module name: ntdll.dll, version: 10.0.15063.608, time stamp: 0x802f667e
Exception code: 0xc0000374
Fault offset: 0x000d9aba
Faulting process id: 0x4484
Faulting application start time: 0x01d34b667fa74f2e
Faulting application path: C:\OriStarMappingIncMapSuiteV10\OriStarVision\bin\DebugNet4.6.2\OriStarVision.vshost.exe
Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
Report Id: 1a1ecebe-6ed2-4aa8-bb44-8ab61a3f4201
Faulting package full name:
Faulting package-relative application ID:

Hi Dennis,

We have recreated this issue with you test data.
Our developer is looking into this issue, we will update the status here.

Thanks
Mark

Mark,

Do you have any update on these issues?

Thanks,
Dennis

Hi Dennis,

Our developer had fixed that, please get our latest package 11.0.0-beta007 for ThinkGeo.MapSuite.Layers.Jpeg2000.

Any question please let us know.

Regards,

Ethan

hi Ethan,

Can you give me an idea when this fix will be available in a production build?

Thanks,
Dennis

Hi Dennis,

We can move that to a production build after you make sure all bug had been fixed for your scenario.

So can you make sure all the bugs for this package had been found in your currently scenario?

Regards,

Ethan

Ethan,

I installed beta007 in my application and receive the below compile error: After installing ThinkGeo.MapSuite.Layers.Jpeg2000 still has a date of 10/30/2017.

I then installed beta047 and the application compiles but I get the below exception inside of MapSuite:

What’s the trick to installing a beta version?

Thanks,
Dennis

Hi Dennis,

I hadn’t reproduced that, please try the sample and let me know whether I missed anything.

8696.zip (919.7 KB)

Regards,

Ethan

hi Ethan,

I downloaded the sample application and did a restore on the NuGet packages. However, the application does not work. When attempting to load either MrSid or JPeg2000 the following popup appears:

There is clearly an issue here and appears to be getting worse because now it will no longer even load MrSid, when that did work in the past.

Am I not getting all the DLL’s that are required? The JPeg2000 DLL at least now has a date from 11/8/2017.

Do I need to install any of the dependencies in the System32 or SysWOW directories?

Also, a more comprehensive test would be performed with large MrSid and JPeg2000 files, not these little ones as they hardly offer a robust testing condition.

Dennis

Hi Dennis,

It looks this issue is an environment issue.

Because we cannot help you solve that without reproduce it, please tell us your detail environment information, so we can build a machine with the same setting to reproduce it. It include the OS version, .net framework version, VS version, user security in machine etc. Any you think maybe helpful please let us know.

And you don’t need to copy any dll for Version 10, because when you install the packages it will automatic copy necessary ones. I think if with the same project you get exception but we won’t, that’s not related with the test data size.

Regards,

Ethan

hi Ethan,

On Monday November 27th I had a call with my sales representative and Ben to discuss this issue. Ben was able to install the beta releases on my development machine and was able to get both MrSid and JPEG2000 rasters working.

Below is a screen capture of the installed NuGet Packages.

Dennis

Hi Dennis,

Thanks for you update.

So it looks this is a cached package problem, it’s helpful if next time we met the same problem.

Regards,

Ethan

hi Ethan,

Do you have an idea when these changes will be available in a release build?

Thanks,
Dennis

Hi Dennis,

We just build a minor release this month, the next release will be in about 2 months.

But it looks this month we found some problem from your posts, maybe we can build a special release version for you, but I will check this with our release manager, and please make sure all your problem had been fixed in the latest version of pre-release version. Because if you found other problem after the release, it need to wait our next minor release.

Regards,

Ethan

hi Ethan,

I will do some more testing to make sure I don’t notice any other issues.

Dennis

Hi Dennis,

Any question please let us know.

Regards,

Ethan

Hello Ethan,

This problem never really went away, it was just that I was too busy with other issues to follow-up. I have updated to all the latest MapSuite Packages and have copied the DLL’s fromMapSuiteDependency-MicrosoftVisualCRunTime100.10.2.1.

I do have some more information on the problem. My MrSid is contained within its own LayerOverlay and caching is set for the overlay. When caching is enabled I get this crash. When caching is disabled I do not get this crash.

When caching is enabled it appears to encounter this crash when it has to create a new cache file. If the extent to which I move to has already been cached then this crash does not happen. The funny thing is even though it crashes it does seem to create the new cache file. Because after a restart of the application I can then go to that area and it does not crash, but if I pan away from that area then it crashes again.

What I have noticed while running in Visual Studio Debug Mode is that even though caching is disabled the application will still crash most often when the application is initially starting. But if it does not crash then a pan will cause this crash to happen.

Below are the properties of the LayerOverlay.

Thanks,
Dennis

LockLayerMode = Lock
DrawingQuality = HighQuality
TileBuffer = 0
TileWidth = 1680
TileHeight = 1050
TileType = MultipleTile
TileTransitionEffect = Stretch
CacheTiles = true
CacheTileAccessMode = ReadAddDelete
CacheTileImageFormat = png

Hi Dennis,

Just like our original test, this issue cannot be reproduced in our end.

If that’s an environment issue, it should be very hard to find what’s the actually reason. So could you please try to test the sample in one of your other machine, and see whether it can be reproduced, we also will do the same works, and we can compare the result and try to find what’s the really problem.

Regards,

Ethan