windowless_rendering_enabled feature not working as expected.
darshandarasa opened this issue · comments
Bug
I am trying to use windowless_rendering_enabled option (set as true) and I get below error:
Can't load library: /var/folders/37/glgvjqlj7pzdsg0xgpvrgxr40000gn/T/jogamp_0000/file_cache/jln17359361404706094037/jln6707074845110870818/natives/macosx-universal/libgluegen_rt.dylib
Maybe, I am missing something. Could you please let me know what's missing?
To Reproduce
Steps to reproduce the behavior:
- Go to the jcefsampleapp project in Eclipse.
- Set the JDK to JDK 17
- Add the macos arm64 native library along with jcefmaven
a. jcef-37f25dc+cef-116.0.19+gc6a20bc+chromium-116.0.5845.141 (jcef-natives-macosx-arm64)
b. 116.0.19.1 (jcefmaven) - Add the below JVM options
--add-exports=java.desktop/sun.awt=ALL-UNNAMED --add-exports=java.desktop/sun.lwawt=ALL-UNNAMED --add-exports=java.desktop/sun.lwawt.macosx=ALL-UNNAMED --add-exports java.base/java.lang=ALL-UNNAMED --add-exports java.desktop/sun.awt=ALL-UNNAMED --add-exports java.desktop/sun.java2d=ALL-UNNAMED - Goto MainFrame.java and set " boolean useOsr = true;"
- Run the Java Application. (Right click on MainFrame.java -> Run as Java Application)
Expected behavior
The expected behavior is to run google.com in non-GUI mode as useOsr = true which will set builder.getCefSettings().windowless_rendering_enabled = true;
Screenshots
Attaching - error_jcef.txt
error_jcef.txt
libgluegen_rt location has the dylib
###-mackbook@######-MacBook-Pro ~ % ls -larth /var/folders/37/glgvjqlj7pzdsg0xgpvrgxr40000gn/T/jogamp_0000/file_cache/jln17359361404706094037/jln6707074845110870818/natives/macosx-universal/
total 32
drwxr-xr-x 3 djain-mackbook staff 96B Dec 21 09:52 ..
drwxr-xr-x 3 djain-mackbook staff 96B Dec 21 09:52 .
-rw-r--r-- 1 djain-mackbook staff 14K Dec 21 09:52 libgluegen_rt.dylib
Environment (please complete the following information):
- OS: macosx
- Architecture: arm64
- Version: jcef-37f25dc+cef-116.0.19+gc6a20bc+chromium-116.0.5845.141
I sadly am not able to tell you why this is erroring, but it appears to be an error in jogamp and not jcef/jcefmaven. Maybe you can ask them for assistance with this issue? I am only repackaging their library as they do not offer a maven version themselves.