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

Notification

Icon
Error

Options
Go to last post Go to first unread
Chris Jones  
#1 Posted : Wednesday, June 14, 2017 10:29:49 PM(UTC)
Chris Jones

Rank: Advanced Member

Groups: Member
Joined: 6/9/2016(UTC)
Posts: 34

Thanks: 22 times
I've just got a null reference exception when creating an ImageGenerator instance. As far as i can tell i'm passing in all valid values (no nulls), screenshot below of it happening.

NullException.PNG

Could you comment on why GraphicsMill would be doing this please? This seems to be an one off as well which is more worrying, i've ran my code several times and no exceptions. I'm using the Aurigma.GraphicsMill.Core.x64 nuget package version 9.1.3.

Code:

System.NullReferenceException occurred
  HResult=-2147467261
  Message=Object reference not set to an instance of an object.
  Source=Aurigma.GraphicsMill
  StackTrace:
       at Aurigma.GraphicsMill.PipelineElement..ctor(String name, Boolean isSource, Boolean isReceiver, Boolean canStartPipeline)
       at Aurigma.GraphicsMill.ImageGenerator..ctor(Int32 width, Int32 height, PixelFormat pixelFormat, Color backgroundColor)
       at Tolarus.Platform.Rendering.GraphicsMill.Pipelines.MemoryFriendlyRenderPipeline.CreateImageGenerator(Size size, PointF dpi) in C:\Dev\TFS\Tolarus Branches\Feature-Designer\Server\Tolarus.Platform\Tolarus.Platform.Rendering.GraphicsMill\Pipelines\MemoryFriendlyRenderPipeline.cs:line 50
  InnerException: 


It may or may not help but i render images on multiple threads (using TPL) but i keep each image to their own thread so there shouldn't be any thread safety issues?

Thanks
Fedor  
#2 Posted : Thursday, June 15, 2017 5:43:14 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 Chris,

Could you reproduce the problem using a console application?

What kind of application (desktop, web, windows servcice) do you have?
Best regards,
Fedor Skvortsov
Chris Jones  
#3 Posted : Thursday, June 15, 2017 5:51:22 AM(UTC)
Chris Jones

Rank: Advanced Member

Groups: Member
Joined: 6/9/2016(UTC)
Posts: 34

Thanks: 22 times
It's a WPF desktop application where i'm currently rendering to a bitmap file using pipelines, i then load the bitmap as WPF BitmapSource for display. So graphicsmill is fairly separated from the application/UI itself. This error has only happened once so i don't think its reproducible, i'll keep an eye on it to see if it happens again though.

We will probably be using it from windows services and azure/web services in the future too.
Fedor  
#4 Posted : Sunday, June 18, 2017 8:12:19 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)
Hi Chris,

Alternatively you can configure Windows to create dump files when an application crashes, so we could debug the problem.

Dumps can contain confidential information, so please use our case system to submit them to us.

Edited by user Monday, June 19, 2017 7:56:19 AM(UTC)  | Reason: Not specified

Best regards,
Fedor Skvortsov
Users browsing this topic
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.