processing / processing-video

GStreamer-based video library for Processing
274 stars 130 forks source link

Video loading triggers "Invalid memory access" error #158

Closed 0x6e69636f closed 1 year ago

0x6e69636f commented 4 years ago
## Description When loading some simple video examples from the Video or OpenCV library, Processing triggers an `Invalid memory access` error on line `video = new Movie(this, "transit.mov");` ```import processing.video.*; Movie movie; void setup() { size(640, 360); background(0); // Load and play the video in a loop movie = new Movie(this, "transit.mov"); movie.loop(); } ``` ## Expected Behavior The video should be loaded and the sketch should display it ## Current Behavior `Invalid memory access` error prevents the sketch to run ## Steps to Reproduce 1. Install the Video library in Processing 4 2. Open the example under : Examples > Libraries > Video > Movie > Loop 3. Try to run the sketch ## Your Environment * Processing version: 4.0a1 * Operating System and OS version: Windows 10 Pro, 64 bits, 16GB ram * Other information: Java JDK 11.0.3 ## Possible Causes / Solutions * No idea what's going on * Works on Processing 3
sampottinger commented 4 years ago

Thank you for surfacing this @nicolasbd! We will look into it...

sampottinger commented 4 years ago

Hey there @nicolasbd! I ran into a different issue on Windows (NoClassDefFoundError com.sun.jna.Native) both with https://github.com/processing/processing-video/releases/tag/r6-v2.0-beta4 and https://github.com/processing/processing-video/releases/tag/latest. Just hoping to get lucky, I tried updating JNA and gst1-java-core (1.2.0) but no luck. I'm having some build issues at pack_windows_libs.bat (dlls not found but the folder exists with la and a files). @codeanticode, sorry to pull you in but do you have any suggestions?

sampottinger commented 4 years ago

@codeanticode, just FWIW it does seem to work on mac.

codeanticode commented 4 years ago

@sampottinger ok, sounds like this is time for a new beta of the video library... I will look into it this week (apologies for my slow response).

sampottinger commented 4 years ago

Thanks @codeanticode!

benfry commented 3 years ago

(Moving this to the video repo…)

0x6e69636f commented 1 year ago

Hello all, any news on this ? Still have the issue with the 4.0.1 on Windows 10

0x6e69636f commented 1 year ago

Hello @sampottinger Still have this issue on Windows 10 x64 v4.1.1 When I run Processing for the first time, I get this security alert from Windows :

image

Could it be related ?

sampottinger commented 1 year ago

Hello! I think this is unrelated. See https://github.com/processing/processing4/issues/25.

0x6e69636f commented 1 year ago

Alright, thanks But then I have no clue what's causing this error 🤷

sampottinger commented 1 year ago

@codeanticode did you get a chance to dig into this any more?

codeanticode commented 1 year ago

@sampottinger not yet, but was able to get some android work done, so will look at the video library next :-)

sampottinger commented 1 year ago

Awesome thanks!

codeanticode commented 1 year ago

@sampottinger Unfortunately I cannot replicate this issue

@nicolasbd What version of the video library are you using?

0x6e69636f commented 1 year ago

@codeanticode ahh good point, since I made updates from old versions of Processing, I had an old version of the lib installed

image

But in the tools management interface it still shows the old one, although I updated the new one and it now seems to work

Edit : and I can't remove the old one from there, I get a message "Could not move contribution to backup folder." I think the new one got installed but it still shows the "update" button on it

0x6e69636f commented 1 year ago

Ok so I just removed the Documents/Processing/libraries/video folder (dunno why I had to restart my computer for that because it seemed to be in use even when I closed Processing), and then I reinstalled the "Video Library for Processing 4" from the Tools manager I can close the ticket, thanks for your help @codeanticode and @sampottinger

Improvements, if needed, would be in tools / library management between Processing version updates

codeanticode commented 1 year ago

@nicolasbd thanks for the update! Please open other tickets if you come across new issues :-)