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
wifi_loopback problem #18
Comments
|
Several people see this problem, but unfortunately I was not able to reproduce it yet. Therefore, it would be great if we could track this down. Could you check if GNU Radio is installed with log4cpp support? |
|
I have intalled log4cpp by your steps also set the memory. |
|
OK, could you please replace this line with something like and recompile. It would be very interesting if it's the boost::format or the logging... |
|
it works . I get the same results with my classmates. Thanks a lot. |
|
what do you mean? The commented out version did not seg fault? |
|
no, I just change that file which you mentioned and rebulid again. Now I can get the results and figure graph. the result like this: inux; GNU C++ version 4.8.4; Boost_105400; UHD_003.009.git-217-g012381d9 Using Volk machine: avx_32_mmx_orc new mac frame (length 524)duration: 00 00 new mac frame (length 524)duration: 00 00 new mac frame (length 524)duration: 00 00 Is that means the code can be run properly? |
|
...that means the flow graph works, but I still don't know the source of the problem. Does it also work with or only with |
|
I just copy the code which you provide to change into the ofdm_decode_signal.cc# L197&L198 save and rebuild . |
|
that's really strange. so it seems to be related to logging. But I see no problem here... It's most likely at /usr/local/include/gnuradio/config.h Anyhow, I will close this for now. |
|
I came across this error as well. Uncommenting //mylog(temp) causes the flowgraph to quit early, so I'm guessing the problem is there. Here is my config: |
|
To me it looks like GNU Radio was compiled with logging, but without log4cpp support. The problem might be that the module uses GNU Radios cmake module to check for logging, but should actually rely on config.h. Could you do me a favor and delete these two lines That would be great. |
|
Removing the logging options from the CMakeLists file and uncommenting mylog(temp) did the trick. Everything is working fine now. |
|
great news, thanks for trying it out! I will push a fix asap |
when I run wifi_loopback
Generating: "/home/sollo/gr-ieee802-11/examples/wifi_loopback.py"
Executing: "/home/sollo/gr-ieee802-11/examples/wifi_loopback.py"
linux; GNU C++ version 4.8.4; Boost_105400; UHD_003.009.git-217-g012381d9
Using Volk machine: avx_32_mmx_orc
OFDM MAPPER: encoding: 0
set_min_output_buffer on block 31 to 96000
set_min_output_buffer on block 33 to 96000
set_min_output_buffer on block 35 to 96000
set_min_output_buffer on block 36 to 96000
set_min_output_buffer on block 39 to 96000
set_min_output_buffer on block 50 to 96000
this doesn`t give me any figure graph.
I also use debug command and found that :
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x82c5eb40 (LWP 4482)]
0xb0796e30 in ofdm_decode_signal_impl::print_signal() ()
from /usr/local/lib/libgnuradio-ieee802_11.so
(gdb) backtrace
#0 0xb0796e30 in ofdm_decode_signal_impl::print_signal() ()
from /usr/local/lib/libgnuradio-ieee802_11.so
#1 0xb0797615 in ofdm_decode_signal_impl::general_work(int, std::vector<int, std::allocator >&, std::vector<void const*, std::allocator<void const*> >&, std::vector<void*, std::allocator<void*> >&) ()
from /usr/local/lib/libgnuradio-ieee802_11.so
#2 0xb6fd67f7 in gr::block_executor::run_one_iteration (this=0x82c5e270)
#3 0xb7012a19 in gr::tpb_thread_body::tpb_thread_body (this=0x82c5e270,
#4 0xb7008373 in operator() (this=0x927b9c8)
#5 operator() (this=0x927b9c8)
#6 boost::detail::function::void_function_obj_invoker0gr:🧵:thread_body_wrapper<gr::tpb_container, void>::invoke (function_obj_ptr=...)
#7 0xb6fbe09d in operator() (this=0x92f263c)
#8 boost::detail::thread_databoost::function0::run (this=0x92f2520)
that means Segmentation fault
but how can I fix the problem? Could you please give me any tips since I am a beginner with gnuradio. Thanks a lot.
The text was updated successfully, but these errors were encountered: