External plugin loader failed.

118 views
Skip to first unread message

Davide Perini

unread,
Aug 17, 2024, 5:54:40 PM8/17/24
to gstreamer-java
Hi all,
I know that this is a holiday moment but my holidays will be in September so I try to write here to see if someone answers.

With the latest update of GStreamer I'm having some weird errors and warnings:
```
0:00:00.265739200 29928 0000021393566F30 ERROR     GST_PLUGIN_LOADING gstpluginloader-win32.c:386:gst_plugin_loader_try_helper: Child process got terminated

(FireflyLuciferin:29928): GStreamer-WARNING **: 23:48:41.034: External plugin loader failed. This most likely means that the plugin loader helper binary was not found or could not be run. You might need to set the GST_PLUGIN_SCANNER environment variable if your setup is unusual. This should normally not be required though.
```

this is weird because my method to load the GStreamer plugin doesn't changed...

I always loaded this way since years now:
/**
 * Load GStreamer libraries
 */
public void initGStreamerLibraryPaths() {
    String libPath = getInstallationPath() + Constants.GSTREAMER_PATH;
    if (NativeExecutor.isWindows()) {
        try {
            Kernel32 k32 = Kernel32.INSTANCE;
            String path = System.getenv("path");
            if (path == null || path.trim().isEmpty()) {
                k32.SetEnvironmentVariable("path", libPath);
            } else {
                k32.SetEnvironmentVariable("path", libPath + File.pathSeparator + path);
            }
            return;
        } catch (Throwable e) {
            log.error(CommonUtility.getWord(Constants.CANT_FIND_GSTREAMER));
        }
    } else if (NativeExecutor.isMac()) {
        String gstPath = System.getProperty("gstreamer.path", "/Library/Frameworks/GStreamer.framework/Libraries/");
        if (!gstPath.isEmpty()) {
            String jnaPath = System.getProperty("jna.library.path", "").trim();
            if (jnaPath.isEmpty()) {
                System.setProperty("jna.library.path", gstPath);
            } else {
                System.setProperty("jna.library.path", jnaPath + File.pathSeparator + gstPath);
            }
        }
    }
    String jnaPath = System.getProperty("jna.library.path", "").trim();
    if (jnaPath.isEmpty()) {
        System.setProperty("jna.library.path", libPath);
    } else {
        System.setProperty("jna.library.path", jnaPath + File.pathSeparator + libPath);
    }
}

Apart the error and warnings, it works well but I would like to fix this...
Do you have any idea why I have this errors/warnings now?

Thanks
Davide



Reply all
Reply to author
Forward
0 new messages