Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Thu Oct 19, 2017 8:48 am

Hello,

I get an exception when trying to load a file from stream. This is the code that I use to load the presentation:

Code: Select all
using (FileStream fs = File.Open(fileName, FileMode.Open))
{
    presentationFromDisk.LoadFromStream(fs, FileFormat.Auto);
}


The exception with the stack trace is the following:

System.NullReferenceException Object reference not set to an instance of an object.

at spr6698.3()
at Spire.Presentation.ActiveSlide.0(SchemeColor A_0)
at Spire.Presentation.Drawing.ColorFormat.7()
at Spire.Presentation.Drawing.ColorFormat.get_Color()
at spr9888.0(spr6897 A_0, spr5443 A_1, spr7703 A_2, Int32 A_3, Int32 A_4)
at spr9888..ctor(spr646 A_0, spr9305 A_1, spr10471 A_2)
at spr646.4()
at spr646.0(IDictionary A_0)
at Spire.Presentation.GroupShape.PresentationLoaded(IDictionary shapeIdToShape)
at Spire.Presentation.ActiveSlide.PptxAfterLoad(spr7028 loadContext)
at spr6698.0(spr7028 A_0)
at spr10316.2(spr1950 A_0)
at spr10316.0(Stream A_0)
at spr10316.2(Stream A_0)
at spr10316..ctor(Stream A_0, spr2018 A_1)
at Spire.Presentation.Presentation.LoadFromStream(Stream stream, FileFormat fileFormat)
at SpirePresentationTest.Program.Main(String[] args) in c:\Users\user\Documents\Visual Studio 2013\Projects\SpirePresentationTest\SpirePresentationTest\Program.cs:line 31
at System.AppDomain._nExecuteAssembly(RuntimeAssembly 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.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()


This happens with just one presentation. It is larger than the maximum allowed attachment size, so if you need the file, I can send it via e-mail.

If you could help make sense of the stack trace or solving the issue it would be very appreciated.

All the best,

Dusan.

dmilic
 
Posts: 11
Joined: Wed Aug 16, 2017 8:27 am

Thu Oct 19, 2017 9:00 am

Hi Dusan,

Thanks for your inquiry.
Please send the input file to us(support@e-iceblue.com) via email, since it is difficult for us to say what the reason cause the issue if we don't have the file.

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Thu Oct 19, 2017 9:31 am

Hello,

The file has been sent to the support e-mail.

Thanks for the quick reply.

All the best,

Dusan

dmilic
 
Posts: 11
Joined: Wed Aug 16, 2017 8:27 am

Thu Oct 19, 2017 9:40 am

Hi Dusan,

Thanks for sharing the document.
I have reproduced the issue and logged it in our bug system. We will notify you when it is fixed.
Sorry for the inconvenience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Nov 03, 2017 7:34 am

Hi Dusan,

Thanks for waiting.
Now the issue has been fixed in following hotfix.
http://www.e-iceblue.com/downloads/hot_ ... 2.8.70.zip
Looking forward to your feedback.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue Nov 07, 2017 9:30 am

Hi Dusan,

Greetings from E-iceblue.
Did you use the hotfix ? Could you please give us some feedback at your convenience ?

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Mon Nov 13, 2017 7:50 am

Hello Betsy,

Sorry for the late reply. The upload is working now.
However, when we try to append a slide from the presentation I've sent you into a new presentation object we get an error.

[NullReferenceException: Object reference not set to an instance of an object.]
spr⋑.ᜃ() +390
Spire.Presentation.ActiveSlide.ᜀ(SchemeColor A_0) +23
Spire.Presentation.Drawing.ColorFormat.ᜇ() +132
Spire.Presentation.Drawing.ColorFormat.get_Color() +20
spr⮴.ᜀ(spr◛ A_0, sprᣨ A_1, sprὛ A_2, Int32 A_3, Int32 A_4) +4092
spr⮴..ctor(sprᯊ A_0, sprⓤ A_1, sprⷙ A_2) +992
sprᯊ.ᜄ() +624
sprᯊ.ᜀ(IDictionary A_0) +4503
Spire.Presentation.GroupShape.PresentationLoaded(IDictionary shapeIdToShape) +229
Spire.Presentation.ActiveSlide.PptxAfterLoad(spr⹛ loadContext) +143
spr⋑.ᜀ(spr⹛ A_0) +42
sprᱩ.ᜀ(ActiveSlide A_0, sprឲ A_1) +1354
sprᱩ.ᜀ(ActiveSlide A_0) +10322
Spire.Presentation.Collections.MasterSlideList.ᜀ(spr⧙ A_0) +489
Spire.Presentation.Collections.MasterSlideList.AppendSlide(IMasterSlide slide) +30
Spire.Presentation.SlideList.ᜀ(sprⰘ A_0) +718
Spire.Presentation.SlideList.Append(ISlide slide) +34


Thank you very much for the hotfix.

All the best,
Dusan
Last edited by dmilic on Mon Nov 13, 2017 9:25 am, edited 1 time in total.

dmilic
 
Posts: 11
Joined: Wed Aug 16, 2017 8:27 am

Mon Nov 13, 2017 8:30 am

Hi Dusan,

Thanks for your feedback.
Please feel free to contact us if there is any question.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Mon Nov 13, 2017 9:27 am

Hello, we've encountered a new issue, and I've edited the previous post to describe it.

Sorry for the inconvenience.

dmilic
 
Posts: 11
Joined: Wed Aug 16, 2017 8:27 am

Mon Nov 13, 2017 9:56 am

Hello Dusan,

Thanks for your inquiry.
I have noticed the issue and referred it to our dev team. Once there's any update, I will let you know.
Sorry for the inconvenience caused.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Return to Spire.Presentation

cron