xieyaxiongfly / Atheros_CSI_tool_OpenWRT_src

GNU General Public License v2.0
114 stars 53 forks source link

Matlab crashes when reading CSI #60

Open shazal opened 3 years ago

shazal commented 3 years ago

Hey I have been able to capture CSI successfully but when I try to read it, Matlab crashes. Any idea why it might be happening and what steps I should take to fix it? Thank you.

Geosearchef commented 3 years ago

What are you doing? Which code did you use? Do you get an error? What do you mean by crash? The entire IDE just disappears? In that case you should take a look at the log files / ask in a MATLAB forum / support platform.

shazal commented 3 years ago

I use the code read_log_file.m, The crash report is this:


   Segmentation violation detected at Tue May 11 12:28:28 2021 -0600

Configuration: Crash Decoding : Disabled - No sandbox or build area path Crash Mode : continue (default) Default Encoding : UTF-8 Deployed : false Graphics Driver : Unknown hardware Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode MATLAB Architecture : maci64 MATLAB Entitlement ID : 2071668 MATLAB Root : /Applications/MATLAB_R2020a.app MATLAB Version : 9.8.0.1451342 (R2020a) Update 5 OpenGL : hardware Operating System : Mac OS Version 10.16 (Build 20D91) Process ID : 54077 Processor ID : x86 Family 6 Model 142 Stepping 10, GenuineIntel Session Key : d307e773-686a-4802-8c8d-057fdd233959 Window System : Quartz

Fault Count: 1

Abnormal termination: Segmentation violation

Register State (from fault): RAX = 00007fb09e4c4020 RBX = 00007000088e41d8 RCX = 0000000000010fe0 RDX = 0000000000010fe1 RSP = 00007000088e3a10 RBP = 00007000088e3ae0 RSI = 0000000000010fe0 RDI = 0000000000000000

R8 = 0000000000000000 R9 = 0000000000000003 R10 = 0000000000000003 R11 = 0000000000000007 R12 = 0000000000000000 R13 = 0000600005bfb700 R14 = 0000600005bfb280 R15 = 00007000088e3bd8

RIP = 0000000174b3cbfb RFL = 0000000000010206

CS = 000000000000002b FS = 0000000000000000 GS = 0000000000000000

This error was detected while a MEX-file was running. If the MEX-file is not an official MathWorks function, please examine its source code for errors. Please consult the External Interfaces Guide for information on debugging MEX-files.

Geosearchef commented 3 years ago

Might be related to you running on OS X. The error seems to be located in the native code the csi tool uses for unpacking the data from the recording: https://github.com/xieyaxiongfly/Atheros-CSI-Tool-UserSpace-APP/blob/master/matlab/read_csi.c

It might also be that your recording is corrupt.

CSIhicham commented 2 years ago

Hello, I have the same problem, What should I do to fix it?

Thanks