Bug 62949

Summary: SlideShow rendering - keyframe fractions must be increasing
Product: POI Reporter: Andreas Beeker <kiwiwings>
Component: SL CommonAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: major    
Priority: P2    
Version: 4.0.x-dev   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: PPT with several 0.0 fraction values

Description Andreas Beeker 2018-11-25 19:16:25 UTC
Created attachment 36276 [details]
PPT with several 0.0 fraction values

The following exception occurs while the common crawl integration tests, because the input files contain multiple same fractions for gradient colors.


java.lang.IllegalArgumentException: Keyframe fractions must be increasing: *
	at java.awt.MultipleGradientPaint.(MultipleGradientPaint.java:184)
	at java.awt.LinearGradientPaint.(LinearGradientPaint.java:286)
	at java.awt.LinearGradientPaint.(LinearGradientPaint.java:244)
	at java.awt.LinearGradientPaint.(LinearGradientPaint.java:211)
	at o.a.p.sl.draw.DrawPaint.createLinearGradientPaint(DrawPaint.java:434)
	at o.a.p.sl.draw.DrawPaint.getGradientPaint(DrawPaint.java:232)
	at o.a.p.sl.draw.DrawPaint.getPaint(DrawPaint.java:147)
	at o.a.p.sl.draw.DrawPaint.getPaint(DrawPaint.java:137)
	at o.a.p.sl.draw.DrawBackground.draw(DrawBackground.java:56)
	at o.a.p.sl.draw.DrawSlide.draw(DrawSlide.java:38)
	at o.a.p.xslf.usermodel.XSLFSlide.draw(XSLFSlide.java:373)
	at o.a.p.stress.SlideShowHandler.renderSlides(SlideShowHandler.java:117)
	at o.a.p.stress.SlideShowHandler.handleSlideShow(SlideShowHandler.java:43)
	at o.a.p.stress.XSLFFileHandler.handleFile(XSLFFileHandler.java:43)
	at o.a.p.BaseIntegrationTest.handleWrongExtension(BaseIntegrationTest.java:125)
	at org.dstadler.commoncrawl.FileHandlingRunnable.run(FileHandlingRunnable.java:64)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Comment 1 Andreas Beeker 2018-11-25 19:27:06 UTC
Fixed via r1847428