Skip to content

Support for AWT double buffering #100

@8W93ULX6Bl

Description

@8W93ULX6Bl
CheerpJ is initializing

java.lang.NullPointerException
	at java.awt.Component$FlipBufferStrategy.getDrawGraphics(Unknown Source) 
        at processing.awt.PSurfaceAWT.render(Unknown Source)
        at processing.awt.PSurfaceAWT$SmoothCanvas.paint(Unknown Source)
        at sun.awt.RepaintArea.paintComponent(Unknown Source)
        at sun.awt.RepaintArea.paint(Unknown Source)
        at com.leaningtech.cheerpj.CheerpJComponentPeer.handleEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
<!doctype html>
<html>
<head>
    <title>some title</title>
    <script src="https://cjrtnc.leaningtech.com/2.1/loader.js" crossorigin="anonymous"></script>
</head>
<body></body>
<script>
      cheerpjInit();
      cheerpjCreateDisplay(innerWidth, innerHeight);
      cheerpjRunJar("application.jar");
</script>
</html>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions