Hello everyone.
Approximately one month ago I wrote about that after snapping my JavaFX project it has the blank window of Google authorization, but issue was not solve. Interest, but in IDE all is ok. Problems begin when snap file was snapped. Unfortunately, I cannot show you source code of the application, but I can show you my .yaml file.
name: deletebg
base: core18
version: '2.10.e'
summary: Delete Background is an easy service for quickly editing your images.
icon: snap/gui/icon.png
license: 'MIT'
description: ...
grade: stable
confinement: strict
parts:
deletebg:
plugin: maven
source: .
source-type: local
stage-packages:
- openjdk-11-jre
- openjfx
- libopenjfx-jni
apps:
deletebg:
extensions:
- gnome-3-28
command: bin/java -jar $SNAP/jar/deletebg-2.10.e.jar
plugs:
- desktop-legacy
- desktop
- home
- network
- browser-support
I tried to add to my code the “System.setProperty("sun.net.http.allowRestrictedHeaders", "true");
” but it wasn’t help.
One more, I tried to find the login text field and input the login. But after that I caught an error:
java.nio.BufferUnderflowException at java.base/java.nio.Buffer.nextGetIndex(Buffer.java:651) at java.base/java.nio.DirectByteBuffer.getInt(DirectByteBuffer.java:750) at com.sun.webkit.graphics.GraphicsDecoder.decode(GraphicsDecoder.java:114) at com.sun.webkit.graphics.WCRenderQueue.decode(WCRenderQueue.java:92) at com.sun.webkit.WebPage.paint2GC(WebPage.java:729) at com.sun.webkit.WebPage.paint(WebPage.java:696) at com.sun.javafx.sg.prism.web.NGWebView.renderContent(NGWebView.java:95) at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:2072) at com.sun.javafx.sg.prism.NGNode.render(NGNode.java:1964) at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:479) at com.sun.javafx.tk.quantum.ViewPainter.paintImpl(ViewPainter.java:328) at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:91) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) at com.sun.javafx.tk.RenderJob.run(RenderJob.java:58) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:125) at java.base/java.lang.Thread.run(Thread.java:829)
You can test it installing application It names “deletebg
”