processing / processing/processing4

Opening `pde://` link on Windows 10 causes unexpected behavior

Offen
#998 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

bug
Vorherrschende Sprache
Java
Sterne
494
Forks
183
Ø Merge
4 Std. 39 Min.
Gemergte PRs (30 T.)
3

Beschreibung

Most appropriate sub-area of Processing 4?

PDE

Processing version

4.4.1

Operating system

Windows 10

Steps to reproduce this
  1. Install Processing 4.4.1 with the .msi installer.
  2. Paste the pde:// link below in Chrome and press Enter.
  3. Click "Open Processing" and wait for Processing to start.
  4. Notice that the PDE shows visual glitches and errors in the console.
snippet
pde://sketch/base64/LyoqCiAqIEFycmF5LiAKICogCiAqIEFuIGFycmF5IGlzIGEgbGlzdCBvZiBkYXRhLiBFYWNoIHBpZWNlIG9mIGRhdGEgaW4gYW4gYXJyYXkgCiAqIGlzIGlkZW50aWZpZWQgYnkgYW4gaW5kZXggbnVtYmVyIHJlcHJlc2VudGluZyBpdHMgcG9zaXRpb24gaW4gCiAqIHRoZSBhcnJheS4gQXJyYXlzIGFyZSB6ZXJvIGJhc2VkLCB3aGljaCBtZWFucyB0aGF0IHRoZSBmaXJzdCAKICogZWxlbWVudCBpbiB0aGUgYXJyYXkgaXMgWzBdLCB0aGUgc2Vjb25kIGVsZW1lbnQgaXMgWzFdLCBhbmQgc28gb24uIAogKiBJbiB0aGlzIGV4YW1wbGUsIGFuIGFycmF5IG5hbWVkICJjb3N3YXZlIiBpcyBjcmVhdGVkIGFuZAogKiBmaWxsZWQgd2l0aCB0aGUgY29zaW5lIHZhbHVlcy4gVGhpcyBkYXRhIGlzIGRpc3BsYXllZCB0aHJlZSAKICogc2VwYXJhdGUgd2F5cyBvbiB0aGUgc2NyZWVuLiAgCiAqLwoKCmZsb2F0W10gY29zd2F2ZTsgCgp2b2lkIHNldHVwKCkgewogIHNpemUoNjQwLCAzNjApOwogIGNvc3dhdmUgPSBuZXcgZmxvYXRbd2lkdGhdOwogIGZvciAoaW50IGkgPSAwOyBpIDwgd2lkdGg7IGkrKykgewogICAgZmxvYXQgYW1vdW50ID0gbWFwKGksIDAsIHdpZHRoLCAwLCBQSSk7CiAgICBjb3N3YXZlW2ldID0gYWJzKGNvcyhhbW91bnQpKTsKICB9CiAgYmFja2dyb3VuZCgyNTUpOwogIG5vTG9vcCgpOwp9Cgp2b2lkIGRyYXcoKSB7CgogIGludCB5MSA9IDA7CiAgaW50IHkyID0gaGVpZ2h0LzM7CiAgZm9yIChpbnQgaSA9IDA7IGkgPCB3aWR0aDsgaSsrKSB7CiAgICBzdHJva2UoY29zd2F2ZVtpXSoyNTUpOwogICAgbGluZShpLCB5MSwgaSwgeTIpOwogIH0KCiAgeTEgPSB5MjsKICB5MiA9IHkxICsgeTE7CiAgZm9yIChpbnQgaSA9IDA7IGkgPCB3aWR0aDsgaSsrKSB7CiAgICBzdHJva2UoY29zd2F2ZVtpXSoyNTUgLyA0KTsKICAgIGxpbmUoaSwgeTEsIGksIHkyKTsKICB9CiAgCiAgeTEgPSB5MjsKICB5MiA9IGhlaWdodDsKICBmb3IgKGludCBpID0gMDsgaSA8IHdpZHRoOyBpKyspIHsKICAgIHN0cm9rZSgyNTUgLSBjb3N3YXZlW2ldKjI1NSk7CiAgICBsaW5lKGksIHkxLCBpLCB5Mik7CiAgfQogIAp9?pde=
Additional context

Image

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 0
	at processing.app.ui.EditorHeader.paintComponent(EditorHeader.java:238)
	at java.desktop/javax.swing.JComponent.paint(Unknown Source)
	at java.desktop/javax.swing.JComponent.paintChildren(Unknown Source)
	at java.desktop/javax.swing.JComponent.paint(Unknown Source)
	at java.desktop/javax.swing.JComponent.paintChildren(Unknown Source)
	at java.desktop/javax.swing.JSplitPane.paintChildren(Unknown Source)
	at java.desktop/javax.swing.JComponent.paint(Unknown Source)
	at java.desktop/javax.swing.JComponent.paintToOffscreen(Unknown Source)
	at java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBufferedImpl(Unknown Source)
	at java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
	at java.desktop/javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
	at java.desktop/javax.swing.RepaintManager.paint(Unknown Source)
	at java.desktop/javax.swing.JComponent._paintImmediately(Unknown Source)
	at java.desktop/javax.swing.JComponent.paintImmediately(Unknown Source)
	at java.desktop/javax.swing.RepaintManager$4.run(Unknown Source)
	at java.desktop/javax.swing.RepaintManager$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
	at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
	at java.desktop/javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source)
	at java.desktop/javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Would you like to work on the issue?

Maybe, with some guidance. But also happy to leave it to another contributor.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Reproduziere den Windows-10-Ablauf, indem du den bereitgestellten pde://-Link nach der Installation von Processing 4.4.1 mit dem .msi-Installer über Chrome öffnest. Beginne bei processing.app.ui.EditorHeader.java in Zeile 238 und untersuche die gemeldete ArrayIndexOutOfBoundsException. Fertig ist es, wenn das Sketch ohne visuelle Darstellungsfehler oder Konsolenfehler geöffnet wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
desktop
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
52/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.