Giter Site home page Giter Site logo

Segfault When Adding Music about omp HOT 27 CLOSED

thewisenoob avatar thewisenoob commented on June 9, 2024 1
Segfault When Adding Music

from omp.

Comments (27)

aladar42 avatar aladar42 commented on June 9, 2024 1

OK, Im dumb and didnt actually have gdb installed. Heres the gdb output:
https://pastebin.com/LmyJMnTR

from omp.

aladar42 avatar aladar42 commented on June 9, 2024 1

So I just trizen -S omp-git, hopefully thats enough.
This is the new output:
https://pastebin.com/42zzyYpV

from omp.

aladar42 avatar aladar42 commented on June 9, 2024 1

Still the same output
Thread 21 "omp" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd8f24700 (LWP 17344)]
__cxxabiv1::__dynamic_cast (src_ptr=0x0,
src_type=0x7ffff6445848 ,
dst_type=0x7ffff6445510 , src2dst=0)
at /build/gcc/src/gcc/libstdc++-v3/libsupc++/dyncast.cc:50
50 /build/gcc/src/gcc/libstdc++-v3/libsupc++/dyncast.cc: No such file or directory.

from omp.

aladar42 avatar aladar42 commented on June 9, 2024 1

Still the same thing:
Thread 23 "omp" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffdaffd700 (LWP 9367)]
__cxxabiv1::__dynamic_cast (src_ptr=0x0,
src_type=0x7ffff6445848 ,
dst_type=0x7ffff6445510 , src2dst=0)
at /build/gcc/src/gcc/libstdc++-v3/libsupc++/dyncast.cc:50
50 /build/gcc/src/gcc/libstdc++-v3/libsupc++/dyncast.cc: No such file or directory.

The version is accounced as omp-git 0.1.r5.g2c771ad-1

from omp.

aladar42 avatar aladar42 commented on June 9, 2024 1

Got some results this time around.

Filename: /run/media/aladar/fad599b8-eb10-4814-95bd-fa0e60942ce7/home/aladar/Music/Death Grips/Death Grips-The Money Store (2012) 24_96 Vinyl FLAC/side A.flac

Filename: /run/media/aladar/fad599b8-eb10-4814-95bd-fa0e60942ce7/home/aladar/Music/Death Grips/Death Grips-The Money Store (2012) 24_96 Vinyl FLAC/side B.flac

Thread 22 "omp" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffc2ffd700 (LWP 12557)]
__cxxabiv1::__dynamic_cast (src_ptr=0x0,
src_type=0x7ffff6444848 ,
dst_type=0x7ffff6444510 , src2dst=0)
at /build/gcc/src/gcc/libstdc++-v3/libsupc++/dyncast.cc:50
50 /build/gcc/src/gcc/libstdc++-v3/libsupc++/dyncast.cc: No such file or directory.

Its a FLAC file with cuesheet. Is that what the problem is?

from omp.

aladar42 avatar aladar42 commented on June 9, 2024 1

Nope, the next file is an MP3, I dont think I have any APE files at all on my PC.
I can send you the file, but its probably around 500+MB, so I would need some way to get it to you

from omp.

aladar42 avatar aladar42 commented on June 9, 2024 1

The individual FLAC files work, its the cuesheet that crashes the software.
I cant access that folder without a Google Account, looks like.

from omp.

aladar42 avatar aladar42 commented on June 9, 2024 1

Yeah, here it is https://pastebin.com/gJYsXs1J

from omp.

aladar42 avatar aladar42 commented on June 9, 2024 1

No probs, glad to help.
Having one audio file per the whole album with a cue sheet having all the splits is actually a very common thing, interesting that you havent come across it yet.

Also, Im getting more errors now, should I open up a new ticket? The most common ones are
-[file] failed to open.
-the mime type is not valid
and
-failed to open with mime type of . (sic)

from omp.

TheWiseNoob avatar TheWiseNoob commented on June 9, 2024

Thanks! I'm looking into it now.

from omp.

TheWiseNoob avatar TheWiseNoob commented on June 9, 2024

You're using Arch, right? Install OMP again using the omp-git package and try adding your music again. I added some code that will hopefully prevent what's causing the crash with the dynamic cast and some temporary debug code to hopefully show me exactly what file(s) fail when casting.

Then, please send me the output again.

from omp.

TheWiseNoob avatar TheWiseNoob commented on June 9, 2024

Yeah, that should work fine. That didn't work how I hoped. I just committed some debug code that will help us identify exactly what file is causing the issue. Try installing omp again the same way and then look for the last filename that is output. Then you can send me the file causing the issue and I can figure out how to solve the issue without anymore of your help.

from omp.

TheWiseNoob avatar TheWiseNoob commented on June 9, 2024

Hmmm. I think the source is getting cached because there definitely should be some additional output. It should be outputting every file that is being read before the segfault, including the one causing it.

from omp.

TheWiseNoob avatar TheWiseNoob commented on June 9, 2024

I just pushed a new PKGBUILD for omp-git. Try installing and testing it again. That should hopefully force a redownload of the source it acquires via git.

from omp.

TheWiseNoob avatar TheWiseNoob commented on June 9, 2024

Hmmm. I'm not sure why nothing is getting output because that dynamic cast only happens at one point and it should be outputting filenames. I'm doubtful, but try compiling it one more time and see if anything outputs. I pushed some new code that should hopefully help figure out the file causing this. Do you have many APE files?

from omp.

TheWiseNoob avatar TheWiseNoob commented on June 9, 2024

No, cue sheets should work fine. Cue sheet parsing support is one of the first features I implemented. Might be a bug in it. Would it be possible for you to send me these files?

from omp.

TheWiseNoob avatar TheWiseNoob commented on June 9, 2024

And the error is for an .ape file originally, so I'm thinking something earlier than I expected is causing the crash. I have an idea for what it might be. Look at the first file alphabetically after those FLAC files and see if it is a .ape file. Then send me that one if possible if it is an APE file.

from omp.

TheWiseNoob avatar TheWiseNoob commented on June 9, 2024

Did you test the files that were outputted to make sure one or both are the ones causing the segfault? Please upload the file(s) to this folder on my Google Drive. I just tested it with an alt account to make sure it is uploadable. Anybody with that link should be able to upload files. It worked on Desktop for me. I really appreciate your help. <3

from omp.

TheWiseNoob avatar TheWiseNoob commented on June 9, 2024

Yeah, you'll need a Google account to upload anything there. I assumed you probably had one. I can likely figure out the issue using using just the cuesheet if you want to upload it to pastebin or something for me, please.

from omp.

TheWiseNoob avatar TheWiseNoob commented on June 9, 2024

I've solved the crash. There's also one other small bug I want to fix first and then I'll push the commit that fixes this bug. I'll comment here again when it is pushed.

from omp.

TheWiseNoob avatar TheWiseNoob commented on June 9, 2024

This multi-file format of cue might also not read properly with OMP. I need to do more testing and make some test files with the same length. All of my multi-file cue sheets work fine, but they have a file for each track and not just two for the whole album. I've never seen a cue sheet like this before. It at least won't crash OMP now. It's a good test case. Thank you.

from omp.

TheWiseNoob avatar TheWiseNoob commented on June 9, 2024

I'll push the crash fix within 24 hours because I'm too tired to continue right now. About to sleep. Thanks again for your help.

from omp.

TheWiseNoob avatar TheWiseNoob commented on June 9, 2024

I just pushed an update that fixes this bug. An unhelpful error will now be output because OMP's cuesheet parser is not designed to handle a cuesheet in that format, but OMP will not crash now. I will be opening another issue for adding support for cuesheet parsing with that format. Thanks for your help!

from omp.

TheWiseNoob avatar TheWiseNoob commented on June 9, 2024

Just Opened Issue #39

from omp.

TheWiseNoob avatar TheWiseNoob commented on June 9, 2024

OMP does support cuesheets with multiple files and splits in the cue sheet or just a single file with the splits in the cuesheet, just not this dual format that your vinyl rip has. The few vinyl rips I have are split into tracks for each file.

from omp.

TheWiseNoob avatar TheWiseNoob commented on June 9, 2024

If OMP isn't crashing, then the errors are just from lack of support. Another Issue would be best, but only if you can provide examples of what is causing the errors.

from omp.

aladar42 avatar aladar42 commented on June 9, 2024

Ah, right, I misunderstood you then.

Its all .wav and .mp3 files, there shouldnt be any problems sending you the files via email or something.

from omp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.