Skip to content

2.0-beta1 wrong path closes without errors (relative paths don't work?) #110

Closed

Description

@hamoid

It seems like trying to load an inexisting file closes the program without any errors.

movie = new Movie(this, "fgstdrsfstr");

In this case the bogus file name may be easy to detect. But when I converted

foto = loadImage("../images/foto1.jpg");

into

movie = new Video(this, "../videos/video1.mp4");

the program would just close. I had to comment out all lines of code to find out which line was the problem. This shows a possible second problem: relative paths work for loadImage but don't for new Video. If I replace the path with an absolute path it works fine.

Maybe someone can try these two issue to confirm? (wrong path and relative path)

Activity

  1. codeanticode commented on Jul 17, 2019

    @codeanticode
    Contributor

    @hamoid Does this still happen with the latest beta?

  2. hamoid commented on Jul 17, 2019

    @hamoid
    ContributorAuthor

    Works great.

    • Bogus paths are shown in the error area of Processing.
    • I could put launch2.mp4 directly inside the Movie/ folder, then change the examples to target ../../launch2.mp4 and they worked fine.

    Nice!

  3. codeanticode commented on Jul 17, 2019

    @codeanticode
    Contributor

    Awesome, thanks for checking!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions