Bug 160209 - Running the SDK example in Java more than 3 times results in a black screen appearing on subsequent documents.
Summary: Running the SDK example in Java more than 3 times results in a black screen a...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
Version:
(earliest affected)
24.2.1.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: QA:needsComment
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-15 06:36 UTC by Roman
Modified: 2024-04-02 03:12 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman 2024-03-15 06:36:36 UTC
Description:
Running the SDK example in Java more than 3 times results in a black screen appearing on subsequent documents. Running the same example on Apache Open Office does not lead to such errors.

Actual Results:
black screen 

Expected Results:
black screen 


Reproducible: Always


User Profile Reset: No

Additional Info:
public class Test {
    public static void main(String args[]) throws Exception {
        Test t = new Test();
        
        try {
            t.test();
        } catch (Exception e) {
            System.err.println(e);
            e.printStackTrace();
        }
        System.exit(0);
    }
    
    public void test() throws Exception {
        String file ;
        URL [] urls = new URL[2];
        //URL [] urls = new URL[5];
        file = "D:\\Project\\fccs74_java\\officel\\build\\classes\\";
        urls[0] = new File(file).toURI().toURL();
        //file = "C:\\Program Files\\LibreOffice\\program\\classes\\libreoffice.jar";
        file = "C:\\Program Files (x86)\\LibreOffice\\program\\classes\\libreoffice.jar";
        urls[1] = new File(file).toURI().toURL();
//        file = "C:\\Program Files (x86)\\OpenOffice 4\\program\\classes\\ridl.jar";
//        urls[1] = new File(file).toURI().toURL();
//        file = "C:\\Program Files (x86)\\OpenOffice 4\\program\\classes\\juh.jar";
//        urls[2] = new File(file).toURI().toURL();
//        file = "C:\\Program Files (x86)\\OpenOffice 4\\program\\classes\\jurt.jar";
//        urls[3] = new File(file).toURI().toURL();
//        file = "C:\\Program Files (x86)\\OpenOffice 4\\program\\classes\\unoil.jar";
//        urls[4] = new File(file).toURI().toURL();

        //
        final ClassLoader loader = new URLClassLoader(urls, null);
        //
        //Class c = loader.loadClass( "officel.test.TestLibre" );
        Class c = loader.loadClass( "officel.test.SCalc" );
        //Class c = loader.loadClass( "officel.test.EuroAdaption");
        //Class c = loader.loadClass( "officel.test.Test" );
        @SuppressWarnings("unchecked")
        //Method m = c.getMethod( "main", new Class[] { String[].class } );
        //Method m = c.getMethod( "printReport", new Class[] { Object[].class } );
        Method m = c.getMethod( "printReport", null );
        //Method m = c.getMethod( "test", null );
        Object obj = c.getDeclaredConstructor().newInstance();
        //m.invoke( obj, new Object[] {1,2,3  } );
        m.invoke( obj, null );
        
    }


Scalc modified the name of the main launch method:
public static void printReport() {
Comment 1 Roman 2024-03-18 09:43:26 UTC
The solution has been found. Tools - parameters - View - disable "All output via Skia"