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

px4_task_spawn_cmd: failed to set sched policy #109

Open
LJ0707 opened this issue Jan 15, 2020 · 3 comments
Open

px4_task_spawn_cmd: failed to set sched policy #109

LJ0707 opened this issue Jan 15, 2020 · 3 comments

Comments

@LJ0707
Copy link

LJ0707 commented Jan 15, 2020

image

@dagar
Copy link
Member

dagar commented Jan 15, 2020

This is a px4 platform bug. What's the environment and PX4 version?

@bozkurthan
Copy link

bozkurthan commented Jan 22, 2020

Hello @dagar I'm working on Windows10 and latest build (v1.11.0-beta1-337-g65aaf5170c). I also receive this problem.

Ded@DESKTOP-I4 ~/Firmware
$ git describe --tags
v1.11.0-beta1-337-g65aaf5170c

Also whole output of cygwin:

Ded@DESKTOP-I4 ~/Firmware
$ make px4_sitl jmavsim
[1/2] cd /cygdrive/c/PX4/home/Firmware/build/px4_sitl_defa...mware /cygdrive/c/PX4/home/Firmware/build/px4_sitl_default
SITL ARGS
sitl_bin: /cygdrive/c/PX4/home/Firmware/build/px4_sitl_default/bin/px4.exe
debugger: none
program: jmavsim
model: none
src_path: /cygdrive/c/PX4/home/Firmware
build_path: /cygdrive/c/PX4/home/Firmware/build/px4_sitl_default
empty model, setting iris as default
SITL COMMAND: "/cygdrive/c/PX4/home/Firmware/build/px4_sitl_default/bin/px4.exe" "/cygdrive/c/PX4/home/Firmware"/ROMFS/px4fmu_common -s etc/init.d-posix/rcS -t "/cygdrive/c/PX4/home/Firmware"/test_data
INFO  [px4] Creating symlink /cygdrive/c/PX4/home/Firmware/ROMFS/px4fmu_common -> /cygdrive/c/PX4/home/Firmware/build/px4_sitl_default/tmp/rootfs/etc
ERROR [px4] px4_task_spawn_cmd: failed to set sched policy
ERROR [px4] px4_task_spawn_cmd: failed to set sched policy
ERROR [px4] px4_task_spawn_cmd: failed to set sched policy
ERROR [px4] px4_task_spawn_cmd: failed to set sched policy
ERROR [px4_work_queue] task start failed (-134)

______  __   __    ___
| ___ \ \ \ / /   /   |
| |_/ /  \ V /   / /| |
|  __/   /   \  / /_| |
| |     / /^\ \ \___  |
\_|     \/   \/     |_/

px4 starting.

INFO  [px4] Calling startup script: /bin/sh etc/init.d-posix/rcS 0
INFO  [param] selected parameter default file eeprom/parameters_10016
[param] parameter file not found, creating eeprom/parameters_10016
  SYS_AUTOCONFIG: curr: 0 -> new: 1
* SYS_AUTOSTART: curr: 0 -> new: 10016
  BAT_N_CELLS: curr: 0 -> new: 3
  CAL_ACC0_ID: curr: 0 -> new: 1311244
  CAL_ACC_PRIME: curr: 0 -> new: 1311244
  CAL_GYRO0_ID: curr: 0 -> new: 2294028
  CAL_GYRO_PRIME: curr: 0 -> new: 2294028
  CAL_MAG0_ID: curr: 0 -> new: 197388
  CAL_MAG_PRIME: curr: 0 -> new: 197388
  CAL_BARO_PRIME: curr: 0 -> new: 6620172
  COM_DISARM_LAND: curr: 2.0000 -> new: 0.1000
  COM_OBL_ACT: curr: 0 -> new: 2
  COM_OF_LOSS_T: curr: 0.0000 -> new: 5.0000
Buildfile: C:\PX4\home\Firmware\Tools\jMAVSim\build.xml
  COM_RC_IN_MODE: curr: 0 -> new: 1
  EKF2_ANGERR_INIT: curr: 0.1000 -> new: 0.0100
  EKF2_GBIAS_INIT: curr: 0.1000 -> new: 0.0100
  COM_ARM_EKF_AB: curr: 0.0017 -> new: 0.0050
  EKF2_REQ_GPS_H: curr: 10.0000 -> new: 0.5000
  MC_PITCH_P: curr: 6.5000 -> new: 6.0000
  MC_PITCHRATE_P: curr: 0.1500 -> new: 0.2000

make_dirs:

compile:
  MC_ROLL_P: curr: 6.5000 -> new: 6.0000
  MC_ROLLRATE_P: curr: 0.1500 -> new: 0.2000

create_run_jar:
  MPC_HOLD_MAX_Z: curr: 0.6000 -> new: 2.0000
  MPC_Z_VEL_I: curr: 0.1000 -> new: 0.1500
  MPC_Z_VEL_P: curr: 0.2000 -> new: 0.6000
  MPC_XY_P: curr: 0.9500 -> new: 0.8000
  MPC_XY_VEL_P: curr: 0.0900 -> new: 0.2000

copy_res:
  MPC_XY_VEL_D: curr: 0.0100 -> new: 0.0160

BUILD SUCCESSFUL
Total time: 0 seconds
  MPC_JERK_MIN: curr: 8.0000 -> new: 10.0000
  MPC_ACC_HOR_MAX: curr: 5.0000 -> new: 3.0000
  NAV_ACC_RAD: curr: 10.0000 -> new: 2.0000
  NAV_DLL_ACT: curr: 0 -> new: 2
  RTL_DESCEND_ALT: curr: 30.0000 -> new: 5.0000
  RTL_LAND_DELAY: curr: -1.0000 -> new: 5.0000
  RTL_RETURN_ALT: curr: 60.0000 -> new: 30.0000
  SDLOG_MODE: curr: 0 -> new: 1
  SDLOG_PROFILE: curr: 3 -> new: 131
  SDLOG_DIRS_MAX: curr: 0 -> new: 7
  SENS_BOARD_X_OFF: curr: 0.0000 -> new: 0.0000
  SENS_DPRES_OFF: curr: 0.0000 -> new: 0.0010
  TRIG_INTERFACE: curr: 4 -> new: 3
* RTL_DESCEND_ALT: curr: 5.0000 -> new: 10.0000
Options parsed, starting Sim.
Starting GUI...
* RTL_LAND_DELAY: curr: 5.0000 -> new: 0.0000
  PWM_MAX: curr: 2000 -> new: 1950
  PWM_MIN: curr: 1000 -> new: 1075
* SYS_AUTOCONFIG: curr: 1 -> new: 0
ERROR [px4] px4_task_spawn_cmd: failed to set sched policy
ERROR [dataman] task start failed
ERROR [dataman] dataman start failed
ERROR [px4] px4_task_spawn_cmd: failed to set sched policy
3D [dev] 1.6.0-pre12-daily-experimental daily

@bozkurthan
Copy link

FYI @dagar I checkout with stable version(v1.10.0) and running without problem.
Here is the outputs:

$ git checkout -f tags/v1.10.0
warning: unable to rmdir 'platforms/qurt/dspal': Directory not empty
Checking out files: 100% (2268/2268), done.
Note: checking out 'tags/v1.10.0'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 4f6faac2c8 ECL fix for v1.10.0 release
$ git submodule update -f --init --recursive
Submodule path 'Tools/jMAVSim': checked out '3bd51e67e022ce59644d33ebdf6570c2ea88ddb6'
Submodule path 'Tools/jMAVSim/jMAVlib': checked out 'b8d4e8e7acfd2e47f4b51f0c2577fba6ef5ba735'
Submodule path 'Tools/sitl_gazebo': checked out '169d48217df89922e9fae72ef34fa46ce2e209dd'
Submodule path 'Tools/sitl_gazebo/external/OpticalFlow': checked out '54471159d4202d305e5643bbad3f2307f5dd1e37'
Submodule path 'Tools/sitl_gazebo/external/OpticalFlow/external/klt_feature_tracker': checked out 'a0d242294ef638d8fa422ab43f0d476ba37a15a6'
Submodule path 'boards/atlflight/cmake_hexagon': checked out '08fd0a73045346448adf6969660196228b23e1fa'
Submodule path 'cmake/configs/uavcan_board_ident': checked out '2e5f9d6768b1dbffc006dc2ceeb2bfe120f22163'
Submodule path 'mavlink/include/mavlink/v2.0': checked out '086f176b677b719c1f5b4267a10553ffc5c3a974'
Submodule path 'msg/tools/gencpp': checked out '7e446a9976916a7b6fc7266098c67fc6f73a76e0'
Submodule path 'msg/tools/genmsg': checked out '5736b1f7ad037fb5811a3100ba9da2db0ec1f20a'
Submodule path 'platforms/nuttx/NuttX/apps': checked out '13eeff0ec3f23d84fabf1e9fe216846957ad15cf'
Submodule path 'platforms/nuttx/NuttX/nuttx': checked out '427238133be2b0ecd068a11e886ee8fdbc31f6dc'
Submodule path 'src/drivers/gps/devices': checked out '69e38ecc846df03f0bb71aa136bcc830dd3316a9'
Submodule path 'src/drivers/uavcan/libuavcan': checked out '6174b8c10a2dbf47076ca7a7b5820a4c36c8a988'
Submodule path 'src/drivers/uavcan/libuavcan/dsdl': checked out '192295c4f9b67f4a20b0eabf74757b6597415f2b'
Submodule path 'src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/pyuavcan': checked out 'c58477a644d20ccf95a20c151f3a0402f271c3b8'
Submodule path 'src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/pyuavcan/dsdl': checked out 'fd12483ddd4e58242d61d74a163e7aeaa1e0f466'
Submodule path 'src/drivers/uavcan/libuavcan/libuavcan_drivers/kinetis': checked out '0c774a5a99bbd91d1f4832290fbed9168b2f65e5'
Submodule path 'src/lib/DriverFramework': checked out 'c7d2fe2d4f5954b9042af4edf7e5aeb21dbdd129'
Submodule path 'src/lib/DriverFramework/dspal': checked out '9b46b4a57f230672ee0806a523963af70bc44f1c'
Submodule path 'src/lib/DriverFramework/dspal/cmake_hexagon': checked out '07168bd5715818802b78f674816ec851307998a7'
Submodule path 'src/lib/ecl': checked out 'dec1ed0aeb395a885b60b1d61cfb57bd932c7d34'
Submodule path 'src/lib/matrix': checked out '92d1c8761ec8e5dbe9ba3f756cebd5e90956a1b2'
Submodule path 'src/modules/micrortps_bridge/micro-CDR': checked out '62d95c870eafb0cccc7bf70bb8a0cbb86f125a0e'

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

3 participants