Hi,
we get a segmentation fault when trying to convert a ppt to pdf thru mono and aspose.slides for .net without X server.
With X server, here are the results :
- X session with user jm :
– on terminal logged with jm ==> conversion OK, su novaappserver ==> conversion OK
– on terminal logged with root ==> conversion OK, , su jm ==> conversion OK , su novaappserver ==> conversion KO !!
- X session with user novaappserver :
– on terminal logged with novaappserver ==> conversion OK, su jm ==> conversion OK
– on terminal logged with root ==> conversion OK, su jm ==> conversion KO, su novaappserver : conversion OK
attached is a zip with the codeblocks project, the exe and the ppt test file
to test :
- add the Aspose.Slides.dll and a Aspose.Total.lic into release/libs
- cd into release
- type ./testmono ./test.ppt ==> it must create /tmp/result3.pdf … if there is a X server ou seg fault without X Server
Thanks in advance for your help.
Hi Bottura,
Thanks for your interest in Aspose.Slides.
I have observed the details shared by you and suggest you to please try using Aspose.Slides for .NET 8.0.0 on your end. If there is still an issue then please share the Ubuntu and Mono version details used on your end. Please also share the stack trace with us if available.
Many Thanks,
hi,
there is still the issue with Aspose.Slides v8.0.0.
attached are the required informations.
Let me know if they are sufficient.
Best regards
Hi Bottura,
Please accept my apologies for the delayed response.
Thanks for sharing the requested information and carrying out necessary
investigation. I have created an issue with ID SLIDESNET-34824 in
our issue tracking system to further investigate and resolve the issue. I have
also observed that you have not shared the sample presentation and sample
project. Please share the requested information so that we may proceed further
with our investigation when the issue will be scheduled.
We are sorry for your inconvenience,
Hi,
the sample ppt and the sample project have been attached to the first mesage of this post.
Best regards
Hi Bottura,
Hi,
concerning this ticket, we wrote another very simple test program :
using System;We compile it on windows with Visual Studio 2008 and we run it ON LINUX by "mono doctopdf.exe"
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Aspose.Slides;
using Aspose.Slides.Export;
namespace DocToPdf
{
class Program
{
static void Main(string[] args)
{
Presentation pres = new Presentation("/tmp/test.ppt");
pres.Save("/tmp/test.ppt.pdf", SaveFormat.Pdf);
}
}
}
If we are logged as root or if we are the current X user, it works.
With a user non logged under X, we get the error message below ==> it seems X-server is required : is there a way to run this program without X server ?
Unhandled Exception: System.TypeInitializationException:
An exception was thrown by the type initializer for . —> System.TypeInitializationException:
An exception was thrown by the type initializer for System.Windows.Forms.WindowsFormsSynchronizationContext —> System.TypeInitializationException:
An exception was thrown by the type initializer for System.Windows.Forms.XplatUI —> System.ArgumentNullException: Could not open display (X-Server required. Check you DISPLAY environment variable)
Parameter name: Display
at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) [0x00000] in :0
at System.Windows.Forms.XplatUIX11…ctor () [0x00000] in :0
at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] in :0
at System.Windows.Forms.XplatUI…cctor () [0x00000] in :0
— End of inner exception stack trace —
at System.Windows.Forms.Theme.get_MenuAccessKeysUnderlined () [0x00000] in :0
at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined () [0x00000] in :0
at System.Windows.Forms.Control…ctor () [0x00000] in :0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor ()
at System.Windows.Forms.WindowsFormsSynchronizationContext…cctor () [0x00000] in :0
— End of inner exception stack trace —
at System.Windows.Forms.Control…ctor () [0x00000] in :0
at System.Windows.Forms.ScrollableControl…ctor () [0x00000] in :0
at System.Windows.Forms.ContainerControl…ctor () [0x00000] in :0
at System.Windows.Forms.Form…ctor () [0x00000] in :0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form:.ctor ()
at …cctor () [0x00000] in :0
— End of inner exception stack trace —
at …(. drFont, Color fontColor, PointF origin, System.String text) [0x00000] in :0
at . (System.String text, RectangleF rect, . textParam) [0x00000] in :0
at … (. canvas, System.String text, RectangleF target, . textParam) [0x00000] in :0
at … (. canvas, System.String text, Int32 forcedDirection, Int32 startIndex, Int32 length, RectangleF target, Int32 textParamIndex, .[] textParamCache, System.String[] substituteNames, System.Collections.ArrayList rtlRenderOpsStack) [0x00000] in :0
at … (. canvas, System.String text, Int32 forcedDirection, Int32 startIndex, Int32 length, RectangleF target, Int32 textParamIndex, .[] textParamCache, System.String[] substituteNames, System.Collections.ArrayList rtlRenderOpsStack) [0x00000] in :0
at . (. canvas, System.String text, RectangleF target, . textParam) [0x00000] in :0
at … (. canvas, System.String text, RectangleF target, . textParam) [0x00000] in :0
at … (. canvas, . overrideFill) [0x00000] in :0
at Aspose.Slides.TextFrame. (. canvas, System.Collections.ArrayList rotations, . renderingContext) [0x00000] in :0
at Aspose.Slides.Rectangle. (. canvas, System.Collections.ArrayList rotations, . renderingContext) [0x00000] in :0
at Aspose.Slides.Slide. (. canvas, Aspose.Slides.Export.SaveOptions options) [0x00000] in :0
at Aspose.Slides.Slide. (Boolean saveMetafileAsPng, Aspose.Slides.Export.SaveOptions options) [0x00000] in :0
at …SaveToPdf (Aspose.Slides.Presentation pres, System.IO.Stream stream, System.Int32[] slides, Aspose.Slides.Export.PdfOptions options, Boolean notesView) [0x00000] in :0
at …SaveToPdf (Aspose.Slides.Presentation pres, System.IO.Stream stream, System.Int32[] slides, Aspose.Slides.Export.PdfOptions options) [0x00000] in :0
at Aspose.Slides.Presentation.Save (System.IO.Stream stream, SaveFormat format, Aspose.Slides.Export.SaveOptions options) [0x00000] in :0
at Aspose.Slides.Presentation.Save (System.String fname, SaveFormat format) [0x00000] in :0
at DocToPdf.Program.Main (System.String[] args) [0x00000] in :0
Hi Bottura,
Thank you very much for sharing the further details. I have appended the information with concerned issue and will share the feedback with you as soon as the issue will be resolved.
Many Thanks,
any news about this post ?
We need to have it working …
Thanks in advance.
Hi Bottura,
I have verified from our issue tracking system and regret to share that the issue has not yet been resolved yet. I have requested for feedback from our development team and will share that with you as soon as it will be shared by them. Secondly, I also suggest you to please try using our latest build Aspose.Slides for .NET 14.5.0 on your end as well.
We are sorry for your inconvenience,
I tried with .NET 14.5.0 and the problem remains …
Hi Bottura,
Thanks for your feedback for Aspose.Slides for .NET 14.5.0. I have shared the feedback in our issue tracking system with our development team and will inform you once the support will be available in Aspose.Slides for .NET.
We are sorry for your inconvenience,
Hi,
any news ?
Hi,
I hope the explanation will be helpful.
Many Thanks,
ok, thank you for the reply.
We’ll try to use a dummy x-server.