Hey there, I downloaded the screenfade stencil example by @JCash (here: GitHub - JCash/stencilfade: A demo of screen fades using stencil buffer ), and something is wrong. Every time I try to open a collection (or the quad.model), I get some editor errors (a lot of java.lang.nullpointerexceptions).
Log:
editor2.2024-03-13.zip (8.0 KB)
probably some value fix idk
OS: Windows 10
Defold: 1.7.0
I’ve received the same errors with this project and made a bug report on github.
opened 11:03AM - 13 Mar 24 UTC
### Expected behavior
Opening a collect without error's and displaying the coll… ection view.
### Actual behavior
In the editor when opening main,collection in this specific [project](https://github.com/JCash/stencilfade/archive/refs/heads/master.zip) I am receiving a java error:
```
java.lang.NullPointerException: Cannot invoke "java.lang.Number.doubleValue()" because "x" is null
```
The scene view does not render.
### Steps to reproduce
in the linked repro and on win10 load the project then open the main.collect located(/main/main.collection)
#### Repro: https://github.com/JCash/stencilfade/archive/refs/heads/master.zip
<hr/>
<table>
<tr><td>Build time</td><td>2024-03-12T10:26:40.890206</td></tr>
<tr><td>Defold channel</td><td>editor-alpha</td></tr>
<tr><td>Defold editor sha</td><td>9ad2d7834a6adfaedcd902a8e6f9997ed5cbb507</td></tr>
<tr><td>Defold engine sha</td><td>bf4dc66ab5fbbafd4294d32c2797c08b630c0be5</td></tr>
<tr><td>Defold version</td><td>1.7.0</td></tr>
<tr><td>Error</td><td><a href='https://sentry.io/organizations/defold/issues/?query=id%3A"87dc4188b0f24fd8aa9deac600ff97c7"'>87dc4188b0f24fd8aa9deac600ff97c7</a></td></tr>
<tr><td>GPU</td><td>Intel(R) HD Graphics 630</td></tr>
<tr><td>GPU Driver</td><td>4.6.0 - Build 31.0.101.2111</td></tr>
<tr><td>Java version</td><td>17.0.5+8</td></tr>
<tr><td>OS arch</td><td>amd64</td></tr>
<tr><td>OS name</td><td>Windows 10</td></tr>
<tr><td>OS version</td><td>10.0</td></tr>
<table>

I cannot reproduce on macOS. I’ll test on Windows tomorrow.
3 Likes
So I tried to open the project on an old macbook pro (Big Sur) and got the same problem. So after a few minutes walking on unknown territory of render, materials and so on. Changing a few values here and there not knowing what I was doing haha I set a default value for the offset (it was empty on screenfade.material, fragment constants) of 0 0 0 0 and it worked ! Now I can open the main.collection and the quad.model
note: the project still doesn’t work properly on Windows. Something with the GUI. I will take a look and edit here. Also first I tried to set the offset as 1 1 1 1 and the error was gone but the fade wasn’t working. Set to 0 0 0 0 solved that.
It runs fine on the macbook
1 Like