Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example-3 no longer works #44

Closed
bartpeeters opened this issue Jul 22, 2018 · 3 comments
Closed

Example-3 no longer works #44

bartpeeters opened this issue Jul 22, 2018 · 3 comments

Comments

@bartpeeters
Copy link

First of all thanks for this great repository, I have a SDRPLAY and have been using it to play DAB+ using this repo.

I have been testing using code based on the example-3. I see that you've been busy upgrading the library to a newer version. This seems to have broken example-3.

The CMakeLists.txt of example-3 has a reference to a file that is renamed:
https://github.com/JvanKatwijk/dab-cmdline/blob/master/example-3/CMakeLists.txt#L336

I changed this to ../library/src/backend/data/mot/mot-handler.cpp and it compiles again. When I run the example it gets to the point where it dab_service(a radio station), but there is no data written to stdout and sometimes I also get a segmentation fault.

Any help would be appreciated.

@JvanKatwijk
Copy link
Owner

JvanKatwijk commented Jul 22, 2018 via email

@bartpeeters
Copy link
Author

Thread 1 "dab-rtlsdr-3" received signal SIGSEGV, Segmentation fault.
0x00007ffff64b9fff in _int_malloc () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007ffff64b9fff in _int_malloc () from /usr/lib/libc.so.6
#1  0x00007ffff64bb67a in malloc () from /usr/lib/libc.so.6
#2  0x00007ffff6e31159 in operator new (sz=1) at /build/gcc/src/gcc/libstdc++-v3/libsupc++/new_op.cc:50
#3  0x00005555555792f6 in dataBackend::dataBackend(packetdata*, void (*)(unsigned char*, short, unsigned char, void*), void (*)(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, void*), void*) ()
#4  0x0000555555579792 in mscHandler::set_dataChannel(packetdata*) ()
#5  0x000055555556d56b in dabClass::dab_service(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) ()
#6  0x0000555555564571 in main ()

That's the segfault I get. Sometimes it does run and outputs, sometimes it runs but doesn't output and other times I get the segfault.

@JvanKatwijk
Copy link
Owner

Thanks, it turned out that there was an initialization error somewhere. The error showed up with
DAB rather than DAB+ programs. This one seems fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants