Community
Participate
Working Groups
Created attachment 271560 [details] project to reproduce The BMP export of some diagram freeze the bundle in an endless loop. Steps to reproduce: 1- Import the attached project 2- Open the only diagram 3- Click on export button on tabbar 4- Choose to export as BMP 5- Launch export. Then the bundle freeze. The problem is located in org.eclipse.swt.internal.image.WinBMPFileFormat.unloadDataNoCompression(ImageData, byte[], OutputStream); The line int linesPerBuf = 32678 / bmpBpl produce 0 as result because bmpBpl is 37440. So the loop for (int y = 0; y < image.height; y += linesPerBuf) can never increment y leading to an infinite loop.
The problem is related to auto-scale. Without auto-scale, the export goes well.
I do not reproduce this issue on Linux
I reproduced the freeze on Windows in the same method as Pierre
*** Bug 547484 has been marked as a duplicate of this bug. ***
This issue is still present on Windows in Sirius 6.1: https://bugs.eclipse.org/bugs/show_bug.cgi?id=547484