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
usd unable to log #798
Comments
Since you are using the 2021.03 release, the assert is actually here https://github.com/bitcraze/crazyflie-firmware/blob/2021.03/src/deck/drivers/src/usddeck.c#L504 |
It seems to be related to the CORE log implementation we did lately. Also see #791 |
Hi! Could you perhaps share your log configuration? What variables are you trying to log? It seems the switch in the usd code is missing a check for FP16, are you using any FP16 variables? |
Hi, It's my configuration file:
I think I don't use any FP16 variables. |
Thank you for your reply! I change the PR. Now it can create a log file but it's empty and unable to log anything.
|
@jonasdn Hi, I update the PR and do some tests. Now the config file can be read and a log file can be created in the sd-card. But it's totally empty. I am so confused about it and don't know what might be the problem. Do you have any suggestions? Thanks! |
* log: Use TYPE_MASK to avoid problems with LOG_CORE Fixes: #798 * log: Use logGetType() more Instead of open coding it.
Hi, I add some DEBUG_PRINT in the usddeck.c file to check if there are any bugs. I find the problem is that I didn't manually stop logging by setting logging parameter usd.logging to 0. So it is not able to break this while loop, and data cannot be written to the micro-sd card. But how can I set this parameter manually? Thanks. |
Hi, has this ever been resolved? I think I have the same issues. As soon as I set the usd.logging parameter in the cfclient to 0, it writes the data to file. |
@sstroobants Please open a new issue if you think you have found a bug or start a discussion (in http://discussions.bitcraze.io/) if you need support. Also refer to this issue if you think there is a relation. |
Hi,
My usd is not able to log any logging variables due to the assert problem here(
crazyflie-firmware/src/deck/drivers/src/usddeck.c
Line 504 in b448553
PARAMETERS
NODES
/
crazyswarm_server (crazyswarm/crazyswarm_server)
crazyswarm_teleop (crazyswarm/crazyswarm_teleop)
joy (joy/joy_node)
rviz (rviz/rviz)
vicon (vicon_bridge/vicon_bridge)
auto-starting new master
process[master]: started with pid [29715]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to 887091b2-d221-11eb-9720-606dc7c60f33
process[rosout-1]: started with pid [29726]
started core service [/rosout]
process[crazyswarm_server-2]: started with pid [29733]
process[joy-3]: started with pid [29734]
process[crazyswarm_teleop-4]: started with pid [29735]
process[vicon-5]: started with pid [29741]
[ INFO] [1624232703.525606116]: Wait for services...
[ INFO] [1624232703.526491251]: waitForService: Service [/emergency] has not been advertised, waiting...
process[rviz-6]: started with pid [29747]
[ INFO] [1624232703.540027279]: Connecting to Vicon DataStream SDK at 192.168.1.100:801 ...
[ INFO] [1624232703.567869179]: waitForService: Service [/emergency] is now available.
[ INFO] [1624232703.569099076]: Manager ready.
ch: 1
[ INFO] [1624232703.591669117]: Adding CF: cf4 (radio://0/100/2M/E7E7E7E704, cf4)...
[ INFO] [1624232703.608835600]: CF ctor: 0.016464 s
[ INFO] [1624232703.613486238]: [cf4] SYS: ----------------------------
[ INFO] [1624232703.615937065]: [cf4] SYS: Crazyflie 2.1 is up and running!
[ INFO] [1624232703.618592807]: [cf4] SYS: Build 215:a7e0aae54b23 (2021.03 +215) CLEAN
[ INFO] [1624232703.622327383]: [cf4] SYS: I am 0x20373357594B5007003D0031 and I have 1024KB of flash!
[ INFO] [1624232703.623845705]: [cf4] CFGBLK: v1, verification [OK]
[ INFO] [1624232703.625293548]: [cf4] DECK_CORE: 1 deck(s) found
[ INFO] [1624232703.627983158]: [cf4] DECK_CORE: Calling INIT on driver bcUSD for deck 0
[ INFO] [1624232703.629399868]: [cf4] uSD: mount SD-Card [OK].
[ INFO] [1624232703.631729548]: [cf4] IMU: BMI088: Using I2C interface.
[ INFO] [1624232703.633055356]: [cf4] uSD: wait for sensors
[ INFO] [1624232703.635358707]: [cf4] IMU: BMI088 Gyro connection [OK].
[ INFO] [1624232703.637629506]: [cf4] IMU: BMI088 Accel connection [OK]
[ INFO] [1624232703.640318290]: [cf4] IMU: BMP388 I2C connection [OK]
[ INFO] [1624232703.642978629]: [cf4] ESTIMATOR: Using Complementary (1) estimator
[ INFO] [1624232703.645352116]: [cf4] CONTROLLER: Using PID (1) controller
[ INFO] [1624232703.647711081]: [cf4] MTR-DRV: Using brushed motor driver
[ INFO] [1624232703.650089538]: [cf4] SYS: About to run tests in system.c.
[ INFO] [1624232703.651573230]: [cf4] EEPROM: I2C connection [OK].
[ INFO] [1624232703.653032914]: [cf4] STORAGE: Storage check [OK].
[ INFO] [1624232703.655360071]: [cf4] IMU: BMI088 gyro self-test [OK]
[ INFO] [1624232703.656920159]: [cf4] DECK_CORE: Deck 0 test [OK].
[ INFO] [1624232703.659747646]: [cf4] SYS: The system resumed after a failed assert [WARNING]
[ INFO] [1624232703.662697624]: [cf4] SYS: Assert failed at .//src/deck/drivers/src/usddeck.c:504
[ INFO] [1624232703.664975686]: [cf4] SYS: cfAssertNormalStart [FAIL]
[ INFO] [1624232703.665778170]: [cf4] Requesting parameters...
[ INFO] [1624232703.694510701]: Found variables in cache.
[ WARN] [1624232703.706540260]: Couldn't set gain on joystick force feedback: Bad file descriptor
[ INFO] [1624232703.707388153]: Opened joystick: /dev/input/js0. deadzone_: 0.050000.
[ INFO] [1624232704.013898737]: [cf4] reqParamTOC: 0.405002 s (225 params)
[ INFO] [1624232704.013936989]: [cf4] Requesting logging variables...
[ INFO] [1624232704.016709976]: Found variables in cache.
[ INFO] [1624232704.017238701]: [cf4] reqLogTOC: 0.003365 s
[ INFO] [1624232704.043680589]: [cf4] logBlocks: 0.405002 s
[ INFO] [1624232704.043718211]: Requesting memories...
[ WARN] [1624232704.170863217]: [cf4] Link Quality low (0.480000)
[ INFO] [1624232704.249291565]: [cf4] SYS: ----------------------------
[ INFO] [1624232704.273877261]: [cf4] SYS: Crazyflie 2.1 is up and running!
[ WARN] [1624232704.274000973]: [cf4] Link Quality low (0.070000)
[ INFO] [1624232704.276953192]: [cf4] SYS: Build 215:a7e0aae54b23 (2021.03 +215) CLEAN
[ INFO] [1624232704.298269926]: [cf4] ash!
[ INFO] [1624232704.299945872]: [cf4] CFGBLK: v1, verification [OK]
[ INFO] [1624232704.323444830]: [cf4] DECK_CORE: 1 deck(s) found
[ INFO] [1624232704.326513214]: [cf4] DECK_CORE: Calling INIT on driver bcUSD for deck 0
[ INFO] [1624232704.336100563]: [cf4] uSD: mount SD-Card [OK].
[ INFO] [1624232704.338625314]: [cf4] IMU: BMI088: Using I2C interface.
[ INFO] [1624232704.340154824]: [cf4] uSD: wait for sensors
[ WARN] [1624232704.372271294]: [cf4] Link Quality low (0.630000)
[ INFO] [1624232705.337373600]: [cf4] IMU: BMI088 Gyro connection [OK].
[ INFO] [1624232705.391946324]: [cf4] IMU: BMI088 Accel connection [OK]
[ INFO] [1624232705.405754023]: [cf4] IMU: BMP388 I2C connection [OK]
[ INFO] [1624232705.426961765]: [cf4] ESTIMATOR: Using Complementary (1) estimator
[ INFO] [1624232705.429507587]: [cf4] CONTROLLER: Using PID (1) controller
[ INFO] [1624232705.431969630]: [cf4] MTR-DRV: Using brushed motor driver
[ INFO] [1624232705.434565329]: [cf4] SYS: About to run tests in system.c.
[ WARN] [1624232705.627962767]: [cf4] Link Quality low (0.030000)
[ INFO] [1624232705.635151848]: [cf4] SYS: ----------------------------
[ INFO] [1624232705.660259452]: [cf4] SYS: Crazyflie 2.1 is up and running!
[ INFO] [1624232705.663078305]: [cf4] SYS: Build 215:a7e0aae54b23 (2021.03 +215) CLEAN
[ INFO] [1624232705.684592779]: [cf4] ash!
[ INFO] [1624232705.686133906]: [cf4] CFGBLK: v1, verification [OK]
[ INFO] [1624232705.709374056]: [cf4] DECK_CORE: 1 deck(s) found
[ INFO] [1624232705.712371165]: [cf4] DECK_CORE: Calling INIT on driver bcUSD for deck 0
[ INFO] [1624232705.721803673]: [cf4] uSD: mount SD-Card [OK].
[ INFO] [1624232705.724346298]: [cf4] IMU: BMI088: Using I2C interface.
[ INFO] [1624232705.725845507]: [cf4] uSD: wait for sensors
[ WARN] [1624232705.729431289]: [cf4] Link Quality low (0.330000)
terminate called after throwing an instance of 'std::runtime_error'
what(): timeout
[crazyswarm_server-2] process has died [pid 29733, exit code -6, cmd /home/coven-lab/crazyswarm/ros_ws/devel/lib/crazyswarm/crazyswarm_server __name:=crazyswarm_server __log:=/home/coven-lab/.ros/log/887091b2-d221-11eb-9720-606dc7c60f33/crazyswarm_server-2.log].
log file: /home/coven-lab/.ros/log/887091b2-d221-11eb-9720-606dc7c60f33/crazyswarm_server-2*.log
The text was updated successfully, but these errors were encountered: