video_export_processing icon indicating copy to clipboard operation
video_export_processing copied to clipboard

NullPointerException: it must not be null

Open clankill3r opened this issue 2 years ago • 6 comments

Whenever I have a call to videoExport.endMovie(); I get:

NullPointerException: it must not be null

Windows, with processing 4.2.

clankill3r avatar Apr 05 '23 11:04 clankill3r

Hi! :) Did you see the top of the README? Did you try the KotlinGradle branch?

hamoid avatar Apr 05 '23 14:04 hamoid

yeah sorry, it happens with that one, but I posted in the wrong repository by accident.

clankill3r avatar Apr 06 '23 14:04 clankill3r

Ah there's only one repo, you posted on the only one XD. So... I would be happy to receive pull requests to fix any issues. And to pass the repo to a new maintainer as well.

hamoid avatar Apr 07 '23 12:04 hamoid

Hi, still encountering this issue on the KotlinGradle branch.

Minimum viable example reproducing the issue:

import com.hamoid.*;

VideoExport video_handle;

void settings() {
  size(600, 600);
}

void setup() {
  surface.setTitle("test");
  video_handle = new VideoExport(this, "test.mp4");
  video_handle.startMovie();
}

void draw() {
  video_handle.saveFrame();
  video_handle.endMovie();
  exit();
}

vess-dev avatar Oct 06 '23 17:10 vess-dev

For @vess-dev , I fixed this problem in this fork: https://github.com/ajavamind/video_export_processing/tree/kotlinGradle You can build the library on Windows with: .\gradlew.bat shadowJar

ajavamind avatar Oct 07 '23 15:10 ajavamind

For @vess-dev , I fixed this problem in this fork: https://github.com/ajavamind/video_export_processing/tree/kotlinGradle You can build the library on Windows with: .\gradlew.bat shadowJar

Thank you friend. I wish your day warm, and your pillow cold. Much appreciated.

vess-dev avatar Oct 19 '23 23:10 vess-dev