Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Nifty  
#1 Posted : Thursday, November 15, 2018 1:51:17 PM(UTC)
Nifty

Rank: Advanced Member

Groups: Member
Joined: 10/12/2015(UTC)
Posts: 44

I am getting the following exception when loading a Photoshop file (attached).

"An unhandled exception of type 'System.AccessViolationException' occurred in Unknown Module. Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

The code is pretty basic:
Code:
var customResolver = new FontResolver(mapPath("~/localfonts/Psds/"));
customResolver.FontRegistry.FallbackFonts.Add("Arial");

var psdProcessor = new PsdProcessor(customResolver);

psdProcessor.TextCallback = (processor, textFrame, textString) => {

if (Utils.Contains(textString, "dd") || Utils.Contains(textString, "DD"))
	this.NoDays = false;

	var text = processor.ProcessText(textFrame);
	return text;

};

using (var memIn = new MemoryStream(_psdBytes))
using (var memOut = new MemoryStream()) {
	psdProcessor.Render(memIn, memOut, new PngSettings());
}


Following the error it logs users out and even crashes my IIS Express development process.

corrupt.zip (432kb) downloaded 3 time(s).
Fedor  
#2 Posted : Sunday, November 18, 2018 9:05:19 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
Hi,

Thank you for the problem report.

Could you prepare a small code snippet without dependencies which allows reproducing of the problem?

The following code works perfect with the version 10.0.27:

Code:
using Aurigma.GraphicsMill.Codecs;
using Aurigma.GraphicsMill.Templates;

class Program
{
	static void Main(string[] args)
	{
		var psdProcessor = new PsdProcessor();

		psdProcessor.Render("../../../corrupt.psd", "../../../out.png", new PngSettings());
	}
}
Best regards,
Fedor Skvortsov
Nifty  
#3 Posted : Monday, November 19, 2018 5:04:09 AM(UTC)
Nifty

Rank: Advanced Member

Groups: Member
Joined: 10/12/2015(UTC)
Posts: 44

We are using the latest Version 9, before the new license changes. Right now we aren't in a place to upgrade to 10.0.27 because of license server exceptions we have received.

Can you help us determine why this psd is crashing the IIS process in Version 9?
Fedor  
#4 Posted : Monday, November 19, 2018 9:05:50 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
Quote:
We are using the latest Version 9, before the new license changes. Right now we aren't in a place to upgrade to 10.0.27 because of license server exceptions we have received.

Can you help us determine why this psd is crashing the IIS process in Version 9?


I can reproduce the problem with the version 9.3.37, but it work perfectly with the version 10.0.27.

So I guess we should focus on the fixing of license server exception.

Which error do you experience?
Best regards,
Fedor Skvortsov
Nifty  
#5 Posted : Monday, November 19, 2018 9:16:10 AM(UTC)
Nifty

Rank: Advanced Member

Groups: Member
Joined: 10/12/2015(UTC)
Posts: 44

I get the following error when using the new (10.x) library:
"The response from the license server is invalid."

I'm guessing it's because the server I use it on (and my development/staging server) don't have internet access.
Therefor it looks like I'm stuck with the old components, which I would have loved to know before purchasing a new maintenance agreement.
Fedor  
#6 Posted : Monday, November 19, 2018 9:40:05 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
Hi,

Please activate the Server license in your Aurigma account:

Graphics Mill (Standard + PSD, Server, version >=10.0)

The Server license doesn't require internet connection to run. The Developer version you have (gm.std+psd.dev.max:X.maint:2019-XX-XX_QOojk...) doesn't allow to run the license on the server OS anyway.
Best regards,
Fedor Skvortsov
Nifty  
#7 Posted : Monday, November 19, 2018 9:48:09 AM(UTC)
Nifty

Rank: Advanced Member

Groups: Member
Joined: 10/12/2015(UTC)
Posts: 44

Are these licensing games the only course of action we have?
Are the 9.x versions getting bug fixes, or are they being shelved?
Fedor  
#8 Posted : Monday, November 19, 2018 10:36:36 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
Originally Posted by: Nifty Go to Quoted Post
Are these licensing games the only course of action we have?
Are the 9.x versions getting bug fixes, or are they being shelved?


All customers with an active maintenance subscription who use the version 9 are eligible for free upgrade to Graphics Mill 10. The version 10 is just a bug fix for Graphics Mill 9. The last version is 100% compatible with the previous one and has entirely the same functionality. That's why I see no reason to have separate branches for the different major versions of the product.

Edited by user Tuesday, November 20, 2018 8:45:19 PM(UTC)  | Reason: Not specified

Best regards,
Fedor Skvortsov
Users browsing this topic
Similar Topics
AccessViolationException error (Discussions – Graphics Mill)
by chenwp 8/18/2019 11:00:15 PM(UTC)
FontRegistry AccessViolationException (Discussions – Graphics Mill)
by hunsup 6/5/2019 4:36:12 AM(UTC)
AccessViolationException when attempting to load a PDF that contains a blank page (Discussions – Graphics Mill)
by BMaxwell 10/24/2018 7:29:38 AM(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.