question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Writing to ogg crashes Python

See original GitHub issue

Windows 10 x64, Python 3.8.1. PySoundFile installed with pip install pysoundfile.

With Python’s interactive interpreter from the command line (directly typing python in cmd), I opened an ogg file (about 37 seconds long, sample rate 48000, 6 channels), and wrote the same data back to another ogg. This caused python to exit without printing any error message. Writing the same data to a wav file does not cause any error whatsoever.

If there is any other information I need to provide to help solve the issue, please let me know 😕

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bastibecommented, May 26, 2020

Does the problem occur for any kind of ogg file, or is it specific to this data or sample rate or number of channels?

At any rate, this problem is likely a bug in libsndfile, not SoundFile.

0reactions
bastibecommented, Jun 8, 2021

This sounds like there is a conflict between a version of libvorbis loaded by Qt and by libsndfile. Conflicts such as these are colloquially known as “DLL Hell”. Essentially, C libraries export a list of symbols (functions, constants, etc), and if you load a C library twice, only one set of symbols can be active. If you load two different versions of the library, you have a problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Working with Ogg files using Python - Stack Overflow
When I'm trying to execute this script Python interpreter crashes. The source code of this script is: import getopt import ogg.vorbis import ...
Read more >
pyrogg - PyPI
pyrogg is a simple recoding library for Ogg-Vorbis audio files, implemented in Cython. It reads Vorbis streams from the provided input files and...
Read more >
PyGame: A Primer on Game Programming in Python
This primer assumes you have a basic understanding of writing Python programs, including user-defined functions, imports, loops, and conditionals.
Read more >
ffmpeg Documentation
Otherwise, the metadata will be written into the output file if the muxer supports it. ... ffmpeg -i INPUT -codec:v libtheora -b:v 1000k...
Read more >
Bug listing with status RESOLVED with resolution OBSOLETE ...
issue with udev ("the udev init script is written for baselayout 2, ... of MP3 and Ogg Vorbis files" status:RESOLVED resolution:OBSOLETE severity: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found