[#10196] - SVG image generation error in Studio and macOS

Category:
Bug report
Priority:
Immediate
Status:
New
Project: Severity:
Block
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

This critical bug has been around for a while and I would really much appreciate this to be taken care of.

Issue: Using Studio's any version, running on macOS (High Sierra, Sierra or El Capitan), using phantomJS (v6.4 or previous with external component as well) and using Highchart's javascript components on custom visualization components there is a severe error on preview.

Error message: net.sf.jasperreports.engine.JRRuntimeException: Error while executing the javascript file to generate the SVG image: External process did not end properly; exit value 139.

The report compiles through, but the preview will give this error.

Attachment includes a small dummy report with some components and the main.jrxml file which crashes.

Br,
Ilmari Ahonen

AttachmentSize
Package icon dummytest-20171215t140928z-001.zip252.4 KB
v6.4
Custom Visualization Component
ilmari.ahonen's picture
Joined: Dec 15 2017 - 6:14am
Last seen: 5 years 3 months ago

2 Comments:

#1

Hi Ilmari,

your CVC works great, but you need to revisit the path of your script, which should be in the same directory as the report (or in general in the classpath, otherwise JasperReports will not be able to find it). The HTML version may still work, only because the browser is able to load a file which has a specific path, and then properly interpret the perfPie/demo.min.js location.

Solution:
1. move your build.js, demo.js inside the project root folder
2. adjust the component script to be just demo.min.js

Run the report.

Attached please find a screenshot with the result.

Thanks

Giulio

AttachmentSize
Image icon screen_shot_2017-12-18_at_10.08.37.png229.41 KB
#2

Hello,

Thank you for your feedback, but this solution does not work for me. I followed the steps, but that did not have any effect.
HTML version works, but it has some problems on the other components I will use for the report, so that is not sufficient solution.

The same setup works fine with Windows computers, so I'm still wondering how the OS effects on this.

AttachmentSize
Image icon screen-shot.png390.03 KB
Feedback
randomness