Warnings and errors
Each entry gives the exact message, the method that emits it, its cause and its fix.
… stands for a part of the message that JOID fills at run time.
Hot reload is off for …
Section titled “Hot reload is off for …”Warning · [JOID] Hot reload is off for …: its classes are not loaded from a folder or a jar file, run it from one of them to reload it
Emitted by HotReload.watch.
With the dev jar, the UI opened, but its classes come from a place that hot reload cannot watch: a class loader of your own that reads them from memory or from the network, for example, rather than from a folder, a jar file, an entry of a jar, or a location of another scheme whose path names one of them. The UI works; editing its class does not reload it.
Run the application from a folder of classes or from a jar file, as an IDE or Gradle does: Dev tools.
The hot reload of … cannot start (…), the UI no longer reloads
Section titled “The hot reload of … cannot start (…), the UI no longer reloads”Warning · [JOID] The hot reload of … cannot start (…), the UI no longer reloads: check that the folder can be watched
Emitted by HotReload.watch.
With the dev jar, the watcher of the folder or jar of the UI failed to start, for example because the system limits the number of watched folders. The UI works without hot reload; the reason is in the parentheses.
Check that the folder exists and can be watched, or raise the limit of watched files of the system: Reload a UI while you work.
A hot reload watcher cannot stop (…), it stops with the JVM
Section titled “A hot reload watcher cannot stop (…), it stops with the JVM”Warning · [JOID] A hot reload watcher cannot stop (…), it stops with the JVM
Emitted by HotReload.unwatch.
With the dev jar, the last UI watched from a folder closed, and its watcher failed to stop. Nothing else is affected: the watcher stops when the JVM exits.
No fix is needed; the reason is in the parentheses: Reload a UI while you work.
A warning that carries the message of an exception
Section titled “A warning that carries the message of an exception”Warning · [JOID] …
Emitted by JOIDLog.warnOnce, JOIDLog.devWarnOnce, VideoNatives.install, SnapshotComparison.main.
A warning whose whole text is the message of an exception: a failed install of the video natives, or an error of the snapshot comparison. Each of these messages has its own entry on this page.
Read the message and look it up on this page.
A JOID.onReady callback failed (…), the next callbacks still run
Section titled “A JOID.onReady callback failed (…), the next callbacks still run”Warning · [JOID] A JOID.onReady callback failed (…), the next callbacks still run: catch the exception inside the callback to handle it
Emitted by JOID.load.
A listener given to JOID.onReady threw a RuntimeException; JOID runs the next listeners anyway.
Catch the exception inside the listener, or fix the code it names: Run code once JOID is ready.
The reload of … failed
Section titled “The reload of … failed”Warning · [JOID] The reload of … failed: …
Emitted by UI.fireKeyPressed, UI.draw.
With the dev jar, the reload or the renewal of the UI (Ctrl + R, Ctrl + Shift + R, or a hot reload after an edit) threw an IllegalStateException, whose message follows the colon, and the program goes on.
Look up that message on this page, fix its cause, then reload again: Dev tools.
The reload of … failed (…), fix init() then reload it again
Section titled “The reload of … failed (…), fix init() then reload it again”Warning · [JOID] The reload of … failed (…), fix init() then reload it again
Emitted by UI.fireKeyPressed, UI.draw.
With the dev jar, the reload of the UI (Ctrl + R, or a hot reload after an edit) threw in init() an exception other than an IllegalStateException, and the UI shows what the failed build left.
Fix the error named in the parentheses, then reload again: Dev tools.
… took …ms to draw a frame, more than the 16.66ms of 60 fps
Section titled “… took …ms to draw a frame, more than the 16.66ms of 60 fps”Warning · [JOID] … took …ms to draw a frame, more than the 16.66ms of 60 fps: move the heavy work out of draw() or spread it over several frames
Emitted by UI.draw.
With the dev jar and the profiler of the UI turned on in UIDataDebug, one frame of the UI took longer than a frame at 60 fps.
The first frame after a load or a reload never prints it: it prepares what the UI draws for the first time.
Move loading and computing out of the draw, onto a worker thread or into several frames: Performance.
The … of … failed (…), the next inputs still run
Section titled “The … of … failed (…), the next inputs still run”Warning · [JOID] The … of … failed (…), the next inputs still run: catch the exception inside the handler to handle it
Emitted by UI.fireUpdate, UI.fireMousePressed, UI.fireMouseReleased, UI.fireMouseDragged, UI.fireMouseScroll, UI.fireCharTyped, UI.fireKeyPressed, UI.fireKeyReleased.
A listener or the update() of the UI threw while JOID delivered an input or the update of a frame: an update, a press, a release, a drag, a scroll, a character or a key.
JOID prints it once per kind of input and of exception, and the next inputs still run.
Catch the exception inside the listener or update(), or fix the code it names: Events.
@… on … leaves active = false and changes nothing
Section titled “@… on … leaves active = false and changes nothing”Warning · [JOID] @… on … leaves active = false and changes nothing: write @…(active = true)
With the dev jar, a UI was created, or reloaded, whose class carries UIDataPopup or UIDataOverlay without active = true, and whose parent class does not carry that annotation.
The UI opens as a screen: the annotation keeps the values of a UI without it.
Write active = true in the annotation: Open a popup above a screen.
The property … of … cannot be read into its field … (…), the field keeps …
Section titled “The property … of … cannot be read into its field … (…), the field keeps …”Warning · [JOID] The property … of … cannot be read into its field … (…), the field keeps its default value
Emitted by UIPropertyHook.load.
A field marked UIProperty has a saved value that does not fit its type any more, usually because you changed the type of the field.
The field keeps the value that the UI gives it.
Keep the type of a remembered field, or give it another name: Remember a field of a UI.
The field … of … cannot be saved as the property … (…), its previous …
Section titled “The field … of … cannot be saved as the property … (…), its previous …”Warning · [JOID] The field … of … cannot be saved as the property … (…), its previous value is kept
Emitted by UIPropertyHook.save.
When the UI closed, the value of a field marked UIProperty could not be turned into JSON, for example a Class that Gson refuses to write, or an object that refers to itself (StackOverflowError in the parentheses).
The file keeps the value saved before, which the field reads back at the next opening; the other properties of the UI are saved.
Remember a value that JSON can hold: numbers, strings, booleans, lists, maps and plain objects of them. See Remember a field of a UI.
The store … cannot be restored from … (…), it starts from init()
Section titled “The store … cannot be restored from … (…), it starts from init()”Warning · [JOID] The store … cannot be restored from … (…), it starts from init(): catch the exception inside fromJson() to handle it
Emitted by UIStoreHook.useStore.
The fromJson() of a UIStore threw while it read the saved file; the store starts from its init() values.
Make fromJson() accept the files that older versions of your store wrote: Keep a store on disk.
The destroy of the store … failed (…), it is destroyed anyway
Section titled “The destroy of the store … failed (…), it is destroyed anyway”Warning · [JOID] The destroy of the store … failed (…), it is destroyed anyway: catch the exception inside destroy() to handle it
Emitted by UIStoreHook.destroyStore.
The destroy() of a UIStore threw when its scope ended; JOID forgets the store anyway.
Catch the exception inside destroy(), or fix the code it names: Write a store.
The store … cannot be saved (…), the other stores are saved anyway
Section titled “The store … cannot be saved (…), the other stores are saved anyway”Warning · [JOID] The store … cannot be saved (…), the other stores are saved anyway: catch the exception inside toJson() to handle it
Emitted by UIStoreHook.saveAll.
The toJson() of a UIStore threw while JOID saved the stores, when a UI closed or when the program ended; the previous file stays on disk.
Catch the exception inside toJson(), or fix the code it names: Keep a store on disk.
No key resolver knows the shortcut binding … of type … yet, the shortcut …
Section titled “No key resolver knows the shortcut binding … of type … yet, the shortcut …”Warning · [JOID] No key resolver knows the shortcut binding … of type … yet, the shortcut fires only once an IKeyResolver that knows it is registered: pass a Key or register an IKeyResolver with KeyResolver.register(...)
Emitted by Shortcut.
A Shortcut was created with a binding that is not a Key, and no registered IKeyResolver supports it yet.
The shortcut stays silent until a resolver that knows the binding is registered.
Pass a Key, or register the resolver of your key bindings before you create the shortcut: Use the key bindings of your application.
UncheckedIOException that carries the message of its cause
Section titled “UncheckedIOException that carries the message of its cause”UncheckedIOException · …
Emitted by HotReload.watch, ShaderSource.read, SnapshotComparison.main, SnapshotImage.read, SnapshotImage.write, SnapshotReport.write, SnapshotRunner.writeRenderer, SnapshotRunner.getShots, SnapshotRunner.run.
An IOException wrapped to cross a method that cannot throw it: reading a shader source, watching a folder for hot reload, or reading and writing the files of the testkit.
The message is the one of the cause.
Read the cause: a missing file, a folder that cannot be written, or a damaged file.
No IUIBridge can open …
Section titled “No IUIBridge can open …”IllegalStateException · No IUIBridge can open …: register one whose canHandle accepts it
Emitted by JOID.open, JOID.forceOpen.
JOID.open found no UI bridge whose canHandle accepts the UI: no backend is registered yet, or every UI bridge refuses the UI.
Register the backend before you open a UI, or open it from JOID.onReady; with UI bridges of your own, register one that accepts the UI.
See Opening a UI throws No IUIBridge can open.
The backend was built for JOID ….x, but JOID … is loaded
Section titled “The backend was built for JOID ….x, but JOID … is loaded”IllegalStateException · The backend was built for JOID ….x, but JOID … is loaded: update the backend
Emitted by JOID.checkVersion.
Backend.register compares the major version that the backend was built for with the major version of the JOID core on the classpath, and they differ.
Use the backend jar of the same release as the core jar: Choosing a backend.
The dev mode needs the dev classes of JOID
Section titled “The dev mode needs the dev classes of JOID”IllegalStateException · The dev mode needs the dev classes of JOID, use its dev jar
Emitted by JOIDEnv.devMode.
JOIDEnv.devMode was asked to turn the dev mode on with the prod jar, which holds no dev tools.
Put the dev jar on the classpath to use the dev mode: Dev tools.
The UI … is not open, only an open UI can be renewed
Section titled “The UI … is not open, only an open UI can be renewed”IllegalStateException · The UI … is not open, only an open UI can be renewed: open it before renew()
Emitted by UI.renew.
UI.renew replaces an open UI with a fresh instance, and this UI is not open in any bridge.
Open the UI first, or create a new instance and open it: Rebuild an open UI.
The UI … has no constructor without argument, it cannot be renewed
Section titled “The UI … has no constructor without argument, it cannot be renewed”IllegalStateException · The UI … has no constructor without argument, it cannot be renewed: use Ctrl + R to reload it instead
Emitted by UI.renew.
UI.renew creates the fresh instance with the constructor without argument of the class, and the class has none.
With the dev jar, Ctrl + Shift + R prints this message in the warning The reload of … failed.
Add a constructor without argument, of any visibility, or reload the UI instead: Rebuild an open UI.
The UI … cannot be renewed
Section titled “The UI … cannot be renewed”IllegalStateException · The UI … cannot be renewed: its constructor without argument failed (…), fix the constructor from this error
Emitted by UI.renew.
UI.renew called the constructor without argument of the class, and it threw; the open UI stays as it was.
With the dev jar, Ctrl + Shift + R prints this message in the warning The reload of … failed.
Fix the constructor from the error in the parentheses: UIs.
The UI … cannot be a popup and an overlay at the same time, keep only …
Section titled “The UI … cannot be a popup and an overlay at the same time, keep only …”IllegalStateException · The UI … cannot be a popup and an overlay at the same time, keep only one of @UIDataPopup and @UIDataOverlay
The UI is annotated with an active UIDataPopup and an active UIDataOverlay; a UI is one of the two at most.
Keep one annotation: Overlays and popups.
The store … has no @UIStoreData annotation, add it to the class
Section titled “The store … has no @UIStoreData annotation, add it to the class”IllegalStateException · The store … has no @UIStoreData annotation, add it to the class
Emitted by UIStoreHook.getData.
A UIStore class without UIStoreData was used; JOID cannot know its scope.
Annotate the class with @UIStoreData: Write a store.
Annotations
Section titled “Annotations”The class … has no public method …(…) for the annotation value …, add …
Section titled “The class … has no public method …(…) for the annotation value …, add …”IllegalStateException · The class … has no public method …(...) for the annotation value …, add it
Emitted by AnnotationValues.read, AnnotationValues.merge.
An object that changes a UI setting while the UI runs was applied to a target that lacks the public method of one of its values.
Add the public method that the message names, with the parameter type of the value: Configure a UI.
The method … of … failed for an annotation value (…)
Section titled “The method … of … failed for an annotation value (…)”IllegalStateException · The method … of … failed for an annotation value (…)
Emitted by AnnotationValues.read, AnnotationValues.merge.
The method that applies an annotation value threw; the cause is in the parentheses.
Fix the method from that cause: Configure a UI.
The update of … failed (…), the next updates still run
Section titled “The update of … failed (…), the next updates still run”Warning · [JOID] The update of … failed (…), the next updates still run: catch the exception inside update() to handle it
Emitted by Node.fireUpdate.
The update() of a node threw during a frame; JOID prints it once per class of node and kind of exception, and the other nodes still update.
Catch the exception inside update(), or fix the code it names: Node lifecycle.
The detach of … failed (…), the node is detached anyway
Section titled “The detach of … failed (…), the node is detached anyway”Warning · [JOID] The detach of … failed (…), the node is detached anyway: catch the exception inside detach() to handle it
Emitted by Node.fireDetach.
The detach() of a node threw; JOID detaches the node anyway.
A detach listener that throws gives the listener warning instead.
Catch the exception inside detach(), or fix the code it names: Release what a node started.
…(…) on … is brought back to 0
Section titled “…(…) on … is brought back to 0”Warning · [JOID] …(…) on … is brought back to 0: the scroll offsets are negative, from 0 down to minus the overflow, call …(…) instead
Emitted by Node.
In dev mode, scrollX(...), scrollY(...), scrollTo(...) or a bound signal gave a node a positive scroll offset; the node scrolls to 0 instead.
Pass the negative offset that the message names: Scroll from your code.
A watch of … cannot apply its property when its signal changes (…), the …
Section titled “A watch of … cannot apply its property when its signal changes (…), the …”Warning · [JOID] A watch of … cannot apply its property when its signal changes (…), the remaining properties of this watch still apply: check the value the signal gives or the body it replays
Emitted by Node.watch.
A property given to watch(...) threw when its signal changed, for example on a value the body does not expect.
The other properties of the watch still apply.
Check the value that the signal gives and the code of the property: Choose what a change does.
The dev panel cannot read the field … of … (…), the panel leaves it out
Section titled “The dev panel cannot read the field … of … (…), the panel leaves it out”Warning · [JOID] The dev panel cannot read the field … of … (…), the panel leaves it out
With the dev jar, the inspector could not read one field of the selected node, often a field that the module system hides. The panel shows the other fields.
No fix is needed; the reason is in the parentheses: Inspect a UI.
The … has no …, …
Section titled “The … has no …, …”IllegalStateException · The … has no …, …
Emitted by Node.require.
A node of your own declared a setting as required with require(...), and the node was loaded without it.
The end of the message is the advice that the node gives.
Set what the message names before the node is attached: Give the node a property.
The node … cannot be copied: its constructor … failed (…)
Section titled “The node … cannot be copied: its constructor … failed (…)”IllegalStateException · The node … cannot be copied: its constructor … failed (…)
Emitted by Node.instantiate.
copy(), or a drag with DraggableType.COPY, created the copy with a constructor of the class, and that constructor threw.
Fix the constructor from the error in the parentheses: Make your node duplicable.
The node … cannot be copied: declare a constructor (x, y, width, height) or override instantiate()
Section titled “The node … cannot be copied: declare a constructor (x, y, width, height) or override instantiate()”IllegalStateException · The node … cannot be copied: declare a constructor (x, y, width, height) or override instantiate()
Emitted by Node.instantiate.
copy(), or a drag with DraggableType.COPY, found no constructor (x, y, width, height), (x, y) or without argument in the class of the node.
Declare one of these constructors, of any visibility, or override instantiate(): Make your node duplicable.
The node … has no DraggableProperty
Section titled “The node … has no DraggableProperty”IllegalStateException · The node … has no DraggableProperty, call draggable(...) first
Emitted by Node.startDragging.
startDragging() was called on a node that is not draggable.
Give the node a DraggableProperty with draggable(...) first: Make a node draggable.
The node … has a disabled DraggableProperty, enable it with enabled(…) …
Section titled “The node … has a disabled DraggableProperty, enable it with enabled(…) …”IllegalStateException · The node … has a disabled DraggableProperty, enable it with enabled(...) first
Emitted by Node.startDragging.
startDragging() was called while the DraggableProperty of the node is disabled.
Enable the property, or check it before you start the drag: Make a node draggable.
The node … is dragged inside its parent but sits at the top of its UI, …
Section titled “The node … is dragged inside its parent but sits at the top of its UI, …”IllegalStateException · The node … is dragged inside its parent but sits at the top of its UI, attach it to a node or pick another area such as DraggableProperty.ui()
Emitted by Node.startDragging, DraggableProperty.getBounds.
A drag kept inside the parent started on a node attached to the UI itself, which has no parent node to bound it.
Attach the node to a node, or pick another area, such as DraggableProperty.ui(): Choose where the node may go.
The … is dragged with DraggableType.MOVE but its … is computed (a lambda …
Section titled “The … is dragged with DraggableType.MOVE but its … is computed (a lambda …”IllegalStateException · The … is dragged with DraggableType.MOVE but its … is computed (a lambda or a signal that cannot be written), so a drag cannot move it: give …(...) a value or a writable Signal, or drag a copy with DraggableType.COPY
Emitted by Node.x, Node.y, Node.draggable.
A drag that moves the node needs to write its position, and x or y follows a lambda or a derived signal that cannot be written.
Give the position a value or a writable Signal, or drag a copy: Leave the original in place.
The node … cannot be copied: its field … cannot be set (…)
Section titled “The node … cannot be copied: its field … cannot be set (…)”IllegalStateException · The node … cannot be copied: its field … cannot be set (…), mark the field transient to leave it out of copy()
Emitted by Node.copy, Node.startDragging.
copy() copies every field of the node by reflection, and one field refused the value, for example a final field that the module system protects.
Mark the field transient to leave it out of the copy, and set it in the constructor: Make your node duplicable.
The … has no X axis to hold the data …
Section titled “The … has no X axis to hold the data …”IllegalStateException · The … has no X axis to hold the data …, call xAxis(...) before data(...)
Emitted by ChartNode.data.
data(...) was called on a ChartNode whose X axis is not set yet.
Call xAxis(...) first: Draw a line chart.
The … has no X axis to remove the data … from
Section titled “The … has no X axis to remove the data … from”IllegalStateException · The … has no X axis to remove the data … from, call xAxis(...) before removeData(...)
Emitted by ChartNode.removeData.
removeData(...) was called on a ChartNode whose X axis is not set yet.
Call xAxis(...) first: Update the data.
The min … of the zoom range is above its max …, pass a min of at most …
Section titled “The min … of the zoom range is above its max …, pass a min of at most …”IllegalArgumentException · The min … of the zoom range is above its max …, pass a min of at most …
Emitted by ModelViewerNode.zoomRange.
zoomRange(min, max) of a ModelViewerNode received, or its suppliers returned, a minimum above the maximum.
Pass a minimum lower than or equal to the maximum: Let the user rotate and zoom.
The min … of the rotation yaw range is above its max …, pass a min of at …
Section titled “The min … of the rotation yaw range is above its max …, pass a min of at …”IllegalArgumentException · The min … of the rotation yaw range is above its max …, pass a min of at most …
Emitted by ModelViewerNode.rotationYawRange.
rotationYawRange(min, max) of a ModelViewerNode received, or its suppliers returned, a minimum above the maximum.
Pass a minimum lower than or equal to the maximum: Let the user rotate and zoom.
The min … of the rotation pitch range is above its max …, pass a min of …
Section titled “The min … of the rotation pitch range is above its max …, pass a min of …”IllegalArgumentException · The min … of the rotation pitch range is above its max …, pass a min of at most …
Emitted by ModelViewerNode.rotationPitchRange.
rotationPitchRange(min, max) of a ModelViewerNode received, or its suppliers returned, a minimum above the maximum.
Pass a minimum lower than or equal to the maximum: Let the user rotate and zoom.
The resource … of this ResourcePlayerNode has no playback
Section titled “The resource … of this ResourcePlayerNode has no playback”IllegalStateException · The resource … of this ResourcePlayerNode has no playback: give it a video or an animated image, or show a still image with a ResourceNode
Emitted by ResourcePlayerNode.play, ResourcePlayerNode.stop, ResourcePlayerNode.pause, ResourcePlayerNode.restart, ResourcePlayerNode.seek.
play(), stop(), pause(), restart() or seek(...) was called on a ResourcePlayerNode whose resource is a still image, which has nothing to play.
Give the node a video or an animated image, or show the image with a ResourceNode: Play animated images and videos.
A free draggable area has no bounds, check getAreaType() before calling …
Section titled “A free draggable area has no bounds, check getAreaType() before calling …”IllegalStateException · A free draggable area has no bounds, check getAreaType() before calling getBounds() or pick a bounded area such as DraggableProperty.parent()
Emitted by DraggableProperty.getBounds.
getBounds(...) was called on a DraggableProperty whose area is free, which bounds nothing.
Check getAreaType() first, or use a bounded area: Choose where the node may go.
Controls
Section titled “Controls”The … has no values
Section titled “The … has no values”IllegalStateException · The … has no values, call values(...) before getValue()
getValue() was called on a choice control, a switch or a selector, before it received its options.
Give the control its options with values(...) first: Choose one of a few options.
The … needs at least one value, pass them to values(…)
Section titled “The … needs at least one value, pass them to values(…)”IllegalArgumentException · The … needs at least one value, pass them to values(...)
values(...) of a choice control received an empty list.
Pass at least one option: Choose one of a few options.
The value … is not an option of the … …, pass one of them or add it with …
Section titled “The value … is not an option of the … …, pass one of them or add it with …”IllegalArgumentException · The value … is not an option of the … …, pass one of them or add it with values(...)
Emitted by BaseChoiceNode.value, BaseChoiceNode.change.
value(...) or change(...) of a choice control received a value that is not among its options.
Pass one of the options, or add the value with values(...) first: Choose one of a few options.
The index … is out of the values … of the …, pass an index from 0 to …
Section titled “The index … is out of the values … of the …, pass an index from 0 to …”IllegalArgumentException · The index … is out of the values … of the …, pass an index from 0 to …
Emitted by BaseChoiceNode.valueIndex.
valueIndex(...) of a choice control received an index outside its options.
Pass an index from 0 to the number of options minus one: Choose one of a few options.
The step … of the IntegerFieldNode must be positive, pass a step of 1 or …
Section titled “The step … of the IntegerFieldNode must be positive, pass a step of 1 or …”IllegalArgumentException · The step … of the IntegerFieldNode must be positive, pass a step of 1 or more
Emitted by IntegerFieldNode.step.
step(...) of an IntegerFieldNode received, or its supplier returned, 0 or less.
Pass a step of 1 or more: Ask for a number.
The step … of the slider range must be positive, pass a step above 0
Section titled “The step … of the slider range must be positive, pass a step above 0”IllegalArgumentException · The step … of the slider range must be positive, pass a step above 0
Emitted by DoubleSliderNode.range.
range(min, max, step) of a DoubleSliderNode received a step of 0D or less.
Pass a step above 0D: Pick a value on a track.
The min … of the slider range is above its max …, pass a min of at most …
Section titled “The min … of the slider range is above its max …, pass a min of at most …”IllegalArgumentException · The min … of the slider range is above its max …, pass a min of at most …
Emitted by DoubleSliderNode.range, IntegerSliderNode.range.
range(min, max, step) of a slider received a minimum above its maximum.
Pass a minimum lower than or equal to the maximum: Pick a value on a track.
The slider range from … to … by … holds more than … values, pass a …
Section titled “The slider range from … to … by … holds more than … values, pass a …”IllegalArgumentException · The slider range from … to … by … holds more than … values, pass a narrower range or a larger step
Emitted by DoubleSliderNode.range, IntegerSliderNode.range.
range(...) of an IntegerSliderNode or a DoubleSliderNode received a range of more values than Integer.MAX_VALUE, such as range(0, Integer.MAX_VALUE).
Pass a narrower range or a larger step: Pick a value on a track.
The index … is out of the … values of the slider range
Section titled “The index … is out of the … values of the slider range”IndexOutOfBoundsException · The index … is out of the … values of the slider range
get(index) of the getValueList() of an IntegerSliderNode or a DoubleSliderNode received an index below 0 or past the last option.
Pass an index from 0 to size() minus one: Pick a value on a track.
The step … of the slider range must be positive, pass a step of 1 or …
Section titled “The step … of the slider range must be positive, pass a step of 1 or …”IllegalArgumentException · The step … of the slider range must be positive, pass a step of 1 or more
Emitted by IntegerSliderNode.range.
range(min, max, step) of an IntegerSliderNode received a step of 0 or less.
Pass a step of 1 or more: Pick a value on a track.
Layout
Section titled “Layout”The node … is not a child of this …, attach it to the flex first
Section titled “The node … is not a child of this …, attach it to the flex first”IllegalArgumentException · The node … is not a child of this …, attach it to the flex first
Emitted by ReorderableFlexNode.getChildIndex.
getChildIndex(...) of a ReorderableFlexNode received a node that is not one of its children.
Pass a child of the list: Let the user reorder a list.
Events
Section titled “Events”The … listener of … failed (…), the other listeners still run
Section titled “The … listener of … failed (…), the other listeners still run”Warning · [JOID] The … listener of … failed (…), the other listeners still run: catch the exception inside the listener to handle it
Emitted by EventBus.fireListeners, EventBus.fireMonitor.
A listener of an event threw; JOID prints it once per listener while the failure stays the same, and the other listeners still run.
Catch the exception inside the listener, or fix the code it names: Events.
A MONITOR listener only reads …, it cannot call …()
Section titled “A MONITOR listener only reads …, it cannot call …()”IllegalStateException · A MONITOR listener only reads …, it cannot call …(): listen with another priority to … it
Emitted by Event.checkWritable.
A listener registered with the MONITOR priority tried to change the event, by cancelling or consuming it.
A monitor listener runs last and sees the final result only.
Register the listener with another priority to change the event: Order the listeners of one event.
Signals
Section titled “Signals”A Signal.from(…) of … reads no signal, so its value never changes
Section titled “A Signal.from(…) of … reads no signal, so its value never changes”Warning · [JOID] A Signal.from(...) of … reads no signal, so its value never changes: read a signal with get() inside it, or pass a lambda to the setter to read the value at every frame
Emitted by ComputedSignal.refresh.
With the dev jar, a derived value computed by Signal.from read no signal the first time it computed, so it never computes again.
Read the signals with get() inside the function, or give the setter a lambda, which JOID reads at every frame: Combine several signals.
… but cannot follow it
Section titled “… but cannot follow it”Warning · [JOID] … but cannot follow it: …. The value stays "…". …
Emitted by SignalReplay.warn.
With the dev jar, a setter received an expression that reads signals, and JOID cannot replay its bytecode to find them; the message names the file, the line, the setter and the signals. The property keeps the value of the first read; the end of the message gives the advice for this case.
Follow the advice, or give the setter a lambda, which JOID reads at every frame: What JOID follows.
The replay of a signal read failed on an internal error, the value ”…” …
Section titled “The replay of a signal read failed on an internal error, the value ”…” …”Warning · [JOID] The replay of a signal read failed on an internal error, the value "…" stays fixed
Emitted by SignalReplay.replay.
With the dev jar, the replay of an expression given to a setter failed on an error of JOID itself; the stack trace follows. The property keeps the value of the first read.
Give the setter a lambda instead, and report the stack trace to JOID: How signals work.
The … of … cannot take its new value (…), it keeps the previous one
Section titled “The … of … cannot take its new value (…), it keeps the previous one”Warning · [JOID] The … of … cannot take its new value (…), it keeps the previous one: check the value its signal gives
Emitted by NodeBindings.pull.
A property bound to a signal refused the new value of the signal, for example a value outside its bounds.
Check the values that the signal gives: Bind a control to a signal.
… and the other controls bound to … keep correcting each other
Section titled “… and the other controls bound to … keep correcting each other”Warning · [JOID] … and the other controls bound to … keep correcting each other: their bounds are incompatible, give them bounds that agree
Emitted by NodeBindings.sync.
With the dev jar, several controls bound to one signal kept writing it back, each one to fit its own bounds, and JOID stopped after 16 rounds and set the first value back.
Give the controls bound to one signal bounds that agree: Keep a value that the bounds refuse.
SignalReplayException that carries the message of its cause
Section titled “SignalReplayException that carries the message of its cause”SignalReplayException · …
Emitted by SignalReplayClass.method, SignalReplayClass.read, SignalReplayFrame.execute, SignalReplayMethod.type, SignalReplayRun.position, SignalReplaySite.analyze, SignalReplay.replay, SignalReplayBinding.get.
The replay of an expression given to a setter met something it cannot follow; JOID catches it and prints … but cannot follow it instead.
See that entry.
A ComputedSignal cannot read itself while it computes its value, remove …
Section titled “A ComputedSignal cannot read itself while it computes its value, remove …”IllegalStateException · A ComputedSignal cannot read itself while it computes its value, remove the read of this signal from its function
Emitted by ComputedSignal.refresh.
The function of a derived value read the derived value itself, directly or through another one.
Remove that read from the function: Combine several signals.
IllegalStateException that carries the message of its cause
Section titled “IllegalStateException that carries the message of its cause”IllegalStateException · …
Emitted by Signal.set, Signal.reset, TransitionStep.copy, NodeEffect.copy.
An IllegalStateException whose message comes from your code: the Signal.refuse of a Signal subclass of your own gave it, and set(...) or reset() threw it.
Read the message that your code gave.
The IntegerSignal of value … cannot be divided by 0, check the divisor …
Section titled “The IntegerSignal of value … cannot be divided by 0, check the divisor …”IllegalArgumentException · The IntegerSignal of value … cannot be divided by 0, check the divisor before calling divide(...)
Emitted by IntegerSignal.divide.
divide(0) was called on an IntegerSignal.
Check the divisor before you divide: Choose a signal type.
The LongSignal of value … cannot be divided by 0, check the divisor …
Section titled “The LongSignal of value … cannot be divided by 0, check the divisor …”IllegalArgumentException · The LongSignal of value … cannot be divided by 0, check the divisor before calling divide(...)
Emitted by LongSignal.divide.
divide(0) was called on a LongSignal.
Check the divisor before you divide: Choose a signal type.
The value … has no events to listen to, declare them with events(…) …
Section titled “The value … has no events to listen to, declare them with events(…) …”IllegalStateException · The value … has no events to listen to, declare them with events(...) first
Emitted by InteractiveValue.before, InteractiveValue.on.
before(...) or on(...) of an InteractiveValue received a listener, but the value has no events.
Declare the two events of the value with events(...) before: Hold a value that the user changes.
The … of … is changed by the user, so it cannot follow …, which cannot …
Section titled “The … of … is changed by the user, so it cannot follow …, which cannot …”IllegalArgumentException · The … of … is changed by the user, so it cannot follow …, which cannot be written: pass a writable Signal, or its value as a start value
Emitted by NodeBindings.bindNullable.
A control received a derived or read-only signal for its value; the user changes that value, so the control must write it back.
Pass a writable Signal, or the value as a start value and listen to the changes: Bind a control to a signal.
The … is animated and cannot be …
Section titled “The … is animated and cannot be …”IllegalStateException · The … is animated and cannot be …, use value(...) or start a tween
Emitted by Signal.set, Signal.reset.
set(...) or reset() was called on a TweenAnimator.
Use TweenAnimator.value to put a value at once, or start a tween: Animate a value.
The … is computed from other signals and cannot be …
Section titled “The … is computed from other signals and cannot be …”IllegalStateException · The … is computed from other signals and cannot be …, set the signals it reads instead
Emitted by Signal.set, Signal.reset.
A derived value, made by map(...) or Signal.from(...), received set(...) or reset().
Set the signals that it reads instead: Write to a derived value through its sources.
The … is read-only and cannot be …
Section titled “The … is read-only and cannot be …”IllegalStateException · The … is read-only and cannot be …
Emitted by Signal.set, Signal.reset.
A Signal subclass of your own returns false from Signal.isWritable, and received set(...) or reset().
Change its value the way your subclass provides, or override Signal.refuse to tell its users how.
Animation
Section titled “Animation”The update of TweenAnimator failed (…), the other animators still run
Section titled “The update of TweenAnimator failed (…), the other animators still run”Warning · [JOID] The update of TweenAnimator failed (…), the other animators still run: catch the exception inside the onChange listeners of the animator or the getter and setter given to Tween.to(...) to handle it
A TweenAnimator threw while it advanced in a frame: one of its change listeners, or the getter or setter of one of its tweens.
The other animators still run.
Catch the exception in the listener, the getter or the setter, or fix the code it names: Animation.
The animator has no timeline
Section titled “The animator has no timeline”IllegalStateException · The animator has no timeline, call sequence(...) first
Emitted by TweenAnimator.start, TweenAnimator.delay, TweenAnimator.repeat, TweenAnimator.repeatYoyo, TweenAnimator.push.
A method of a TweenAnimator that works on its timeline, such as start(), delay(...), repeat(...) or push(...), was called before the animator received a timeline.
Call sequence(...) first: Animate values of your own.
A tween or timeline that repeats forever needs a duration or a repeat …
Section titled “A tween or timeline that repeats forever needs a duration or a repeat …”IllegalStateException · A tween or timeline that repeats forever needs a duration or a repeat delay above 0, give it one or a finite repeat count
Emitted by BaseTween.start.
start() was called on a tween or a timeline that repeats forever with a duration and a repeat delay of 0, which would loop forever within one frame.
Give it a duration or a repeat delay above 0, or a finite repeat count: Chain, repeat and replay.
The repetitions of a tween or timeline cannot change once it is started
Section titled “The repetitions of a tween or timeline cannot change once it is started”IllegalStateException · The repetitions of a tween or timeline cannot change once it is started, call …(...) before start()
Emitted by BaseTween.repeat, BaseTween.repeatYoyo.
repeat(...) or repeatYoyo(...) was called on a tween or a timeline that is already started.
Set the repetitions before start(): Chain, repeat and replay.
The pushed timeline still has an open beginSequence() or …
Section titled “The pushed timeline still has an open beginSequence() or …”IllegalArgumentException · The pushed timeline still has an open beginSequence() or beginParallel(), close each one with end() before pushing it
Emitted by Timeline.push.
push(timeline) received a timeline in which a beginSequence() or beginParallel() has no matching end().
Close each group with end() before you push the timeline: Animate values of your own.
The timeline has no open beginSequence() or beginParallel() to close, …
Section titled “The timeline has no open beginSequence() or beginParallel() to close, …”IllegalStateException · The timeline has no open beginSequence() or beginParallel() to close, remove this end()
Emitted by Timeline.end.
end() was called on a timeline that has no open group.
Remove the extra end(), or open the group it closes: Animate values of your own.
The timeline still has an open beginSequence() or beginParallel(), close …
Section titled “The timeline still has an open beginSequence() or beginParallel(), close …”IllegalStateException · The timeline still has an open beginSequence() or beginParallel(), close each one with end() before start()
The timeline was started while a beginSequence() or beginParallel() has no matching end().
Close each group with end() before start(): Animate values of your own.
A timeline cannot hold a child that repeats forever (repeat count …), …
Section titled “A timeline cannot hold a child that repeats forever (repeat count …), …”IllegalArgumentException · A timeline cannot hold a child that repeats forever (repeat count …), give it a finite repeat count
A timeline was started with a child that repeats forever, which would make the timeline itself endless.
Give the child a finite repeat count, or repeat the whole timeline instead: Animate values of your own.
A timeline takes no new child once it is built (start() builds it), push …
Section titled “A timeline takes no new child once it is built (start() builds it), push …”IllegalStateException · A timeline takes no new child once it is built (start() builds it), push its children before start()
Emitted by Timeline.push, Timeline.pushPause, Timeline.end, Timeline.beginSequence, Timeline.beginParallel.
A child was added to a timeline, or a group opened or closed, after start() built it.
Build the whole timeline before start(): Animate values of your own.
The duration of a tween cannot be negative, got …
Section titled “The duration of a tween cannot be negative, got …”IllegalArgumentException · The duration of a tween cannot be negative, got …: pass 0 or more
Emitted by Tween.
A Tween was created with a negative duration.
Pass a duration of 0 or more, in milliseconds: Animate values of your own.
The font weight … is not loaded in the family of …, … is drawn instead …
Section titled “The font weight … is not loaded in the family of …, … is drawn instead …”Warning · [JOID] The font weight … is not loaded in the family of …, … is drawn instead (loaded: …)
Emitted by FontFamily.resolve.
With the dev jar, a text asked for a weight that its font family does not hold, and JOID draws the nearest loaded face; JOID prints it once per weight and family.
Load the face of that weight with the family, or ask for a loaded weight: Let a style pick a face.
The font … of a text style is not drawn by …, the text keeps its own …
Section titled “The font … of a text style is not drawn by …, the text keeps its own …”Warning · [JOID] The font … of a text style is not drawn by …, the text keeps its own font: give the style a font drawn by …
Emitted by GlyphTextRenderer.layout.
With the dev jar, a style inside a text names a font that another text renderer draws, such as a bitmap font inside an MSDF text. JOID draws that part with the font of the text itself.
Mix only fonts of the same kind in one text: Choose MSDF or bitmap.
The font shader of … cannot be compiled by …, what it draws is skipped
Section titled “The font shader of … cannot be compiled by …, what it draws is skipped”Warning · [JOID] The font shader of … cannot be compiled by …, what it draws is skipped: the error printed by JOID when it was created tells why
Emitted by GlyphTextRenderer.drawText.
With the dev jar, the shader that draws a kind of font did not compile on this graphics context, so its texts are not drawn.
Read the compilation error that JOID printed before this message; on OpenGL, updating the graphics driver often fixes it: Choose MSDF or bitmap.
The text has no element at index …, give an index from 0 and lower than …
Section titled “The text has no element at index …, give an index from 0 and lower than …”IndexOutOfBoundsException · The text has no element at index …, give an index from 0 and lower than its element count (…)
Emitted by Text.get.
get(index) of a Text received an index outside its elements.
Pass an index from 0 to the element count minus one: Mix styles on one line.
A bitmap cell needs at least one texel, got the texels …, …, …, …
Section titled “A bitmap cell needs at least one texel, got the texels …, …, …, …”IllegalArgumentException · A bitmap cell needs at least one texel, got the texels …, …, …, …: give a right above the left and a bottom above the top
Emitted by BitmapCell.create.
BitmapCell.create received a rectangle of texels without area.
Give a right edge above the left one and a bottom edge above the top one: Write a pixel-art font.
The bounds of a bitmap cell cannot be empty, got …, …, …, …
Section titled “The bounds of a bitmap cell cannot be empty, got …, …, …, …”IllegalArgumentException · The bounds of a bitmap cell cannot be empty, got …, …, …, …: give a right above the left and a bottom above the top
Emitted by BitmapCell.bounds.
bounds(...) of a BitmapCell received bounds without area.
Give a right edge above the left one and a bottom edge above the top one: Write a pixel-art font.
The bitmap size … of a font is not positive, pass a size above 0
Section titled “The bitmap size … of a font is not positive, pass a size above 0”IllegalArgumentException · The bitmap size … of a font is not positive, pass a size above 0
Emitted by BitmapFont.
A BitmapFont was created with a size of 0 or less.
Pass the number of font pixels per em, above 0: Write a pixel-art font.
A font family needs at least one face, got none
Section titled “A font family needs at least one face, got none”IllegalArgumentException · A font family needs at least one face, got none: pass its faces to FontFamily.of(...)
Emitted by FontFamily.of.
FontFamily.of received no face.
Pass at least one face: Draw each glyph yourself.
Two faces share the weight …, keep one face per weight and style
Section titled “Two faces share the weight …, keep one face per weight and style”IllegalArgumentException · Two faces share the weight …, keep one face per weight and style
Emitted by FontFamily.of.
FontFamily.of received two faces with the same weight and the same italic flag.
Keep one face per weight and style, or set the weight of a file: Set the weight of a font file.
… cannot draw the font …, it is drawn by …
Section titled “… cannot draw the font …, it is drawn by …”IllegalArgumentException · … cannot draw the font …, it is drawn by …: draw it with info.getFont().getTextRenderer()
Emitted by GlyphTextRenderer.layout, GlyphTextRenderer.getLineHeight, GlyphTextRenderer.getBaseline.
Code of your own called a text renderer with a TextInfo whose font belongs to another renderer.
Draw with the renderer of the font, info.getFont().getTextRenderer(): Draw each glyph yourself.
A font face needs a name, got an empty one
Section titled “A font face needs a name, got an empty one”IllegalArgumentException · A font face needs a name, got an empty one: give the face the name of its font
Emitted by MsdfFontFace.of.
An MSDF face was created with an empty name.
Give the face the name of its font: Load a font family.
CompletionException that carries the message of its cause
Section titled “CompletionException that carries the message of its cause”CompletionException · …
Emitted by MsdfFontLoader.load.
The future of MsdfFontLoader.load completed with an error: the cause, such as an IOException of a file that cannot be read or generated, is in the message.
Read the cause, often another entry of this page: Load a font without blocking.
A msdf font needs at least one face, got none
Section titled “A msdf font needs at least one face, got none”IllegalArgumentException · A msdf font needs at least one face, got none: pass the files of its faces
Emitted by MsdfFontLoader.load.
MsdfFontLoader.load received no file; its future completes with this error.
Pass the files of the faces of the font: Load a font family.
The file does not start with JOIDMSDF, it is not a font made by the msdf …
Section titled “The file does not start with JOIDMSDF, it is not a font made by the msdf …”IOException · The file does not start with JOIDMSDF, it is not a font made by the msdf tool of JOID: generate it with that tool
A BinaryMsdfSource read a file that is not a .msdf atlas of JOID, such as a .ttf file given the wrong extension.
Load a .ttf or .otf file with OpenTypeMsdfSource, or generate the atlas: Generate MSDF atlases before you ship.
The msdf font version … is not supported, only the version … loads
Section titled “The msdf font version … is not supported, only the version … loads”IOException · The msdf font version … is not supported, only the version … loads: generate it again with the msdf tool of JOID
The .msdf atlas was written by a generator of another version of JOID.
Generate the atlas again with the generator of this version: Generate MSDF atlases before you ship.
The msdf atlas of the font cannot be generated in …, check that the font …
Section titled “The msdf atlas of the font cannot be generated in …, check that the font …”IOException · The msdf atlas of the font cannot be generated in …, check that the font is a valid TrueType or OpenType file and that the cache folder can be written
At the first load of a font file, JOID generates its atlas into the cache folder, and the generation failed: the file is not a font that Java can read, or the folder cannot be written.
Check the font file and the cache folder; What happens when a font loads explains the cache.
Resources
Section titled “Resources”The stream … cannot be closed (…), its content is read anyway
Section titled “The stream … cannot be closed (…), its content is read anyway”Warning · [JOID] The stream … cannot be closed (…), its content is read anyway: check the stream
Emitted by StreamAsset.open.
A StreamAsset read its stream, and closing it threw; the content is used anyway.
Check the stream that you gave, for example one already closed by its owner: Read resources from your own source.
The retention of the cache area … cannot be written into … (…), check …
Section titled “The retention of the cache area … cannot be written into … (…), check …”Warning · [JOID] The retention of the cache area … cannot be written into … (…), check that the cache folder can be written
Emitted by FileCacheArea.retention.
JOID could not write the file that records the retention of a cache area; the area works, but its files may be cleaned with the default retention.
Check that the cache folder can be written.
The cache entry … of the area … is in use, it is left to the next …
Section titled “The cache entry … of the area … is in use, it is left to the next …”Warning · [JOID] The cache entry … of the area … is in use, it is left to the next cleaning of the cache
Emitted by FileCacheArea.remove.
An entry of a cache area could not be deleted, usually because a file of it is open, on Windows for example; JOID marks it as old and deletes it at a later cleaning.
No fix is needed: Keep files of your own in the cache.
The resource … cannot be read
Section titled “The resource … cannot be read”Warning · [JOID] The resource … cannot be read: …. It is drawn as a magenta and black checkerboard in dev mode, and nothing is drawn in production.
Emitted by ResourceData.fail.
With the dev jar, JOID could not read or decode a resource: the file or the URL does not exist, cannot be read, or holds a format that JOID does not decode.
The cause follows the colon; the Resource.onError listeners receive it.
Check the path or the URL for a read error, convert the file to a supported format otherwise: Supported formats, An image shows a checkerboard or nothing.
The video … cannot be reopened (…), check that the file can still be …
Section titled “The video … cannot be reopened (…), check that the file can still be …”Warning · [JOID] The video … cannot be reopened (…), check that the file can still be read
Emitted by VideoResourceDecoder.play.
A video that plays again after its end, or after a seek, could not open its file again. The video stops.
Check that the file or the URL can still be read: Play animated images and videos.
The video … cannot seek to …us (…), check that the file can still be …
Section titled “The video … cannot seek to …us (…), check that the file can still be …”Warning · [JOID] The video … cannot seek to …us (…), check that the file can still be read
Emitted by VideoResourceDecoder.decode, VideoResourceDecoder.play, VideoResourceDecoder.seek.
A seek of a video, or its return to the start, failed in the decoder.
Check that the file can still be read; a damaged file can refuse some positions: Play animated images and videos.
The video … stops decoding (…), check that the file can still be read
Section titled “The video … stops decoding (…), check that the file can still be read”Warning · [JOID] The video … stops decoding (…), check that the file can still be read
Emitted by VideoResourceDecoder.play.
The decoder of a playing video threw; the video stops where it was.
Check that the file can still be read, and that it is not damaged: Play animated images and videos.
The video … plays without sound (…), register an audio bridge and check …
Section titled “The video … plays without sound (…), register an audio bridge and check …”Warning · [JOID] The video … plays without sound (…), register an audio bridge and check the audio device
Emitted by VideoAudioPlayer.play.
The audio bridge could not create the source of a video with a sound track: the audio device refused, or the bridge failed.
The picture plays without sound.
Without any audio bridge, as with audio(false), a video plays without sound and without this warning.
Check the audio device of the machine, or the createSource of your audio bridge: Control the sound of a video.
The start of … cannot be read
Section titled “The start of … cannot be read”UncheckedIOException · The start of … cannot be read
Emitted by Asset.peek.
JOID reads the first bytes of an asset to detect its format, and reading them failed.
Check that the file or the URL can be read; the cause follows the message: Load from the jar, the disk or the web.
No asset locator knows the input … of type …, register an IAssetLocator …
Section titled “No asset locator knows the input … of type …, register an IAssetLocator …”IllegalArgumentException · No asset locator knows the input … of type …, register an IAssetLocator that supports it with AssetLocator.register(...)
Emitted by AssetLocator.locate.
Resource.of(...) or Asset.of(...) received an input that no asset locator supports, such as an object of your own.
Pass a path, a URL, a File or a stream, or register a locator: Read resources from your own source.
The asset … is not found in the classpath nor as a file, check the path …
Section titled “The asset … is not found in the classpath nor as a file, check the path …”IllegalArgumentException · The asset … is not found in the classpath nor as a file, check the path or give a URL with its scheme (https:, file:, jar:)
Emitted by StringAssetLocator.locate.
A path without scheme names neither a resource of the classpath nor a file.
Check the path, relative to the root of the classpath or to the working folder, or give a URL: Load from the jar, the disk or the web.
The retention … of the cache area … is not positive, pass a duration …
Section titled “The retention … of the cache area … is not positive, pass a duration …”IllegalArgumentException · The retention … of the cache area … is not positive, pass a duration above 0
Emitted by FileCacheArea.retention.
retention(...) of a FileCacheArea received a duration of zero or less.
Pass a duration above zero: Keep files of your own in the cache.
The cache area … is already declared with a retention of …, it cannot be …
Section titled “The cache area … is already declared with a retention of …, it cannot be …”IllegalStateException · The cache area … is already declared with a retention of …, it cannot be declared again with …: give one of them another name
Emitted by FileCacheArea.retention.
Two parts of the application declared the same cache area with different retentions.
Give each area its own name: Keep files of your own in the cache.
The content written into the cache area … cannot be hashed at …, the …
Section titled “The content written into the cache area … cannot be hashed at …, the …”IOException · The content written into the cache area … cannot be hashed at …, the writer of store must write a file
Emitted by FileCacheArea.store.
store(...) of a FileCacheArea names its entry by the hash of the file that the writer wrote, and that file cannot be read.
Write a file at the path that the writer receives: Keep files of your own in the cache.
The cache area … cannot be created in …, check that the cache folder can …
Section titled “The cache area … cannot be created in …, check that the cache folder can …”IOException · The cache area … cannot be created in …, check that the cache folder can be written
Emitted by FileCacheArea.compute, FileCacheArea.store, FileCacheArea.retention.
JOID could not create the folder of a cache area.
Check that the cache folder exists and can be written, or move it: Move the folders.
The writer of … wrote nothing at …, it must create the file or the …
Section titled “The writer of … wrote nothing at …, it must create the file or the …”IOException · The writer of … wrote nothing at …, it must create the file or the folder it is given
Emitted by FileCacheArea.compute, FileCacheArea.store, FileCacheArea.retention.
The writer given to compute(...) or store(...) of a FileCacheArea returned without creating its entry.
Create the file or the folder at the path that the writer receives: Keep files of your own in the cache.
The cache … name … is not a plain file name
Section titled “The cache … name … is not a plain file name”IllegalArgumentException · The cache … name … is not a plain file name: start with a letter or a digit, then use only letters, digits, '.', '-' and '_'
Emitted by FileCacheArea.of, FileCacheArea.entry, FileCacheArea.compute, FileCacheArea.remove.
The name of a cache area or of an entry would not be a safe file name.
Use a name of letters, digits, ., - and _, that starts with a letter or a digit: Keep files of your own in the cache.
The file cache cannot name the content of …
Section titled “The file cache cannot name the content of …”IllegalStateException · The file cache cannot name the content of …: this JVM has no SHA-1 digest, run JOID on a standard JVM
Emitted by FileCacheArea.store.
The JVM offers no SHA-1, which the file cache uses to name its entries.
Run JOID on a standard JVM: Keep files of your own in the cache.
The borrowed texture … is not a texture of the host, borrow a texture …
Section titled “The borrowed texture … is not a texture of the host, borrow a texture …”IllegalArgumentException · The borrowed texture … is not a texture of the host, borrow a texture that the host created and has not deleted
Emitted by ResourceData.generate.
Resource.of(...) received a texture of the host that names no texture when JOID loads the resource: the number is wrong, the texture was deleted, or it belongs to another graphics context.
The resource fails.
Borrow a texture that exists in the graphics context of JOID: Show a texture of your application.
An animation needs at least one frame, got none
Section titled “An animation needs at least one frame, got none”IllegalArgumentException · An animation needs at least one frame, got none: check that the file holds its frames
Emitted by ResourceAnimation.of.
ResourceAnimation.of received no frame, from a reader of your own or from an empty file.
Give the animation at least one frame: Build an animation from your own frames.
The PNG has no IHDR chunk before its image data, the file is damaged
Section titled “The PNG has no IHDR chunk before its image data, the file is damaged”IllegalArgumentException · The PNG has no IHDR chunk before its image data, the file is damaged: export it again
Emitted by ApngResourceAnimationReader.read.
The animated PNG is damaged.
Export the image again: Images and media.
The PNG has no acTL chunk or no frame control, it is not an animated PNG
Section titled “The PNG has no acTL chunk or no frame control, it is not an animated PNG”IllegalArgumentException · The PNG has no acTL chunk or no frame control, it is not an animated PNG: draw it as a still image or export it as an APNG
Emitted by ApngResourceAnimationReader.read.
A PNG was decoded as an animation but holds a single image.
Show it with a ResourceNode, or export it as an APNG: Play animated images and videos.
The file does not start with a RIFF WEBP header, it is not a WebP image
Section titled “The file does not start with a RIFF WEBP header, it is not a WebP image”IllegalArgumentException · The file does not start with a RIFF WEBP header, it is not a WebP image: check the file and its extension
Emitted by WebpResourceAnimationReader.read.
A file decoded as an animated WebP is not a WebP.
Check the file and its extension: Images and media.
The WebP chunk … runs past the end of the file, the file is damaged
Section titled “The WebP chunk … runs past the end of the file, the file is damaged”IllegalArgumentException · The WebP chunk … runs past the end of the file, the file is damaged: export it again
Emitted by WebpResourceAnimationReader.read.
The WebP file is truncated or damaged.
Export the image again: Images and media.
The WebP has no ANMF frame or no VP8X size, it is not an animated WebP
Section titled “The WebP has no ANMF frame or no VP8X size, it is not an animated WebP”IllegalArgumentException · The WebP has no ANMF frame or no VP8X size, it is not an animated WebP: draw it as a still image or export it with its animation
Emitted by WebpResourceAnimationReader.read.
A WebP was decoded as an animation but holds a single image.
Show it with a ResourceNode, or export it with its animation: Images and media.
The animation … cannot be read
Section titled “The animation … cannot be read”UncheckedIOException · The animation … cannot be read
Emitted by AnimatedResourceDecoder.decode.
Reading the file of an animated image failed; the cause follows the message.
The resource fails and prints The resource … cannot be read with the dev jar.
Check that the file or the URL can be read: Know when an image is loaded.
The image … cannot be read
Section titled “The image … cannot be read”UncheckedIOException · The image … cannot be read
Emitted by RasterResourceDecoder.decode.
Reading the file of an image failed; the cause follows the message.
The resource fails and prints The resource … cannot be read with the dev jar.
Check that the file or the URL can be read: Know when an image is loaded.
… is not an image that ImageIO can decode, convert it to PNG, JPEG or …
Section titled “… is not an image that ImageIO can decode, convert it to PNG, JPEG or …”IllegalArgumentException · … is not an image that ImageIO can decode, convert it to PNG, JPEG or WebP
Emitted by RasterResourceDecoder.decode.
The file was read, but no decoder of images recognizes its content.
Convert it to PNG, JPEG or WebP: Supported formats.
The SVG … cannot be read
Section titled “The SVG … cannot be read”UncheckedIOException · The SVG … cannot be read
Emitted by VectorResourceDecoder.decode.
Reading the file of an SVG image failed; the cause follows the message.
Check that the file or the URL can be read: Know when an image is loaded.
… is not an SVG document that can be parsed
Section titled “… is not an SVG document that can be parsed”IllegalArgumentException · … is not an SVG document that can be parsed
Emitted by VectorResourceDecoder.decode.
The file was read, but it is not a valid SVG document.
Check the file in an SVG editor and export it again: Images and media.
The video … cannot be read
Section titled “The video … cannot be read”UncheckedIOException · The video … cannot be read
Emitted by VideoResourceDecoder.decode.
Opening the file of a video failed; the cause follows the message.
Check that the file or the URL can be read: Play animated images and videos.
The video … cannot be decoded
Section titled “The video … cannot be decoded”IllegalStateException · The video … cannot be decoded
Emitted by VideoResourceDecoder.decode.
FFmpeg opened the file but could not decode it; the cause follows the message.
Check that the file is a video that FFmpeg plays: Supported formats.
The FFmpeg natives are not installed yet, wait for …
Section titled “The FFmpeg natives are not installed yet, wait for …”IllegalStateException · The FFmpeg natives are not installed yet, wait for VideoNatives.install()
Emitted by VideoResourceDecoder.decode, VideoResourceDecoder.play.
A video was opened while the FFmpeg natives were still being installed.
Wait for the future of VideoNatives.install before you play videos: Play videos on every machine.
The FFmpeg natives cannot be installed (…), check the video libraries on …
Section titled “The FFmpeg natives cannot be installed (…), check the video libraries on …”VideoNativesException · The FFmpeg natives cannot be installed (…), check the video libraries on the classpath
Emitted by VideoResourceDecoder.decode.
The install of the FFmpeg natives failed when a video was opened; the cause is in the parentheses, often another FFmpeg entry of this page.
Check the video libraries on the classpath: Play videos on every machine.
… is a HEIF or AVIF image, which JOID cannot decode, convert it to PNG, …
Section titled “… is a HEIF or AVIF image, which JOID cannot decode, convert it to PNG, …”IllegalArgumentException · … is a HEIF or AVIF image, which JOID cannot decode, convert it to PNG, JPEG or WebP
Emitted by HeifResourceFormat.decoder.
The file is a HEIF or AVIF image, which JOID recognizes but does not decode.
Convert it to PNG, JPEG or WebP: Supported formats.
FFmpeg has no natives for the platform …, play the videos on …
Section titled “FFmpeg has no natives for the platform …, play the videos on …”VideoNativesException · FFmpeg has no natives for the platform …, play the videos on windows-x86_64, linux-x86_64, macosx-x86_64 or macosx-arm64
Emitted by VideoNatives.install.
The machine runs a system or a processor for which JOID has no FFmpeg natives to download.
Play videos on one of the platforms that the message lists, or put the FFmpeg natives of your platform on the classpath: Play videos without network access.
The FFmpeg natives of … cannot be written into …, check that the cache …
Section titled “The FFmpeg natives of … cannot be written into …, check that the cache …”VideoNativesException · The FFmpeg natives of … cannot be written into …, check that the cache folder can be written
Emitted by VideoNatives.install.
The downloaded FFmpeg natives could not be saved into the cache folder.
Check that the cache folder can be written.
The FFmpeg natives of … cannot be downloaded from …, check the …
Section titled “The FFmpeg natives of … cannot be downloaded from …, check the …”VideoNativesException · The FFmpeg natives of … cannot be downloaded from …, check the connection and the repository, or put org.bytedeco:ffmpeg:…:… on the classpath
Emitted by VideoNatives.install.
The first video of the machine downloads the FFmpeg natives, and the download failed.
Check the connection, or ship the natives with the application: Play videos on every machine.
The FFmpeg natives downloaded from … do not match their SHA-256, check …
Section titled “The FFmpeg natives downloaded from … do not match their SHA-256, check …”VideoNativesException · The FFmpeg natives downloaded from … do not match their SHA-256, check the repository
Emitted by VideoNatives.install.
The downloaded natives differ from the files that JOID expects; JOID refuses them.
Check the repository and the network, then try again: Play videos without network access.
Drawing
Section titled “Drawing”The file of the OBJ model … cannot be closed (…), the model is loaded …
Section titled “The file of the OBJ model … cannot be closed (…), the model is loaded …”Warning · [JOID] The file of the OBJ model … cannot be closed (…), the model is loaded anyway: check the stream or the file it was read from
Emitted by ObjModel.
Closing the reader of an OBJ file threw after the model was read; the model is used anyway.
Check the stream or the file it was read from: Load a model.
The color … cannot be decoded, write it as #RRGGBB, #RRGGBBAA, rgb(r, g, …
Section titled “The color … cannot be decoded, write it as #RRGGBB, #RRGGBBAA, rgb(r, g, …”NumberFormatException · The color … cannot be decoded, write it as #RRGGBB, #RRGGBBAA, rgb(r, g, b), rgba(r, g, b, a) or gradient(from, to)
Emitted by Color.decode.
Color.decode received a text in none of its formats.
Write the color in one of the formats of the message: Create a color.
The dash pattern … is not positive, pass a length above 0
Section titled “The dash pattern … is not positive, pass a length above 0”IllegalArgumentException · The dash pattern … is not positive, pass a length above 0
Emitted by DrawShape.drawDashedLine.
drawDashedLine(...) received a dash length of 0 or less.
Pass a dash length above 0, in design pixels: Draw lines and curves.
The OBJ model … cannot be read (…), check that the file exists and can …
Section titled “The OBJ model … cannot be read (…), check that the file exists and can …”UncheckedIOException · The OBJ model … cannot be read (…), check that the file exists and can be read
Emitted by ObjModel.
Reading the OBJ file failed; the cause is in the parentheses.
Check that the file exists and can be read: Load a model.
The OBJ model … cannot be read
Section titled “The OBJ model … cannot be read”IllegalArgumentException · The OBJ model … cannot be read: its line … "…" …, fix this line in the model file
Emitted by ObjModel.
A line of the OBJ file is malformed; the message gives its number, its text and the problem.
Fix that line, or export the model again: Know what JOID reads in a .obj file.
An ObjFace has 3 vertices, got …
Section titled “An ObjFace has 3 vertices, got …”IllegalArgumentException · An ObjFace has 3 vertices, got …: split the polygon into triangles (ObjModel does it for OBJ files)
Emitted by ObjFace.of.
ObjFace.of received a face that is not a triangle.
Split the polygon into triangles; ObjModel does it for the faces of an OBJ file: Load a model.
An ObjFace has 3 texture coordinates or none, got …
Section titled “An ObjFace has 3 texture coordinates or none, got …”IllegalArgumentException · An ObjFace has 3 texture coordinates or none, got …
Emitted by ObjFace.of.
ObjFace.of received a number of texture coordinates other than 0 or 3.
Give one texture coordinate per vertex, or none: Load a model.
An ObjFace has 3 vertex normals or none, got …
Section titled “An ObjFace has 3 vertex normals or none, got …”IllegalArgumentException · An ObjFace has 3 vertex normals or none, got …
Emitted by ObjFace.of.
ObjFace.of received a number of normals other than 0 or 3.
Give one normal per vertex, or none: Load a model.
The framebuffer of …x… is empty
Section titled “The framebuffer of …x… is empty”IllegalStateException · The framebuffer of …x… is empty, call fill(...) before draw(...)
Emitted by FrameBuffer.draw.
draw(...) of a FrameBuffer was called before anything was drawn into it.
Call fill(...) first: Draw once, reuse every frame.
The Tessellator is already tessellating a … shape
Section titled “The Tessellator is already tessellating a … shape”IllegalStateException · The Tessellator is already tessellating a … shape, call draw() to end it before start(…)
Emitted by Tessellator.start.
start(...) of the Tessellator was called while another shape was not drawn yet.
End the previous shape with draw(): Build your own geometry.
The Tessellator has no shape to draw
Section titled “The Tessellator has no shape to draw”IllegalStateException · The Tessellator has no shape to draw, call start(DrawMode) before draw()
Emitted by Tessellator.draw.
draw() of the Tessellator was called without start(...).
Call start(DrawMode), add the vertices, then draw(): Build your own geometry.
The Tessellator is not tessellating
Section titled “The Tessellator is not tessellating”IllegalStateException · The Tessellator is not tessellating, call start(DrawMode) before giving it vertices
Emitted by Tessellator.setColor, Tessellator.setTextureUV, Tessellator.setNormal, Tessellator.addVertex.
A vertex, a color, texture coordinates or a normal was given to the Tessellator outside start(...) and draw().
Call start(DrawMode) first: Build your own geometry.
Shaders
Section titled “Shaders”The shader … cannot be loaded (…), what it draws is skipped
Section titled “The shader … cannot be loaded (…), what it draws is skipped”Warning · [JOID] The shader … cannot be loaded (…), what it draws is skipped: check the paths of its vertex and fragment sources
Emitted by ShaderProgram.load.
load(...) of a ShaderProgram could not read one of its two sources; the shader never draws.
Check the paths of the vertex and fragment sources: Write a shader.
The shader … cannot be created (…), what it draws is skipped
Section titled “The shader … cannot be created (…), what it draws is skipped”Warning · [JOID] The shader … cannot be created (…), what it draws is skipped: fix its vertex and fragment sources from this error
Emitted by ShaderProgram.getShader.
The first use of a ShaderProgram asked the render bridge to create it, and JOID refused the sources: a rule of JOID GLSL is broken, or a feature is missing on this context.
The shader never draws.
Fix the sources from the error, often another entry of this page: Write JOID GLSL.
The shader … is unavailable, what it draws is skipped
Section titled “The shader … is unavailable, what it draws is skipped”Warning · [JOID] The shader … is unavailable, what it draws is skipped
Emitted by ShaderProgram.canDraw.
With the dev jar, canDraw() was called on a ShaderProgram that failed to load, to be created or to compile; JOID prints it once per shader.
Fix the error printed before it; for a shader of your own, test isAvailable() to draw a fallback: Write a shader.
Input and keys
Section titled “Input and keys”No key resolver knows the binding … of type …, pass a Key or register an …
Section titled “No key resolver knows the binding … of type …, pass a Key or register an …”IllegalArgumentException · No key resolver knows the binding … of type …, pass a Key or register an IKeyResolver with KeyResolver.register(...)
Emitted by KeyResolver.resolve.
KeyResolver.resolve received a key binding that no registered IKeyResolver supports.
Pass a Key, or register the resolver of your key bindings: Use the key bindings of your application.
Utilities
Section titled “Utilities”The file … cannot be read (…), it is left untouched and …
Section titled “The file … cannot be read (…), it is left untouched and …”Warning · [JOID] The file … cannot be read (…), it is left untouched and …
Emitted by JsonFiles.read.
The file of a store or of the remembered fields of a UI exists but cannot be read, for example for lack of permission. The end of the message says what starts from its defaults.
Check the permissions of the data folder.
The file … cannot be saved (…), check that the data folder can be …
Section titled “The file … cannot be saved (…), check that the data folder can be …”Warning · [JOID] The file … cannot be saved (…), check that the data folder can be written
Emitted by JsonFiles.write.
JOID could not write the file of a store or of the remembered fields of a UI; the previous file stays as it was.
Check that the data folder can be written, or move it: Move the folders.
The file … cannot be read (…), it is kept as … and …
Section titled “The file … cannot be read (…), it is kept as … and …”Warning · [JOID] The file … cannot be read (…), it is kept as … and …
Emitted by JsonFiles.keep.
The file of a store or of the remembered fields of a UI holds no valid JSON, or its store refused it.
JOID renames it with the .corrupt suffix, so that nothing overwrites it, and starts from the defaults.
Open the .corrupt file to recover what you need, then delete it: Keep a store on disk.
The file … cannot be read (…) nor renamed to … (…), it is left untouched …
Section titled “The file … cannot be read (…) nor renamed to … (…), it is left untouched …”Warning · [JOID] The file … cannot be read (…) nor renamed to … (…), it is left untouched and …
Emitted by JsonFiles.keep.
The file of a store or of the remembered fields of a UI holds no valid JSON, and JOID could not rename it with the .corrupt suffix either.
JOID starts from the defaults; the next save overwrites the file.
Check the permissions of the data folder.
… is marked non-null but is null
Section titled “… is marked non-null but is null”NullPointerException · … is marked non-null but is null
Emitted by “.
A parameter of JOID that cannot be null received null; the message names the parameter.
Pass a value; the reference page of the method says which parameters accept null.
…, use …(…) to get a modified copy
Section titled “…, use …(…) to get a modified copy”IllegalStateException · …, use …(...) to get a modified copy
Emitted by LockableValue.mutate.
A LockableValue subclass of your own gave the start of the message from LockableValue.describeLocked, and a setter was called on a locked value of it.
Call the method that the message names to get a modified copy, and read the start that your code gave.
Color.… is a constant
Section titled “Color.… is a constant”IllegalStateException · Color.… is a constant, use …(...) to get a modified copy
Emitted by LockableValue.mutate.
A setter was called on a constant of Color, such as Color.WHITE, which never changes.
Call the method that the message names to get a modified copy: Keep a palette safe.
This … is locked
Section titled “This … is locked”IllegalStateException · This … is locked, use …(...) to get a modified copy
Emitted by LockableValue.mutate.
A setter was called on a value locked with LockableValue.lock, such as a color of a palette, which never changes.
Call the method that the message names to get a modified copy: Keep a palette safe.
Backends
Section titled “Backends”… refused to close
Section titled “… refused to close”Warning · [JOID] … refused to close: a beforeClose listener cancelled the event, so … is not opened: do not cancel it to let the UI close
Emitted by StackUIBridge.open.
With the dev jar, opening a screen asks the open screen to close, and a listener of its beforeClose event cancelled it, so the new screen does not open.
Let the screen close, or open the new UI as a popup or an overlay: Replace the current screen.
… cannot draw a frame and skips the rest of it (…), fix the draw code …
Section titled “… cannot draw a frame and skips the rest of it (…), fix the draw code …”Warning · [JOID] … cannot draw a frame and skips the rest of it (…), fix the draw code from this error
Emitted by UIBridge.draw.
A UI of the bridge threw while it drew; the bridge skips the rest of its frame, puts the matrix and state stacks back, and prints it once per kind of exception.
Fix the draw code from the error and its stack trace.
… draws no tooltip, override drawHover(UI, Object, double, double) to …
Section titled “… draws no tooltip, override drawHover(UI, Object, double, double) to …”Warning · [JOID] … draws no tooltip, override drawHover(UI, Object, double, double) to draw them
Emitted by UIBridge.drawHover.
With the dev jar, the pointer rests on a node that has a tooltip, and the UI bridge extends UIBridge without overriding drawHover(...); JOID prints it once per bridge.
Override drawHover(...) in the bridge, or extend WindowUIBridge: UI bridge.
… draws no tooltip
Section titled “… draws no tooltip”Warning · [JOID] … draws no tooltip, set its hoverInfo(TextInfo) to draw them
Emitted by WindowUIBridge.drawHover.
With the dev jar, the pointer rests on a node that has a tooltip, and the window UI bridge has no text style for tooltips; JOID prints it once per bridge.
Give the bridge a style with WindowUIBridge.hoverInfo: Style the window UI bridge.
… is already registered
Section titled “… is already registered”IllegalStateException · … is already registered, call register() only once
Emitted by Backend.register.
Backend.register was called a second time on the same backend.
Register each backend once, at startup: Start a backend.
….draw() needs an open frame and the render bridge has none
Section titled “….draw() needs an open frame and the render bridge has none”IllegalStateException · ….draw() needs an open frame and the render bridge has none: call render.beginFrame() before and render.endFrame() after, or use BridgeHandler.UI.frame()
Emitted by UIBridge.draw.
draw() of a UI bridge was called outside a frame of the render bridge.
Call Backend.frame or UIBridgeRegistry.frame, which open the frame, or call beginFrame() and endFrame() of the render bridge around the draw: UI bridge.
Bridges
Section titled “Bridges”A … shader uses …, which needs …
Section titled “A … shader uses …, which needs …”Warning · [JOID] A … shader uses …, which needs …: the OpenGL 2.1 contexts (GLSL 1.20) that JOID supports refuse it, keep to GLSL 1.20 to draw on every backend
Emitted by Shader.
With the dev jar, a shader uses a GLSL feature that OpenGL 2.1 contexts refuse; it draws on this machine, but not on those contexts.
Rewrite the shader without the feature that the message names: Write JOID GLSL.
The FrameThreadBridge was created on the thread … but its frames run on …
Section titled “The FrameThreadBridge was created on the thread … but its frames run on …”Warning · [JOID] The FrameThreadBridge was created on the thread … but its frames run on the thread …: create it on the render thread, or JOID takes the render thread for another thread
Emitted by FrameThreadBridge.runTasks.
The thread that runs the frames is not the thread that created the FrameThreadBridge, which is the thread that registered the backend; JOID then takes another thread for the render thread.
Register the backend on the thread that runs the frames, or return a thread bridge of your own: Thread bridge.
A task sent to the render thread from another thread failed (…), the …
Section titled “A task sent to the render thread from another thread failed (…), the …”Warning · [JOID] A task sent to the render thread from another thread failed (…), the next tasks still run: catch the exception inside the task to handle it
Emitted by FrameThreadBridge.runTasks.
A task that another thread sent to the render thread, through ThreadUtils.runOnRenderThread or JOID.open, threw at the start of a frame; JOID prints it once per kind of failure, and the next tasks still run.
Catch the exception inside the task, or fix the code it names: Threads.
No … bridge registered
Section titled “No … bridge registered”IllegalStateException · No … bridge registered, call BridgeHandler.….register before using JOID
Emitted by BridgeRegistry.get.
JOID needed a bridge, the render or the window bridge for example, and its registry is empty: the backend is not registered yet.
Register the backend before you use JOID, or run the code from JOID.onReady: Start a backend.
A backend author registers the bridge in its hook: The bridges.
The JOID frame has already begun
Section titled “The JOID frame has already begun”IllegalStateException · The JOID frame has already begun, call endFrame() first
Emitted by RenderBridge.beginFrame.
beginFrame() of the render bridge was called twice without endFrame(), for example by a loop that calls Backend.frame inside a frame of its own.
Pair each beginFrame() with one endFrame(); Backend.frame() opens and closes its own frame: Render bridge.
… draws only inside a frame and no frame has begun
Section titled “… draws only inside a frame and no frame has begun”IllegalStateException · … draws only inside a frame and no frame has begun: draw between beginFrame() and endFrame(), from the draw of a UI or of the backend loop
Emitted by RenderBridge.requireFrame.
Something drew or cleared outside a frame of the render bridge, such as a draw from an input listener, from a worker thread, or before the loop.
Draw from the draw of a node or of a UI, which runs inside the frame: The frame lifecycle.
The shader declares no sampler …, declare it in the shader source or fix …
Section titled “The shader declares no sampler …, declare it in the shader source or fix …”IllegalArgumentException · The shader declares no sampler …, declare it in the shader source or fix its name (samplers: …)
Emitted by Shader.sampler.
sampler(name, ...) of a shader received a name that its sources do not declare; the message lists the declared samplers.
Fix the name, or declare the sampler in the source: Set uniforms and textures.
A borrowed texture belongs to its host: JOID reads it but never allocates it
Section titled “A borrowed texture belongs to its host: JOID reads it but never allocates it”UnsupportedOperationException · A borrowed texture belongs to its host: JOID reads it but never allocates it, create a texture with IRenderBridge.createTexture() to draw your own pixels
Emitted by BorrowedTexture.allocate.
allocate(...) was called on a texture borrowed from the host.
Create a texture of JOID to hold pixels of your own: Build your own geometry.
A borrowed texture belongs to its host: JOID reads it but never writes it
Section titled “A borrowed texture belongs to its host: JOID reads it but never writes it”UnsupportedOperationException · A borrowed texture belongs to its host: JOID reads it but never writes it, create a texture with IRenderBridge.createTexture() to draw your own pixels
Emitted by BorrowedTexture.upload.
upload(...) was called on a texture borrowed from the host.
Write the pixels with the API of the host, or create a texture of JOID: Lend a texture of the host.
The texture is deleted, create a new one with …
Section titled “The texture is deleted, create a new one with …”IllegalStateException · The texture is deleted, create a new one with IRenderBridge.createTexture()
Emitted by Texture.allocate, Texture.upload.
allocate(...) or upload(...) was called on a deleted texture.
Create a new texture: Textures and samplers.
The texture is not allocated
Section titled “The texture is not allocated”IllegalStateException · The texture is not allocated, call allocate(width, height) before upload(pixels)
Emitted by Texture.upload.
upload(...) was called on a texture without storage.
Call allocate(width, height) first: Textures and samplers.
The texture of …x… needs … pixels and got …, pass one pixel per texel
Section titled “The texture of …x… needs … pixels and got …, pass one pixel per texel”IllegalArgumentException · The texture of …x… needs … pixels and got …, pass one pixel per texel
Emitted by Texture.upload.
upload(...) received fewer pixels than the texture has texels.
Pass one ARGB pixel per texel, row after row: Textures and samplers.
No resource resolver knows the input … of type …, register an …
Section titled “No resource resolver knows the input … of type …, register an …”IllegalArgumentException · No resource resolver knows the input … of type …, register an IResourceResolver that supports it with ResourceResolver.register(...)
Emitted by ResourceResolver.resolve.
Resource.of(...) received an object that is neither an asset input nor a type that a registered IResourceResolver supports.
Pass a supported input, or register a resolver: Resource resolvers.
Pipeline
Section titled “Pipeline”The core shader … is missing from the classpath, check that the JOID jar …
Section titled “The core shader … is missing from the classpath, check that the JOID jar …”IllegalStateException · The core shader … is missing from the classpath, check that the JOID jar is complete
Emitted by CoreShader.open.
A built-in shader of JOID was not found in the jar, which is damaged or was stripped by a build tool.
Ship the JOID jar whole: Keep the files of the JOID jars.
… has no uniform blocks, translate its uniforms with UniformLayout.LOOSE
Section titled “… has no uniform blocks, translate its uniforms with UniformLayout.LOOSE”IllegalArgumentException · … has no uniform blocks, translate its uniforms with UniformLayout.LOOSE
Emitted by GlslShaderTranslator.
A GlslShaderTranslator was created with UniformLayout.BLOCK for a dialect without uniform blocks.
Use UniformLayout.LOOSE for that dialect: Pick a uniform layout.
The shader uses …, which needs …, but the dialect is …
Section titled “The shader uses …, which needs …, but the dialect is …”UnsupportedOperationException · The shader uses …, which needs …, but the dialect is …: rewrite the shader without it or translate it for a newer dialect
Emitted by GlslShaderTranslator.translateVertex, GlslShaderTranslator.translateFragment, GlslShaderTranslator.translate.
The source of a shader uses a GLSL feature that the dialect of the graphics context lacks.
Rewrite the shader without the feature: Write JOID GLSL. A backend author can translate for a newer dialect: Pick a dialect.
Vertex shaders cannot declare the input …
Section titled “Vertex shaders cannot declare the input …”IllegalArgumentException · Vertex shaders cannot declare the input …, use the built-in attributes aPosition, aTexCoord, aColor and aNormal
Emitted by ShaderSource.from.
A vertex source declares an in variable; JOID gives every vertex shader its built-in attributes.
Use aPosition, aTexCoord, aColor and aNormal: Write JOID GLSL.
Fragment shaders cannot declare the output …, write the color to …
Section titled “Fragment shaders cannot declare the output …, write the color to …”IllegalArgumentException · Fragment shaders cannot declare the output …, write the color to fragColor
Emitted by ShaderSource.from.
A fragment source declares an out variable; JOID declares the output of every fragment shader.
Write the color to fragColor: Write JOID GLSL.
The shader declares no builtin uniform …
Section titled “The shader declares no builtin uniform …”IllegalArgumentException · The shader declares no builtin uniform …: JOID declares its joid_ uniforms only where they are used, translate the shader with stencil(...) for the stencil ones (uniforms: …)
Emitted by UniformBlock.requireMember.
uniform(...) received the name of a joid_ uniform that the translated shader does not declare: JOID adds a builtin uniform only to the shaders that use it.
Translate the shader with stencil(...) to get the stencil uniforms, or leave the builtin uniforms to JOID: Shader translation.
The shader declares no uniform …, declare it in the shader source or fix …
Section titled “The shader declares no uniform …, declare it in the shader source or fix …”IllegalArgumentException · The shader declares no uniform …, declare it in the shader source or fix its name (uniforms: …)
Emitted by UniformBlock.requireMember.
uniform(name, ...) received a name that the sources do not declare; the message lists the declared uniforms.
Fix the name, or declare the uniform in the source: Set uniforms and textures.
The length … of the uniform array … is neither a number nor a #define of …
Section titled “The length … of the uniform array … is neither a number nor a #define of …”IllegalArgumentException · The length … of the uniform array … is neither a number nor a #define of the shader, write a number or #define … in the shader source
Emitted by UniformBlock.create.
The length of a uniform array is a name that no #define of the source gives a number.
Write the length as a number, or #define it in the source: Write JOID GLSL.
The uniform … cannot take …
Section titled “The uniform … cannot take …”IllegalArgumentException · The uniform … cannot take …
Emitted by UniformMember.value.
uniform(name, ...) received values of another type or count than the uniform declares, such as three floats for a vec4.
Pass as many values as the type holds, of its kind: Set uniforms and textures.
The uniform type … is not supported
Section titled “The uniform type … is not supported”IllegalArgumentException · The uniform type … is not supported, use int, uint, bool, float, vec2 to vec4, ivec2 to ivec4, uvec2 to uvec4, bvec2 to bvec4 or mat2 to mat4
Emitted by UniformType.of.
A uniform of the source has a type that JOID cannot lay out, such as a structure.
Use one of the types of the message: Write JOID GLSL.
Testing
Section titled “Testing”The … jar check failed
Section titled “The … jar check failed”Warning · [JOID] The … jar check failed
Emitted by JarCheck.run.
JarCheck could not start JOID from a packaged jar, or the UI it opened failed; the stack trace follows, and the check exits with 1.
Read the cause that follows, often another entry of this page: Run the tests of your backend.
Usage: GlslExport <output directory>
Section titled “Usage: GlslExport <output directory>”Warning · [JOID] Usage: GlslExport <output directory>
Emitted by GlslExport.main.
GlslExport was run with another number of arguments than one.
Pass the output folder as the only argument: Check your translation.
… rendered on … and … on …
Section titled “… rendered on … and … on …”Warning · [JOID] … rendered on … and … on …: differences may come from the GPUs, run them on one GPU
Emitted by SnapshotComparison.main.
SnapshotComparison compares renders whose renderer.txt name different GPUs; it compares them anyway.
Render the backends on the same GPU: Compare with LWJGL 3.
Report: …
Section titled “Report: …”Warning · [JOID] Report: …
Emitted by SnapshotComparison.main.
SnapshotComparison found a difference; the message gives the link of the report.
Open the report to see each shot next to its reference: References and the report.
A test of BitmapFontContractSuite fails
Section titled “A test of BitmapFontContractSuite fails”AssertionError · one of the messages of the table below
Emitted by BitmapFontContractSuite.
A test of BitmapFontContractSuite found a bitmap glyph drawn differently from the contract:
| Message | Cause |
|---|---|
…: partial pixels | At a whole scale, some pixels are partly covered: the glyph is filtered or not placed on whole pixels. |
…: ink | The glyph holds more or less ink than its texels. |
…: columns | At a fractional scale, the glyph does not show its three columns of texels. |
…: column | At a fractional scale, one column of texels gets another amount of ink than the others. |
… at … differs from the ASCII atlas by … | The same glyph from another atlas gives other pixels. |
Sample bitmap fonts with the nearest filter and place the quads exactly where JOID asks: The suites.
A test of RenderBridgeContractSuite fails
Section titled “A test of RenderBridgeContractSuite fails”AssertionError · one of the messages of the table below
Emitted by RenderBridgeContractSuite.
A test of RenderBridgeContractSuite found a render bridge that breaks the render contract; most tests fail on a pixel, with Pixel x,y, the expected and the actual color.
The other messages:
| Message | Cause |
|---|---|
The … shader does not compile | A built-in shader of JOID does not compile with your translation. |
A shader that fails to compile must report isActive() == false | A shader with an error reports that it can draw. |
A face turned to the light must be brighter than the ambient light | The lighting built-in does not reach the shader. |
A texture must not be mipmapped by default | A new texture reports mipmaps. |
A texture asked to mipmap must report it | mipmap(true) is lost. |
A mipmapped checkerboard must minify to its average (deviation …) | The mipmap levels are missing or wrong. |
Mipmaps must reduce the minification error (plain …, mipmapped …) | The sampler ignores the mipmap levels. |
Mipmaps asked after the upload must keep the content and minify to its average (deviation …) | mipmap(true) after upload(...) loses the pixels or builds no level. |
Pixel …,32 | A transparent border is not sampled beyond the edges of a CLAMP_TO_BORDER texture. |
Fix the rule that the name of the failed test states: Render bridge.
A test of StateGuardContractSuite fails
Section titled “A test of StateGuardContractSuite fails”AssertionError · one of the messages of the table below
Emitted by StateGuardContractSuite.
A test of StateGuardContractSuite found a frame of JOID that changes with the state that the host left, or that does not give the host its state back:
| Message | Cause |
|---|---|
With the … of the host, the pixel …,… is … instead of … | A trap of the host changed what JOID draws: the guard does not reset that state. |
JOID must give the host its state back before a nested host draw | suspend does not restore the state of the host before its drawing. |
IRenderBridge.suspend must run the host draw it is given | suspend does not run its drawing. |
JOID must leave the state of the host as the nested host draw left it | The end of the frame does not give the state back as the host left it. |
Reading the pixels must leave the state of the host | The capture of the snapshot backend changes the state. |
JOID must give the host its state back after a raster nested in a host draw | A raster inside the drawing of another raster leaves the state of that drawing changed. |
JOID must give the host its state back after a raster with another raster nested in it | A raster that holds another raster leaves the state of the host changed after it. |
Journal every state that your bridge changes, and restore it at the end of the frame and around the drawings of the host: Check the guard.
The … jar threw while it drew …, see the stack traces above
Section titled “The … jar threw while it drew …, see the stack traces above”IllegalStateException · The … jar threw while it drew …, see the stack traces above
Emitted by JarCheck.run.
JarCheck drew 60 frames from a packaged jar, and a stack trace reached the error stream.
Read the stack traces above the message: a class or a file is often missing from the jar: Run the tests of your backend.
The … jar runs with the dev mode … and the demo mode …
Section titled “The … jar runs with the dev mode … and the demo mode …”IllegalStateException · The … jar runs with the dev mode … and the demo mode …: check the excludes of gradle/variants.gradle
Emitted by JarCheck.run.
The packaged jar does not hold the classes that its variant needs, or holds the classes of another variant.
Check what each variant includes and excludes: Three jars per module.
… is no longer open after 60 frames of the … jar, check what closes it …
Section titled “… is no longer open after 60 frames of the … jar, check what closes it …”IllegalStateException · … is no longer open after 60 frames of the … jar, check what closes it in that jar
Emitted by JarCheck.run.
The UI that JarCheck opened closed during its 60 frames.
Check what closes the UI with that jar: Run the tests of your backend.
The demo UI … cannot be created: the class does not exist
Section titled “The demo UI … cannot be created: the class does not exist”IllegalStateException · The demo UI … cannot be created: the class does not exist, check the name and the excludes of gradle/variants.gradle
Emitted by JarCheck.run.
JarCheck did not find the UI that it opens in the packaged jar: the name is wrong, or the variant excludes the class.
Check the name, and what the variant includes and excludes: Three jars per module.
The demo UI … cannot be created: its constructor failed (…)
Section titled “The demo UI … cannot be created: its constructor failed (…)”IllegalStateException · The demo UI … cannot be created: its constructor failed (…), fix the constructor from this error
Emitted by JarCheck.run.
JarCheck created the UI that it opens in the packaged jar, and its constructor threw.
Fix the constructor from the error in the parentheses: Run the tests of your backend.
The demo UI … cannot be created: give it a public constructor without argument
Section titled “The demo UI … cannot be created: give it a public constructor without argument”IllegalStateException · The demo UI … cannot be created: give it a public constructor without argument
Emitted by JarCheck.run.
The UI that JarCheck opens in the packaged jar has no public constructor without argument.
Give it one: Run the tests of your backend.
The folder … cannot be created, check that its parent folder can be …
Section titled “The folder … cannot be created, check that its parent folder can be …”IOException · The folder … cannot be created, check that its parent folder can be written
Emitted by GlslExport.export.
GlslExport could not create a folder of its output.
Check that the output folder can be written: Check your translation.
The snapshot backend … cannot be created: the class does not exist
Section titled “The snapshot backend … cannot be created: the class does not exist”IllegalArgumentException · The snapshot backend … cannot be created: the class does not exist, check the name and the classpath
Emitted by SnapshotBaseline.main.
The class that SnapshotBaseline received as its first argument is not on its classpath.
Give the full name of a snapshot backend, such as Lwjgl3SnapshotBackend: Compare with LWJGL 3.
The snapshot backend … cannot be created: its constructor threw …
Section titled “The snapshot backend … cannot be created: its constructor threw …”IllegalArgumentException · The snapshot backend … cannot be created: its constructor threw …
Emitted by SnapshotBaseline.main.
SnapshotBaseline created the snapshot backend, and its constructor threw.
Fix the constructor from the error: Compare with LWJGL 3.
The snapshot backend … cannot be created: give it a constructor without arguments
Section titled “The snapshot backend … cannot be created: give it a constructor without arguments”IllegalArgumentException · The snapshot backend … cannot be created: give it a constructor without arguments, of any visibility
Emitted by SnapshotBaseline.main.
The snapshot backend that SnapshotBaseline received has no constructor without argument.
Give it one, of any visibility: Give the testkit a surface.
No snapshot rendered in …, render the snapshots first
Section titled “No snapshot rendered in …, render the snapshots first”Failure (exit code 1) · [JOID] No snapshot rendered in …, render the snapshots first
Emitted by SnapshotComparison.main.
SnapshotComparison found no PNG in the folder of the reference renders.
Render the reference first, with renderBaseline: Compare with LWJGL 3.
The image … cannot be decoded, check that it is a valid PNG
Section titled “The image … cannot be decoded, check that it is a valid PNG”IOException · The image … cannot be decoded, check that it is a valid PNG
Emitted by SnapshotImage.read.
SnapshotImage.read read a file that is not a PNG, or a damaged one.
Record the reference again: References and the report.
The snapshot command … is unknown, fix the scenario
Section titled “The snapshot command … is unknown, fix the scenario”IllegalArgumentException · The snapshot command … is unknown, fix the scenario
Emitted by SnapshotRunner.execute.
A command given to SnapshotRunner.execute is none of its commands.
Fix the command from the table of execute: Drive the UI with commands.
The window shows the … cursor instead of …
Section titled “The window shows the … cursor instead of …”IllegalStateException · The window shows the … cursor instead of …
Emitted by SnapshotRunner.execute.
The cursor command of a scenario expected another cursor than the one that the UI shows.
Check the cursor that the hovered node sets: Change the cursor over a node.
The snapshot window …x… does not fit the …x… snapshot surface, give a …
Section titled “The snapshot window …x… does not fit the …x… snapshot surface, give a …”IllegalArgumentException · The snapshot window …x… does not fit the …x… snapshot surface, give a smaller window
Emitted by SnapshotRunner.start, SnapshotRunner.execute.
A resize command asked for a window larger than the 1920×1080 surface of the runner.
Resize to 1920×1080 at most: Drive the UI with commands.
The snapshot UI … cannot be created: the class does not exist
Section titled “The snapshot UI … cannot be created: the class does not exist”IllegalArgumentException · The snapshot UI … cannot be created: the class does not exist, check the name and the classpath
Emitted by SnapshotRunner.execute.
The class given to the ui or open command is not on the classpath of the test.
Give the full name of the class, and check that the test sees it: Render a screen.
The snapshot UI … cannot be created: its constructor threw …
Section titled “The snapshot UI … cannot be created: its constructor threw …”IllegalArgumentException · The snapshot UI … cannot be created: its constructor threw …
Emitted by SnapshotRunner.execute.
The ui or open command created the UI, and its constructor threw.
Fix the constructor from the error: Drive the UI with commands.
The snapshot UI … cannot be created: give it a constructor without arguments
Section titled “The snapshot UI … cannot be created: give it a constructor without arguments”IllegalArgumentException · The snapshot UI … cannot be created: give it a constructor without arguments, of any visibility
Emitted by SnapshotRunner.execute.
The class given to the ui or open command has no constructor without argument.
Give the full class name, and a constructor without argument: Render a screen.
A resource never settled in 30s
Section titled “A resource never settled in 30s”IllegalStateException · A resource never settled in 30s: it kept decoding or rendering, check that the resources of the scenario stop decoding
Emitted by SnapshotRunner.execute.
During a wait, a resource kept decoding for 30 seconds, such as a video that plays in a loop.
Pause or stop what keeps decoding before the shot: Keep every run identical.
A resource never finished loading in 30s, check that its file exists and …
Section titled “A resource never finished loading in 30s, check that its file exists and …”IllegalStateException · A resource never finished loading in 30s, check that its file exists and that its decoder settles
Emitted by SnapshotRunner.execute.
Before a shot, a resource did not finish loading within 30 seconds.
Check that its file exists and can be read, or that a decoder of your own reports when it is done: Keep every run identical.
… never became stable while the clock was paused, … pixels kept changing
Section titled “… never became stable while the clock was paused, … pixels kept changing”IllegalStateException · … never became stable while the clock was paused, … pixels kept changing: mask the area that moves or stop what moves it
Emitted by SnapshotRunner.execute.
Before a shot, the picture kept changing while the clock of the test stood still, usually because the UI reads the time of the system.
Read the time from BridgeHandler.CLOCK, or mask the area: Keep every run identical.
… never settled
Section titled “… never settled”IllegalStateException · … never settled: a resource kept decoding or rendering, check that the resources of the scenario stop decoding
Emitted by SnapshotRunner.execute.
The picture of a shot became stable, but a resource was still decoding.
Pause or stop what keeps decoding before the shot: Keep every run identical.
No reference for the GPU … in …, the shots of … were not compared
Section titled “No reference for the GPU … in …, the shots of … were not compared”AssertionError · [JOID] No reference for the GPU … in …, the shots of … were not compared: record them on this GPU with updateSnapshots…
Emitted by SnapshotSuite.matchesDevSnapshots, SnapshotSuite.matchesPopupSnapshots, SnapshotSuite.matchesStaticSnapshots, SnapshotSuite.matchesWindowSnapshots, SnapshotSuite.matchesResourceSnapshots, SnapshotSuite.matchesTransitionSnapshots, SnapshotSuite.matchesInteractionSnapshots.
The SnapshotSuite runs on a GPU that has no references yet; the message lists the GPUs that have some.
Record the references of this GPU with updateSnapshots: References and the report.
The snapshot cache cannot name the download of …
Section titled “The snapshot cache cannot name the download of …”IllegalStateException · The snapshot cache cannot name the download of …: this JVM has no SHA-1 digest, run the snapshots on a standard JVM
Emitted by SnapshotUrlAssetLocator.locate.
The JVM offers no SHA-1, which the testkit uses to name its downloads.
Run the tests on a standard JVM.
base-opengl
Section titled “base-opengl”OpenGL cannot link a shader program, fix its sources from the log of the …
Section titled “OpenGL cannot link a shader program, fix its sources from the log of the …”Warning · [JOID] OpenGL cannot link a shader program, fix its sources from the log of the driver: …
The driver compiled both stages of a shader but could not link them; the log of the driver follows, and the shader never draws.
Fix the sources from the log: Write JOID GLSL.
OpenGL cannot compile a … shader, fix its source at the line the driver …
Section titled “OpenGL cannot compile a … shader, fix its source at the line the driver …”Warning · [JOID] OpenGL cannot compile a … shader, fix its source at the line the driver reports: …
The driver refused a stage of a shader; its log, with the line of the error, follows, and the shader never draws. The line is in the translated source, which adds a header to yours.
Fix the source from the log: Write JOID GLSL; Check your translation shows the translated source.
This OpenGL context cannot blit framebuffers (…)
Section titled “This OpenGL context cannot blit framebuffers (…)”Warning · [JOID] This OpenGL context cannot blit framebuffers (…): mipmaps are drawn, which may not give exactly the pixels of the other backends
Emitted by DrawGlMipmapBuilder.build.
With the dev jar, the context lacks framebuffer blits, so the mipmaps are drawn instead; JOID prints it once.
No fix is needed; a newer context gives the pixels of the other backends: Capabilities and paths.
No OpenGL context is current
Section titled “No OpenGL context is current”IllegalStateException · No OpenGL context is current: create the context of JOID and make it current before registering the backend
Emitted by GlCapabilities.read.
The OpenGL render bridge was created on a thread where no OpenGL context is current.
Create the window, make its context current and load the OpenGL functions before register(): Start a backend.
JOID needs OpenGL 2.1 with GLSL 1.20, this context offers …
Section titled “JOID needs OpenGL 2.1 with GLSL 1.20, this context offers …”IllegalStateException · JOID needs OpenGL 2.1 with GLSL 1.20, this context offers …: update the graphics driver or create a newer OpenGL context
Emitted by GlCapabilities.require.
The OpenGL context is older than OpenGL 2.1 with GLSL 1.20.
Update the graphics driver, or ask for a newer context: Check the prerequisites.
JOID needs framebuffer objects (OpenGL 3.0, GL_ARB_framebuffer_object or …
Section titled “JOID needs framebuffer objects (OpenGL 3.0, GL_ARB_framebuffer_object or …”IllegalStateException · JOID needs framebuffer objects (OpenGL 3.0, GL_ARB_framebuffer_object or GL_EXT_framebuffer_object), this context offers …: update the graphics driver or create a newer OpenGL context
Emitted by GlCapabilities.require.
The OpenGL context has no framebuffer objects.
Update the graphics driver, or ask for a newer context: Check the prerequisites.
Only a compatibility context has fixed-function matrices to import, this …
Section titled “Only a compatibility context has fixed-function matrices to import, this …”IllegalStateException · Only a compatibility context has fixed-function matrices to import, this context is … with …: create the context with the compatibility profile to import them
Emitted by FixedMatrixImport.create.
FixedMatrixImport.create was called on a core context, which has no fixed-function matrices.
Create the context with the compatibility profile: Import the matrices of a fixed-function host.
The shader that draws the mipmaps does not compile on …, update the …
Section titled “The shader that draws the mipmaps does not compile on …, update the …”IllegalStateException · The shader that draws the mipmaps does not compile on …, update the graphics driver
Emitted by DrawGlMipmapBuilder.build.
On a context without framebuffer blits, the shader that draws the mipmaps did not compile.
Update the graphics driver: Mipmaps.
No OpenGL render bridge is registered, register an OpenGL backend before …
Section titled “No OpenGL render bridge is registered, register an OpenGL backend before …”IllegalStateException · No OpenGL render bridge is registered, register an OpenGL backend before GlBorrowedTexture.of(...)
Emitted by GlBorrowedTexture.
GlBorrowedTexture.of was called before an OpenGL backend was registered.
Register the backend first: Show a texture of your application.
A texture of …x… exceeds the maximum size … of …, downscale the image
Section titled “A texture of …x… exceeds the maximum size … of …, downscale the image”IllegalArgumentException · A texture of …x… exceeds the maximum size … of …, downscale the image
An image is wider or taller than the largest texture of the graphics context or device.
Downscale the image, or split it: Supported formats.
base-lwjgl2
Section titled “base-lwjgl2”The clipboard cannot be read, an empty text replaces it
Section titled “The clipboard cannot be read, an empty text replaces it”Warning · [JOID] The clipboard cannot be read, an empty text replaces it: …
Emitted by Lwjgl2WindowBridge.getClipboard.
With the dev jar, the LWJGL 2 backend could not read the clipboard through AWT; a paste inserts nothing.
Check that AWT can reach the clipboard, which a headless JVM cannot: LWJGL 2 backend.
The clipboard cannot be written, the text stays out of it
Section titled “The clipboard cannot be written, the text stays out of it”Warning · [JOID] The clipboard cannot be written, the text stays out of it: …
Emitted by Lwjgl2WindowBridge.setClipboard.
With the dev jar, the LWJGL 2 backend could not write the clipboard through AWT; a copy does nothing.
Check that AWT can reach the clipboard, which a headless JVM cannot: LWJGL 2 backend.
JNA is missing or cannot be loaded, the mouse cursor stays the default …
Section titled “JNA is missing or cannot be loaded, the mouse cursor stays the default …”Warning · [JOID] JNA is missing or cannot be loaded, the mouse cursor stays the default one: …
Emitted by NativeCursor.forPlatform.
With the dev jar, the LWJGL 2 backend sets the cursors of nodes through JNA, which is not on the classpath; the cursor stays the default one.
Put JNA on the classpath to show the cursors: Cursors.
The native cursors of LWJGL 2 cannot be set, the mouse cursor stays the …
Section titled “The native cursors of LWJGL 2 cannot be set, the mouse cursor stays the …”Warning · [JOID] The native cursors of LWJGL 2 cannot be set, the mouse cursor stays the default one: …
Emitted by NativeCursor.apply.
With the dev jar, the native cursor of LWJGL 2 could not be reached; the backend stops trying and keeps the default cursor.
Check the version of LWJGL 2 on the classpath: Cursors.
The … cursor cannot be loaded (…), the default one replaces it
Section titled “The … cursor cannot be loaded (…), the default one replaces it”Warning · [JOID] The … cursor cannot be loaded (…), the default one replaces it: check that the system has this cursor
Emitted by NativeCursor.apply.
With the dev jar, the system has no cursor for one of the cursors of JOID; that one shows the default cursor.
Check the cursor theme of the system: Change the cursor over a node.
libXcursor cannot be loaded, the X11 cursors come from the cursor font
Section titled “libXcursor cannot be loaded, the X11 cursors come from the cursor font”Warning · [JOID] libXcursor cannot be loaded, the X11 cursors come from the cursor font: …
Emitted by X11NativeCursor.
With the dev jar, on Linux, libXcursor is missing, so the cursors come from the older cursor font of X11.
Install libXcursor to get the cursors of the theme: Change the cursor over a node.
LWJGL 2 cannot create the OpenAL context (…), check that an audio output …
Section titled “LWJGL 2 cannot create the OpenAL context (…), check that an audio output …”IllegalStateException · LWJGL 2 cannot create the OpenAL context (…), check that an audio output device is connected and enabled
Emitted by Lwjgl2AlBinding.createContext.
The first video with sound asked LWJGL 2 for an OpenAL context, and it failed.
Connect or enable an audio output, or register the backend with audio(false): LWJGL 2 backend.
The state trap … sets no state of its own
Section titled “The state trap … sets no state of its own”IllegalArgumentException · The state trap … sets no state of its own
A subclass of GlStateGuardBackend was asked to set EVERYTHING itself, which inject spreads over the other traps.
Call inject instead of injectTrap: Tools for hosts and tests.
base-lwjgl3-glfw
Section titled “base-lwjgl3-glfw”GLFW cannot be initialized, check that the system has a display (DISPLAY …
Section titled “GLFW cannot be initialized, check that the system has a display (DISPLAY …”IllegalStateException · GLFW cannot be initialized, check that the system has a display (DISPLAY or WAYLAND_DISPLAY on Linux)
Emitted by GlfwSnapshotWindow.create.
A snapshot backend could not start GLFW, usually on a machine without a display.
Run the tests with a display, or a virtual one such as Xvfb on a server: Give the testkit a surface.
GLFW cannot create the …x… snapshot window, check that the graphics …
Section titled “GLFW cannot create the …x… snapshot window, check that the graphics …”IllegalStateException · GLFW cannot create the …x… snapshot window, check that the graphics driver supports the graphics API the window asks for (its OpenGL version or Vulkan)
Emitted by GlfwSnapshotWindow.create.
The graphics driver refused the hidden window of a snapshot backend.
Update the graphics driver, or run on a machine that supports the API of the backend: Hidden windows.
base-lwjgl3-openal
Section titled “base-lwjgl3-openal”OpenAL cannot open the default audio device, check that an audio output …
Section titled “OpenAL cannot open the default audio device, check that an audio output …”IllegalStateException · OpenAL cannot open the default audio device, check that an audio output device is connected and enabled
Emitted by Lwjgl3AlBinding.createContext.
The first video with sound asked OpenAL for the default device, and the machine has none, or it is disabled.
Connect or enable an audio output, or register the backend with audio(false): What happens at register().
OpenAL cannot create a context on the default audio device, check that …
Section titled “OpenAL cannot create a context on the default audio device, check that …”IllegalStateException · OpenAL cannot create a context on the default audio device, check that no other application holds it exclusively and that its driver is up to date
Emitted by Lwjgl3AlBinding.createContext.
The default audio device opened but refused an OpenAL context.
Close the application that holds the device exclusively, or update its driver: base-openal.
LWJGL 2 backend
Section titled “LWJGL 2 backend”The LWJGL 2 native … is missing from the backend
Section titled “The LWJGL 2 native … is missing from the backend”IllegalStateException · The LWJGL 2 native … is missing from the backend
Emitted by Lwjgl2Natives.install.
Lwjgl2Natives.install did not find a native library in the backend jar, which is damaged or was stripped.
Ship the backend jar whole, or provide the natives with org.lwjgl.librarypath: LWJGL 2 backend.
Unable to extract the LWJGL 2 natives into …, check that the cache …
Section titled “Unable to extract the LWJGL 2 natives into …, check that the cache …”IllegalStateException · Unable to extract the LWJGL 2 natives into …, check that the cache folder can be written
Emitted by Lwjgl2Natives.install.
Lwjgl2Natives.install could not write the natives into the cache folder.
Check that the cache folder can be written.
LWJGL 2 cannot create the …x… OpenGL context of the snapshots (…), check …
Section titled “LWJGL 2 cannot create the …x… OpenGL context of the snapshots (…), check …”IllegalStateException · LWJGL 2 cannot create the …x… OpenGL context of the snapshots (…), check that the graphics driver supports OpenGL
Emitted by Lwjgl2SnapshotBackend.create.
The LWJGL 2 snapshot backend could not create its offscreen OpenGL context.
Update the graphics driver, or run the tests with a display: LWJGL 2 tests.
LWJGL 3 backend
Section titled “LWJGL 3 backend”The snapshot profile … needs OpenGL ….… …, this context offers … …
Section titled “The snapshot profile … needs OpenGL ….… …, this context offers … …”IllegalStateException · The snapshot profile … needs OpenGL ….… …, this context offers … …: force its version with MESA_GL_VERSION_OVERRIDE and MESA_GLSL_VERSION_OVERRIDE
Emitted by SnapshotProfile.check.
The LWJGL 3 snapshot backend runs with a SnapshotProfile whose version or profile the driver did not give.
On Mesa, force the version with the two variables of the message: OpenGL profiles.
Vulkan backend
Section titled “Vulkan backend”The Vulkan … shader cannot be compiled, fix its source at the line …
Section titled “The Vulkan … shader cannot be compiled, fix its source at the line …”Warning · [JOID] The Vulkan … shader cannot be compiled, fix its source at the line shaderc reports: …
Emitted by VulkanShaderCompiler.compile.
shaderc refused a translated stage of a shader; its error follows, and the shader never draws.
Fix the source from the error: Write JOID GLSL.
VulkanBackend has no render bridge to destroy
Section titled “VulkanBackend has no render bridge to destroy”IllegalStateException · VulkanBackend has no render bridge to destroy: call register() first and destroy() only once
Emitted by VulkanBackend.destroy.
VulkanBackend.destroy was called before register(), or twice.
Destroy the backend once, after the loop: Run inside a Vulkan host.
A Vulkan window host needs at least one frame in flight, got …
Section titled “A Vulkan window host needs at least one frame in flight, got …”IllegalArgumentException · A Vulkan window host needs at least one frame in flight, got …: pass 1 to wait for each frame, 2 or more to record the next frame while the GPU draws the previous ones
Emitted by WindowVulkanHost.create.
WindowVulkanHost.create received a number of frames in flight below 1.
Pass 1 or more: Run inside a Vulkan host.
The Vulkan window frame has already begun
Section titled “The Vulkan window frame has already begun”IllegalStateException · The Vulkan window frame has already begun, call endFrame() first
Emitted by WindowVulkanHost.beginFrame.
beginFrame() of the WindowVulkanHost was called twice without endFrame().
Pair each beginFrame() with one endFrame(): Start the other backends.
The Vulkan window frame has not begun
Section titled “The Vulkan window frame has not begun”IllegalStateException · The Vulkan window frame has not begun, call beginFrame() first
Emitted by WindowVulkanHost.endFrame.
endFrame() of the WindowVulkanHost was called without beginFrame().
Begin the frame of the host before the JOID frame: Run inside a Vulkan host.
Vulkan is not supported on this system, update the graphics driver or …
Section titled “Vulkan is not supported on this system, update the graphics driver or …”IllegalStateException · Vulkan is not supported on this system, update the graphics driver or use an OpenGL backend
Emitted by WindowVulkanHost.
GLFW found no Vulkan loader or driver on the machine.
Update the graphics driver, or use an OpenGL backend: Pick the backend that fits your application.
No Vulkan 1.3 device able to present to the window was found, update the …
Section titled “No Vulkan 1.3 device able to present to the window was found, update the …”IllegalStateException · No Vulkan 1.3 device able to present to the window was found, update the graphics driver or use an OpenGL backend
Emitted by WindowVulkanHost.
No device of the machine supports Vulkan 1.3 and the surface of the window.
Update the graphics driver, or use an OpenGL backend: Check the prerequisites.
… failed with the Vulkan error …, update the graphics driver or run with …
Section titled “… failed with the Vulkan error …, update the graphics driver or run with …”IllegalStateException · … failed with the Vulkan error …, update the graphics driver or run with the Vulkan validation layers to find the call at fault
Emitted by VulkanContext.check.
A Vulkan call returned an error code; the message names the call.
Update the graphics driver; with a host of your own, run with the validation layers to find the misuse: Run inside a Vulkan host.
No Vulkan memory type of the device matches the properties … for the …
Section titled “No Vulkan memory type of the device matches the properties … for the …”IllegalStateException · No Vulkan memory type of the device matches the properties … for the types …, update the graphics driver or use another device
Emitted by VulkanContext.createImage, VulkanContext.createBuffer.
The device offers no memory type that JOID needs for an image or a buffer.
Update the graphics driver, or use another device: Requirements.
The Vulkan device supports none of the depth formats …
Section titled “The Vulkan device supports none of the depth formats …”IllegalStateException · The Vulkan device supports none of the depth formats …, use a device that supports one of them
The device supports none of the depth formats that the renderer can use.
Use another device, or update its driver: Requirements.
The Vulkan host … has … frames in flight, getFramesInFlight() must …
Section titled “The Vulkan host … has … frames in flight, getFramesInFlight() must …”IllegalArgumentException · The Vulkan host … has … frames in flight, getFramesInFlight() must return 1 or more
Emitted by VulkanRenderBridge.
A Vulkan host of your own returns 0 or less from getFramesInFlight().
Return 1 or more: Run inside a Vulkan host.
The Vulkan host … gives a device without Vulkan 1.3, create the instance …
Section titled “The Vulkan host … gives a device without Vulkan 1.3, create the instance …”IllegalStateException · The Vulkan host … gives a device without Vulkan 1.3, create the instance and the device with VK_API_VERSION_1_3
Emitted by VulkanRenderBridge.
A Vulkan host of your own gives a device created for an older version of Vulkan.
Create the instance and the device with VK_API_VERSION_1_3: Run inside a Vulkan host.
No Vulkan render bridge is registered, register the Vulkan backend …
Section titled “No Vulkan render bridge is registered, register the Vulkan backend …”IllegalStateException · No Vulkan render bridge is registered, register the Vulkan backend before VulkanBorrowedTexture.of(...)
Emitted by VulkanBorrowedTexture.
VulkanBorrowedTexture.of was called before the Vulkan backend was registered.
Register the backend first: Show a texture of your application.
No Vulkan 1.3 device able to draw was found, update the graphics driver …
Section titled “No Vulkan 1.3 device able to draw was found, update the graphics driver …”IllegalStateException · No Vulkan 1.3 device able to draw was found, update the graphics driver or use an OpenGL backend
Emitted by SnapshotVulkanHost.
The Vulkan snapshot host found no device with Vulkan 1.3 and a graphics queue.
Update the graphics driver, or run the Vulkan tests on another machine: Requirements.
Usage: msdf —font <file.ttf|file.otf> [—output <directory>] [—charset …
Section titled “Usage: msdf —font <file.ttf|file.otf> [—output <directory>] [—charset …”IllegalArgumentException · Usage: msdf --font <file.ttf|file.otf> [--output <directory>] [--charset <file|ranges>] [--range <pixels>] [--width <pixels>] [--height <pixels>] [--size <pixels>]
Emitted by MsdfGenerator.main.
The MSDF generator was run without --font, or with an unknown option.
Pass the options of the message: Generate MSDF atlases before you ship.
The charset … is neither a file nor codepoints like [32, 126], 8364
Section titled “The charset … is neither a file nor codepoints like [32, 126], 8364”IllegalArgumentException · The charset … is neither a file nor codepoints like [32, 126], 8364: check the path or separate the values with commas
Emitted by MsdfGenerator.codepoints.
--charset received neither the path of a file nor a list of ranges and code points.
Check the path, or write the ranges in brackets and separate the values with commas: Generate MSDF atlases before you ship.
The glyphs do not fit in …x… at …px, raise —width and —height or lower …
Section titled “The glyphs do not fit in …x… at …px, raise —width and —height or lower …”IllegalStateException · The glyphs do not fit in …x… at …px, raise --width and --height or lower --size
Emitted by MsdfGenerator.generate.
The glyphs of the charset do not fit in the atlas at the size given with --size.
Raise --width and --height, or lower --size: Generate MSDF atlases before you ship.
The option … has no value, give it one after a space
Section titled “The option … has no value, give it one after a space”IllegalArgumentException · The option … has no value, give it one after a space: … <value>
Emitted by MsdfGenerator.main.
The last option on the command line of the MSDF generator has no value.
Give the option its value after a space: Generate MSDF atlases before you ship.
The glyphs do not fit in …x… even at …px, raise —width and —height or …
Section titled “The glyphs do not fit in …x… even at …px, raise —width and —height or …”IllegalStateException · The glyphs do not fit in …x… even at …px, raise --width and --height or shrink the charset
Emitted by Packer.fit.
The MSDF generator found no glyph size at which the charset fits in the atlas.
Raise --width and --height, or pass a smaller --charset: Generate MSDF atlases before you ship.
