Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video loading triggers "Invalid memory access" error #158

Closed
0x6e69636f opened this issue May 18, 2020 · 17 comments
Closed

Video loading triggers "Invalid memory access" error #158

0x6e69636f opened this issue May 18, 2020 · 17 comments
Assignees

Comments

@0x6e69636f
Copy link

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");


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
Copy link

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

@sampottinger sampottinger self-assigned this Jun 10, 2020
@sampottinger
Copy link

sampottinger commented Jun 29, 2020

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
Copy link

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

@codeanticode
Copy link
Member

@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
Copy link

Thanks @codeanticode!

@benfry benfry transferred this issue from benfry/processing4 Aug 15, 2020
@benfry
Copy link
Contributor

benfry commented Aug 15, 2020

(Moving this to the video repo…)

@0x6e69636f
Copy link
Author

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

@0x6e69636f
Copy link
Author

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
Copy link

Hello! I think this is unrelated. See benfry/processing4#25.

@0x6e69636f
Copy link
Author

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

@sampottinger
Copy link

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

@sampottinger sampottinger removed their assignment Jan 9, 2023
@codeanticode
Copy link
Member

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

@sampottinger
Copy link

Awesome thanks!

@codeanticode
Copy link
Member

@sampottinger Unfortunately I cannot replicate this issue

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

@0x6e69636f
Copy link
Author

0x6e69636f commented Jan 17, 2023

@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
Copy link
Author

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants