Giter Club home page Giter Club logo

Comments (2)

shannah avatar shannah commented on May 18, 2024

What OS and processor are you on?

from webviewjar.

ghaspias avatar ghaspias commented on May 18, 2024

Hello

I am running Windows 10 on an Intel Core i5.
After a few more tests, I realize that I can only load remote content (regular http protocol url) or data: protocol. Trying to load local files opens and closes immediately a window, giving the message below.
hs_err_pid18260.log

[migue.V] ➤ jre1.8.0_251/bin/java -jar WebView.jar ../OneDrive/Documents/Projectos/three-js-dat-gui-3/dist/index.html

A fatal error has been detected by the Java Runtime Environment:
EXCEPTION_UNCAUGHT_CXX_EXCEPTION (0xe06d7363) at pc=0x00007ffd4eef9709, pid=18260, tid=0x000000000000278c
JRE version: Java(TM) SE Runtime Environment (8.0_251-b08) (build 1.8.0_251-b08)
Java VM: Java HotSpot(TM) 64-Bit Server VM (25.251-b08 mixed mode windows-amd64 compressed oops)
Problematic frame:
C [KERNELBASE.dll+0x39709]
Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
An error report file with more information is saved as:
C:\Users\migue\Downloads\hs_err_pid18260.log
If you would like to submit a bug report, please visit:
http://bugreport.java.com/bugreport/crash.jsp
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.

Also, whenever it manages to load a page, it does not respond to any input or execute any script provided on command-line. It does run script on the page, but there are no dialogs (alert(), prompt() do not show up). It does seem to run only the most basic script given on a data: url, like "data:text/html,hello<script>var x=2;document.documentElement.innerHTML='

Hello

')</script>"
writes the message in a H1, but
"data:text/html,hello<script>var x=2;document.documentElement.innerHTML='

x='+x+'

')</script>"
does nothing.
Using the onLoad argument also does not seem to work.
[migue.V] ➤ ./jre1.8.0_251/bin/java -jar WebView.jar -onLoad "var x=1" "data:text/html,hello<script>var x=2;window.document.writeln('

'+x+'

')</script>"
["<<<EVENT:load about%3Ablank >>>"]
["<<<EVENT:load about%3Ablank >>>"]

Note that whenever it seems to manage executing some javascript, the 'EVENT:load' messages are not displayed.

from webviewjar.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.