Skip to content

Error of "segmentation fault while loading plugin file" #283

Answered by mwmalopo
mwmalopo asked this question in Q&A
Discussion options

You must be logged in to vote

After much investigation I wanted to answer this for anyone else struggling with something like this.

The program I created (not the simplified one attached here, but the one that I originally had the issue with) has many Java threads (in fact it uses a thread pool), which is not recommended by this library.

With careful use of Gst.invokeLater (on play, stop, and close) and holding of pipeline objects until finished there was still the occasional issue as described above.

Turns out if you pre-load the plugins (meaning just create an Element of each and let it be garbage collected) on the main thread (right after Gst.init() call), it does the trick. I tried this initially and it failed, im…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@neilcsmith-net
Comment options

@mwmalopo
Comment options

Answer selected by mwmalopo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants