Code Monkey home page Code Monkey logo

Comments (3)

peregin avatar peregin commented on July 4, 2024

hi @nighto ,
based on the link you are running it with jre8, the flags are there because of the assumption was that is running with jre 11.
could you try please running it without the flags?
java -jar gps-overlay-on-video.jar

from gps-overlay-on-video.

ronan-deshays avatar ronan-deshays commented on July 4, 2024

On Windows 11, with the same JRE 32-bit (jre-8u401-windows-i586.exe) as @nighto, tested with telemetry-on-video v1.2.12 and telemetry-on-video v1.2.9, it runs fine for me (cmd below).

C:\Users\ronan\Downloads>java -jar gps-overlay-on-video.jar
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
Executed analyze GPS data in 11 millis
Executed load telemetry in 154 millis
Executed load sample gps data in 156 millis
Executed analyze GPS data in 23 millis
Executed load telemetry in 56 millis
Executed load sample gps data in 57 millis
Executed analyze GPS data in 3 millis
Executed load telemetry in 20 millis
Executed load sample gps data in 20 millis
Executed analyze GPS data in 1 millis
Executed load telemetry in 19 millis
Executed load sample gps data in 19 millis

from gps-overlay-on-video.

nighto avatar nighto commented on July 4, 2024

Sorry for the lack of replies folks.

Indeed it runs only with java -jar file.jar. I loaded a 5 minute video file with the corresponding gpx file and it seemed to appear fine the video and the map.

However when trying to play the video, it crashed with

Uncaught error from thread [gpv-akka.actor.default-dispatcher-5]: Java heap space, shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSystem[gpv]
java.lang.OutOfMemoryError: Java heap space
[ERROR] [SECURITY][02/16/2024 17:35:58.996] [gpv-akka.actor.default-dispatcher-5] [akka.actor.ActorSystemImpl(gpv)] Uncaught error from thread [gpv-akka.actor.default-dispatcher-5]: Java heap space, shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSystem[gpv]
java.lang.OutOfMemoryError: Java heap space

So maybe it needs some flag to set the max heap space such as -Xmx[NUMBER]g? Though as it is a 32-bit JRE it can only be assigned 2GB? Tried with -Xmx2g and it says

$ java -Xmx2g -jar gps-overlay-on-video.jar
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap

While with 4GB it says

$ java -Xmx4g -jar gps-overlay-on-video.jar
Invalid maximum heap size: -Xmx4g
The specified size exceeds the maximum representable size.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

so I am not really sure if it is feasible at all on a Windows host.

from gps-overlay-on-video.

Related Issues (20)

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.