text:
intermittent SITL test failures

https://github.com/PX4/Firmware/pull/15136/checks?check_run_id=788640705

Is this time jump the problem?

https://github.com/PX4/Firmware/pull/15154/checks?check_run_id=790699473

It looks like the Iris dual GPS model is losing global position for some reason.

https://github.com/PX4/Firmware/pull/15198/checks?check_run_id=799637423

@dagar Should we maybe take it out for now?

@dagar Should we maybe take it out for now?

To remove this one we would have to remove other as well, since the intermitent failures happen with other models as well. I have run this specific test several times straight locally without a single error, so this needs to be tracked in a different matter.

Can someone take a look at the logs in detail? If there isn't already enough data captured the builds need to evolve so that it's possible to debug when these intermittent failures inevitably occur. Being able to reproduce it locally is going to get harder, so ultimately shouldn't be that different than reviewing a real flight log.

The link no longer shows the result of the failure...

The link no longer shows the result of the failure...

Which?

It would be nice if we can get the gazebo logs separately, since currently the logs are not visible. Is there already a way to upload artifacts?

Yes, we can archive whatever we want, just don't do it by default on the successful builds to save space.

The link no longer shows the result of the failure...

Which?

https://github.com/PX4/Firmware/pull/15136/checks This one. I just realized the other link shows the error correctly.

I ran it locally and the dual_gps test failed first time for me:
[gzserver    ] [Wrn] [gazebo_gps_plugin.cpp:76] [gazebo_gps_plugin]: iris_dual_gps::gps1 using gps topic "gps1"
[gzserver    ] [Wrn] [gazebo_gps_plugin.cpp:201] [gazebo_gps_plugin] Using default update rate of 5hz
[gzserver    ] [Wrn] [gazebo_gps_plugin.cpp:76] [gazebo_gps_plugin]: iris_dual_gps::gps0 using gps topic "gps0"
[gzserver    ] [Wrn] [gazebo_gps_plugin.cpp:201] [gazebo_gps_plugin] Using default update rate of 5hz
[mavsdk_tests] Filters: Offboard takeoff and land
[mavsdk_tests] [03:23:48|Info ] MAVSDK version: 0.27.0-30-g7dd51855 (mavsdk_impl.cpp:26)
[mavsdk_tests] Waiting for system connect
[mavsdk_tests] [03:23:48|Info ] New system on: 127.0.0.1:14580 (udp_connection.cpp:256)
[mavsdk_tests] [03:23:48|Debug] New: System ID: 1 Comp ID: 1 (mavsdk_impl.cpp:372)
[mavsdk_tests] [03:23:48|Debug] Component Autopilot (1) added. (system_impl.cpp:352)
[mavsdk_tests] [03:23:48|Debug] Discovered 1 component(s) (UUID: 5283920058631409231) (system_impl.cpp:525)
[mavsdk_tests] Waiting for system to be ready
[mavsdk_tests] Waiting to get home position
[px4         ] INFO  [commander] ARMED by Arm/Disarm component command
[px4         ] WARN  [mc_pos_control] Offboard activation failed with error: Activation Failed
[px4         ] WARN  [mc_pos_control] Position-Ctrl activation failed with error: Activation Failed
[px4         ] WARN  [mc_pos_control] Altitude-Ctrl activation failed with error: Activation Failed
[px4         ] INFO  [commander] Takeoff detected
[px4         ] INFO  [ecl/EKF] 139084000: reset velocity to GPS
[px4         ] INFO  [ecl/EKF] 139084000: reset position to GPS
[px4         ] INFO  [ecl/EKF] 139084000: Emergency yaw reset - mag use stopped
[px4         ] WARN  [commander] Stopping compass use! Check calibration on landing
[mavsdk_tests] [03:23:54|Debug] MAVLink: info: ARMED by Arm/Disarm component command (system_impl.cpp:257)
[mavsdk_tests] [03:23:54|Debug] MAVLink: info: Takeoff detected (system_impl.cpp:257)
[mavsdk_tests] [03:23:54|Debug] MAVLink: critical: Stopping compass use! Check calibration on landing (system_impl.cpp:257)

[mavsdk_tests] -------------------------------------------------------------------------------
[mavsdk_tests] Offboard takeoff and land
[mavsdk_tests] -------------------------------------------------------------------------------
[mavsdk_tests] /home/julianoes/src/Firmware/test/mavsdk_tests/test_multicopter_offboard.cpp:42
[mavsdk_tests] ...............................................................................
[mavsdk_tests] /home/julianoes/src/Firmware/test/mavsdk_tests/autopilot_tester.cpp:219: FAILED:
[mavsdk_tests]   CHECK( poll_condition_with_timeout( [ = ]() { return estimated_position_close_to(target, acceptance_radius_m); }
[mavsdk_tests] with expansion:
[mavsdk_tests]   false
[mavsdk_tests] Target position reached

https://logs.px4.io/plot_app?log=8c840c92-3c83-45ee-94ad-21d8657ec161

And another one:
[mavsdk_tests] Filters: Offboard takeoff and land
[mavsdk_tests] [03:33:50|Info ] MAVSDK version: 0.27.0-30-g7dd51855 (mavsdk_impl.cpp:26)
[mavsdk_tests] Waiting for system connect
[mavsdk_tests] [03:33:50|Info ] New system on: 127.0.0.1:14580 (udp_connection.cpp:256)
[mavsdk_tests] [03:33:50|Debug] New: System ID: 1 Comp ID: 1 (mavsdk_impl.cpp:372)
[mavsdk_tests] [03:33:50|Debug] Component Autopilot (1) added. (system_impl.cpp:352)
[mavsdk_tests] [03:33:50|Debug] Discovered 1 component(s) (UUID: 5283920058631409231) (system_impl.cpp:525)
[mavsdk_tests] Waiting for system to be ready
[mavsdk_tests] Waiting to get home position
[px4         ] INFO  [commander] ARMED by Arm/Disarm component command
[px4         ] WARN  [mc_pos_control] Offboard activation failed with error: Activation Failed
[px4         ] WARN  [mc_pos_control] Position-Ctrl activation failed with error: Activation Failed
[px4         ] WARN  [mc_pos_control] Altitude-Ctrl activation failed with error: Activation Failed
[px4         ] INFO  [commander] Takeoff detected
[px4         ] ERROR [commander] Critical failure detected: lockdown
[mavsdk_tests] [03:33:56|Debug] MAVLink: info: ARMED by Arm/Disarm component command (system_impl.cpp:257)
[mavsdk_tests] [03:33:56|Debug] MAVLink: info: Takeoff detected (system_impl.cpp:257)
[mavsdk_tests] [03:33:56|Debug] MAVLink: emergency: Critical failure detected: lockdown (system_impl.cpp:257)
[mavsdk_tests] [03:33:56|Warn ] Unknown StatusText severity (telemetry_impl.cpp:891)
[px4         ] ERROR [mavlink] [timesync] Time jump detected. Resetting time synchroniser.
[px4         ] ERROR [mavlink] [timesync] Time jump detected. Resetting time synchroniser.
[px4         ] ERROR [mavlink] [timesync] Time jump detected. Resetting time synchroniser.
[px4         ] ERROR [mavlink] [timesync] Time jump detected. Resetting time synchroniser.
[px4         ] ERROR [mavlink] [timesync] Time jump detected. Resetting time synchroniser.
[px4         ] ERROR [mavlink] [timesync] Time jump detected. Resetting time synchroniser.
[mavsdk_tests] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[mavsdk_tests] mavsdk_tests is a Catch v2.9.2 host application.
[mavsdk_tests] Run with -? for options
[mavsdk_tests] -------------------------------------------------------------------------------
[mavsdk_tests] Offboard takeoff and land
[mavsdk_tests] -------------------------------------------------------------------------------
[mavsdk_tests] /home/julianoes/src/Firmware/test/mavsdk_tests/test_multicopter_offboard.cpp:42
[mavsdk_tests] ...............................................................................
[mavsdk_tests] /home/julianoes/src/Firmware/test/mavsdk_tests/autopilot_tester.cpp:219: FAILED:
[mavsdk_tests]   CHECK( poll_condition_with_timeout( [ = ]() { return estimated_position_close_to(target, acceptance_radius_m); }, timeout_duration) )
[mavsdk_tests] with expansion:
[mavsdk_tests]   false
[mavsdk_tests] Target position reached
[px4         ] INFO  [commander] Landing detected
[px4         ] INFO  [commander] DISARMED by Auto disarm initiated
[px4         ] INFO  [logger] closed logfile, bytes written: 28312745
[mavsdk_tests] [03:34:18|Debug] MAVLink: info: Landing detected (system_impl.cpp:257)
[mavsdk_tests] [03:34:18|Debug] MAVLink: info: DISARMED by Auto disarm initiated (system_impl.cpp:257)
[px4         ] ERROR [mavlink] [timesync] Time jump detected. Resetting time synchroniser.
[mavsdk_tests] target_pos.lat: 47.3978
[mavsdk_tests] target_pos.lon: 8.54561
[mavsdk_tests] current.lat: 47.3978
[mavsdk_tests] current.lon: 8.54558
[mavsdk_tests] Distance: 2.33083
[mavsdk_tests] Acceptance radius: 1
[mavsdk_tests] /home/julianoes/src/Firmware/test/mavsdk_tests/autopilot_tester.cpp:91: FAILED:
[mavsdk_tests]   CHECK( ground_truth_horizontal_position_close_to(_home, acceptance_radius_m) )
[mavsdk_tests] with expansion:
[mavsdk_tests]   false
[mavsdk_tests] ===============================================================================
[mavsdk_tests] test cases:  1 |  0 passed | 1 failed
[mavsdk_tests] assertions: 14 | 12 passed | 2 failed
[px4         ] INFO  [commander] Failsafe mode activated
[px4         ] INFO  [navigator] RTL HOME activated
[px4         ] PX4 Exiting...
[px4         ] Exiting NOW.

https://logs.px4.io/plot_app?log=10f13430-6ba4-418b-a740-a0743e5d0c57

opt_flow_mockup fails as well for me:
[mavsdk_tests] Filters: Offboard takeoff and land
[mavsdk_tests] [03:41:02|Info ] MAVSDK version: 0.27.0-30-g7dd51855 (mavsdk_impl.cpp:26)
[mavsdk_tests] Waiting for system connect
[mavsdk_tests] [03:41:02|Info ] New system on: 127.0.0.1:14580 (udp_connection.cpp:256)
[mavsdk_tests] [03:41:02|Debug] New: System ID: 1 Comp ID: 1 (mavsdk_impl.cpp:372)
[mavsdk_tests] [03:41:02|Debug] Component Autopilot (1) added. (system_impl.cpp:352)
[mavsdk_tests] [03:41:02|Debug] Discovered 1 component(s) (UUID: 5283920058631409231) (system_impl.cpp:525)
[mavsdk_tests] Waiting for system to be ready
[mavsdk_tests] Waiting to get home position
[px4         ] INFO  [commander] ARMED by Arm/Disarm component command
[px4         ] WARN  [commander] Failsafe enabled: no RC
[px4         ] INFO  [commander] Failsafe mode activated
[px4         ] INFO  [commander] Failsafe mode deactivated
[px4         ] WARN  [mc_pos_control] Offboard activation failed with error: Activation Failed
[px4         ] WARN  [mc_pos_control] Position-Ctrl activation failed with error: Activation Failed
[px4         ] WARN  [mc_pos_control] Altitude-Ctrl activation failed with error: Activation Failed
[px4         ] INFO  [commander] Takeoff detected
[px4         ] ERROR [commander] Critical failure detected: lockdown
[mavsdk_tests] [03:41:08|Debug] MAVLink: info: ARMED by Arm/Disarm component command (system_impl.cpp:257)
[mavsdk_tests] [03:41:08|Debug] MAVLink: critical: Failsafe enabled: no RC (system_impl.cpp:257)
[mavsdk_tests] [03:41:08|Debug] MAVLink: info: Failsafe mode activated (system_impl.cpp:257)
[mavsdk_tests] [03:41:08|Debug] MAVLink: info: Failsafe mode deactivated (system_impl.cpp:257)
[mavsdk_tests] [03:41:08|Debug] MAVLink: info: Takeoff detected (system_impl.cpp:257)
[px4         ] WARN  [mc_pos_control] PositionControl: invalid setpoints
[px4         ] WARN  [mc_pos_control] Failsafe: blind land
[px4         ] INFO  [commander] Landing detected
[px4         ] INFO  [commander] DISARMED by Auto disarm initiated
[px4         ] INFO  [logger] closed logfile, bytes written: 6847405
[px4         ] ERROR [mavlink] [timesync] Time jump detected. Resetting time synchroniser.
[px4         ] ERROR [mavlink] [timesync] Time jump detected. Resetting time synchroniser.
[px4         ] ERROR [mavlink] [timesync] Time jump detected. Resetting time synchroniser.
[px4         ] ERROR [mavlink] [timesync] Time jump detected. Resetting time synchroniser.
[px4         ] ERROR [mavlink] [timesync] Time jump detected. Resetting time synchroniser.
[mavsdk_tests] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[mavsdk_tests] mavsdk_tests is a Catch v2.9.2 host application.
[mavsdk_tests] Run with -? for options
[mavsdk_tests] -------------------------------------------------------------------------------
[mavsdk_tests] Offboard takeoff and land
[mavsdk_tests] -------------------------------------------------------------------------------
[mavsdk_tests] /home/julianoes/src/Firmware/test/mavsdk_tests/test_multicopter_offboard.cpp:42
[mavsdk_tests] ...............................................................................
[mavsdk_tests] /home/julianoes/src/Firmware/test/mavsdk_tests/autopilot_tester.cpp:219: FAILED:
[mavsdk_tests]   CHECK( poll_condition_with_timeout( [ = ]() { return estimated_position_close_to(target, acceptance_radius_m); }, timeout_duration) )
[mavsdk_tests] with expansion:
[mavsdk_tests]   false
[mavsdk_tests] Target position reached
[mavsdk_tests] ===============================================================================
[mavsdk_tests] test cases:  1 |  0 passed | 1 failed
[mavsdk_tests] assertions: 14 | 13 passed | 1 failed

https://logs.px4.io/plot_app?log=b3caa0ad-fa17-4e2b-8fd0-1487cfeec681

Another one from master last night. https://github.com/PX4/Firmware/runs/802554839

authors: Jaeyoung-Lim TSC21 dagar julianoes


text:
Commander saves parameters every second

In SITL the parameters get saved every second, also it seems to override some from rcS_gazebo_iris, not sure yet why

Fixed on master

source: gharchive/issue

license_type: permissive

license_source: github-api


text:
Cant run the 1st code on Snapdragon

Hi
I am working with Snapdragon FC and trying to run my 1st code as mentioned in dev.px4.io.
I have build the code using make eagle_default and uploaded it in FC but when i am running the code found this error
root@linaro-developer:/home/linaro# ./px4 mainapp.config
sh: 1: cannot create /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor: Directory nonexistent
commands file: mainapp.config
creating new parameters file
creating new dataman file

| ___ \ \ \ / /   /   |
| |/ /  \ V /   / /| |
|  __/   /   \  / /| |
| |     / /^\ \ ___  |
_|     /   /     |_/
px4 starting.
ERROR [muorb] Initialize Error calling the uorb fastrpc initalize method..
INFO  [sdlog2] [blackbox] /root/log/sess001
INFO  [sdlog2] [blackbox] recording: log001.px4log
ERROR [muorb] ERROR: FastRpcWrapper Not Initialized
MAV_BROADCAST: curr: 0ERROR [platforms__posix__px4_layer] krait update param 301 failed
-> new: 1
SDLOG_PRIO_BOOST: curr: 2ERROR [platforms__posix__px4_layer] krait update param 664 failed
-> new: 3
INFO  [dataman] Unkown restart, data manager file '/home/linaro/dataman' size is 103090 bytes
INFO  [mavlink] mode: Normal, data rate: 1000000 B/s on udp port 14556 remote port 14550
pxh> INFO  [mavlink] using network interface wlan0, IP: 192.168.1.1
INFO  [mavlink] with broadcast IP: 192.168.1.255
anuj@anuj-vm:~/src/Firmware$
Earlier i was getting the same error so i had build all the cross toolchain installation and build the code using make but again same error.
Mini-DM is not showing anything
anuj@anuj-vm:~/src/Firmware$ ${HEXAGON_SDK_ROOT}/tools/debug/mini-dm/Linux_Debug/mini-dm
Running mini-dm version: 3.0
Device found with Product ID 0x9025. Continuing...
mini-dm is waiting for a DMSS connection...
DMSS is connected. Running mini-dm...
thanks

Have you updated to the BSP 3.1.1 and the latest adsp image?

same error, but also have timer difference too big

Thanks @julianoes ,
Yes updated the linux image to BSP 3.1.1 and pushed the latest ADSP firmware , both downloaded from intrinsyc about 15 days ago.

@Stifael: does the error persist with thr latest BSP and adsp image?

@anujkumargupta and @Stifael: I can't reproduce the error, it works for me.
Can you list down all the commands you entered, maybe I can spot what you're doing different.

HI @julianoes Today i just tried a different thing instead of pushing the q6-admin.sh i edited it in adb shell and now it works fine but still the Ground control station does detect it.
I tried to run mini-dm but didnot able to under stand
here is mini-dm output
anuj@anuj-vm:~/Qualcomm/Hexagon_SDK/3.0/tools/debug/mini-dm/Linux_Debug$ ./mini-dm
Running mini-dm version: 3.0
Device found with Product ID 0x9025. Continuing...
mini-dm is waiting for a DMSS connection...
DMSS is connected. Running mini-dm...
[08500/00]  02:33.700  HAP:16415:In dspal_entry  0222  main.cpp
[08500/00]  02:33.700  HAP:16415:92813238 WorkMgr already initialized   0063  WorkMgr.cpp
[08500/02]  02:33.710  HAP:28713:Batch transfer failed: 0x110000c8  0524  i2c.c
[08500/00]  02:33.710  HAP:28713:92823368 error: read register reports a read of -1 bytes, but attempted to set 1 bytes   0133  I2CDevObj.cpp
[08500/00]  02:33.710  HAP:28713:92823416 error: unable to communicate with the hmc5883 mag sensor   0086  HMC5883.cpp
[08500/00]  02:33.710  HAP:28713:92823450 error: mag sensor initialization failed, sensor read thread not started   0155  HMC5883.cpp
[08500/03]  02:33.710  HAP:28713:HMC5883 start fail: -5  0165  df_hmc5883_wrapper.cpp
[08500/02]  02:33.713  HAP:28713:Batch transfer failed: 0x110000c8  0524  i2c.c
[08500/00]  02:33.713  HAP:28713:92827381 error: read register reports a read of -1 bytes, but attempted to set 1 bytes   0133  I2CDevObj.cpp
[08500/00]  02:33.715  HAP:28713:92827427 error: unable to communicate with the hmc5883 mag sensor   0086  HMC5883.cpp
[08500/00]  02:33.715  HAP:28713:92827461 error: mag sensor initialization failed, sensor read thread not started   0155  HMC5883.cpp
[08500/03]  02:33.715  HAP:28713:HMC5883 start fail: -5  0165  df_hmc5883_wrapper.cpp
[08500/02]  02:33.718  HAP:28713:Batch transfer failed: 0x110000c8  0524  i2c.c
[08500/00]  02:33.718  HAP:28713:92831499 error: read register reports a read of -1 bytes, but attempted to set 1 bytes   0133  I2CDevObj.cpp
[08500/00]  02:33.718  HAP:28713:92831541 error: unable to communicate with the hmc5883 mag sensor   0086  HMC5883.cpp
[08500/00]  02:33.718  HAP:28713:92831577 error: mag sensor initialization failed, sensor read thread not started   0155  HMC5883.cpp
[08500/03]  02:33.718  HAP:28713:HMC5883 start fail: -5  0165  df_hmc5883_wrapper.cpp
[08500/02]  02:33.722  HAP:28713:Batch transfer failed: 0x110000c8  0524  i2c.c
[08500/00]  02:33.722  HAP:28713:92835739 error: read register reports a read of -1 bytes, but attempted to set 1 bytes   0133  I2CDevObj.cpp
[08500/00]  02:33.722  HAP:28713:92835784 error: unable to communicate with the hmc5883 mag sensor   0086  HMC5883.cpp
[08500/00]  02:33.722  HAP:28713:92835821 error: mag sensor initialization failed, sensor read thread not started   0155  HMC5883.cpp
[08500/03]  02:33.722  HAP:28713:HMC5883 start fail: -5  0165  df_hmc5883_wrapper.cpp
[08500/02]  02:33.730  HAP:28713:Batch transfer failed: 0x110000c8  0524  i2c.c
[08500/00]  02:33.730  HAP:28713:92843155 error: read register reports a read of -1 bytes, but attempted to set 1 bytes   0133  I2CDevObj.cpp
[08500/00]  02:33.730  HAP:28713:92843199 error: unable to communicate with the hmc5883 mag sensor   0086  HMC5883.cpp
[08500/00]  02:33.730  HAP:28713:92843237 error: mag sensor initialization failed, sensor read thread not started   0155  HMC5883.cpp
[08500/03]  02:33.730  HAP:28713:HMC5883 start fail: -5  0165  df_hmc5883_wrapper.cpp
[08500/02]  02:33.733  HAP:28713:Batch transfer failed: 0x110000c8  0524  i2c.c
[08500/00]  02:33.733  HAP:28713:92847009 error: read register reports a read of -1 bytes, but attempted to set 1 bytes   0133  I2CDevObj.cpp
[08500/00]  02:33.733  HAP:28713:92847052 error: unable to communicate with the hmc5883 mag sensor   0086  HMC5883.cpp
[08500/00]  02:33.733  HAP:28713:92847086 error: mag sensor initialization failed, sensor read thread not started   0155  HMC5883.cpp
[08500/03]  02:33.733  HAP:28713:HMC5883 start fail: -5  0165  df_hmc5883_wrapper.cpp
[08500/02]  02:33.738  HAP:28713:Batch transfer failed: 0x110000c8  0524  i2c.c
[08500/00]  02:33.738  HAP:28713:92851850 error: read register reports a read of -1 bytes, but attempted to set 1 bytes   0133  I2CDevObj.cpp
[08500/00]  02:33.738  HAP:28713:92851893 error: unable to communicate with the hmc5883 mag sensor   0086  HMC5883.cpp
[08500/00]  02:33.738  HAP:28713:92851931 error: mag sensor initialization failed, sensor read thread not started   0155  HMC5883.cpp
[08500/03]  02:33.738  HAP:28713:HMC5883 start fail: -5  0165  df_hmc5883_wrapper.cpp
[08500/00]  02:33.741  HAP:16415:attempting to open the ADSP command file: /dev/fs/px4.config  0186  main.cpp
[08500/02]  02:33.742  HAP:28713:Batch transfer failed: 0x110000c8  0524  i2c.c
[08500/00]  02:33.742  HAP:28713:92855681 error: read register reports a read of -1 bytes, but attempted to set 1 bytes   0133  I2CDevObj.cpp
[08500/00]  02:33.742  HAP:28713:92855721 error: unable to communicate with the hmc5883 mag sensor   0086  HMC5883.cpp
[08500/00]  02:33.742  HAP:28713:92855758 error: mag sensor initialization failed, sensor read thread not started   0155  HMC5883.cpp
[08500/03]  02:33.742  HAP:28713:HMC5883 start fail: -5  0165  df_hmc5883_wrapper.cpp
[08500/00]  02:33.745  HAP:16415:reading commands from /dev/fs/px4.config   0193  main.cpp
[08500/02]  02:33.746  HAP:16415:already loaded  0067  uORBMain.cpp
[08500/00]  02:33.746  HAP:16415:already running  0081  qshell_start_qurt.cpp
[08500/02]  02:33.752  HAP:16415:Sleeping for 1, 1000000  0118  apps.h
[08500/02]  02:34.752  HAP:16415:GPS 1 already started  0979  gps.cpp
[08500/02]  02:34.758  HAP:16415:Batch transfer failed: 0x110000c8  0524  i2c.c
[08500/00]  02:34.758  HAP:16415:93871537 error: read register reports a read of -1 bytes, but attempted to set 1 bytes   0133  I2CDevObj.cpp
[08500/00]  02:34.758  HAP:16415:93871580 error: unable to communicate with the hmc5883 mag sensor   0086  HMC5883.cpp
[08500/00]  02:34.758  HAP:16415:93871617 error: mag sensor initialization failed, sensor read thread not started   0155  HMC5883.cpp
[08500/03]  02:34.758  HAP:16415:HMC5883 start fail: -5  0165  df_hmc5883_wrapper.cpp
[08500/03]  02:34.758  HAP:16415:DfHmc9250Wrapper start failed  0347  df_hmc5883_wrapper.cpp
[08500/03]  02:34.806  HAP:57:MESSED UP: worker = 0  0175  hrt_thread.c
[08500/00]  02:34.858  HAP:16415:93972276 Reset MPU9250   0089  MPU9250.cpp
[08500/00]  02:34.865  HAP:30:93977712 FIFO corrupt, temp difference: 15.279778, last temp: 49.138504, current temp: 33.858727   0526  MPU9250.cpp
[08500/00]  02:34.865  HAP:30:93978594 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.866  HAP:60:93979615 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.867  HAP:30:93980606 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.868  HAP:60:93981612 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.870  HAP:30:93983220 IMU temperature initialized to: 35.000000   0516  MPU9250.cpp
[08500/00]  02:34.870  HAP:30:93983277 FIFO corrupt, temp difference: 33.329639, last temp: 35.000000, current temp: 1.670361   0526  MPU9250.cpp
[08500/00]  02:34.871  HAP:60:93984615 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.872  HAP:30:93985637 IMU temperature initialized to: 35.000000   0516  MPU9250.cpp
[08500/00]  02:34.872  HAP:30:93985686 FIFO corrupt, temp difference: 33.329639, last temp: 35.000000, current temp: 1.670361   0526  MPU9250.cpp
[08500/00]  02:34.873  HAP:30:93986491 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.875  HAP:60:93987615 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.875  HAP:30:93988602 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.876  HAP:60:93989610 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.877  HAP:30:93990602 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.878  HAP:60:93991620 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.880  HAP:30:93992409 IMU temperature initialized to: 35.000000   0516  MPU9250.cpp
[08500/00]  02:34.880  HAP:60:93993617 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.881  HAP:30:93994597 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.882  HAP:60:93995607 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.883  HAP:16415:93996532 wrong mag ID 64 (expected 72)   0281  MPU9250_mag.cpp
[08500/00]  02:34.883  HAP:16415:93996571 MPU9250 mag not detected.   0092  MPU9250_mag.cpp
[08500/00]  02:34.883  HAP:16415:93996599 mag initialization failed 1 tries   0202  MPU9250_mag.cpp
[08500/00]  02:34.883  HAP:30:93996615 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.885  HAP:60:93997612 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.885  HAP:30:93998566 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.886  HAP:60:93999604 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.887  HAP:30:94000603 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.888  HAP:60:94001612 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.890  HAP:30:94002624 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.890  HAP:60:94003606 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.891  HAP:30:94004612 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.892  HAP:60:94005607 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.893  HAP:30:94006613 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.895  HAP:60:94007613 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.896  HAP:60:94009610 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.897  HAP:30:94010605 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.898  HAP:60:94011608 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.900  HAP:30:94012674 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.900  HAP:60:94013608 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.901  HAP:30:94014603 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.902  HAP:60:94015621 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.903  HAP:30:94016447 FIFO corrupt, temp difference: 4.963989, last temp: 35.000000, current temp: 39.963989   0526  MPU9250.cpp
[08500/00]  02:34.905  HAP:16415:94017468 wrong mag ID 64 (expected 72)   0281  MPU9250_mag.cpp
[08500/00]  02:34.905  HAP:16415:94017503 MPU9250 mag not detected.   0092  MPU9250_mag.cpp
[08500/00]  02:34.905  HAP:16415:94017531 mag initialization failed 2 tries   0202  MPU9250_mag.cpp
[08500/00]  02:34.905  HAP:30:94017560 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.905  HAP:60:94018570 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.906  HAP:30:94019607 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.907  HAP:60:94020601 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.908  HAP:30:94021611 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.910  HAP:60:94022620 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.910  HAP:30:94023611 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.911  HAP:60:94024607 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.912  HAP:30:94025615 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.913  HAP:60:94026609 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.915  HAP:30:94027610 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.915  HAP:60:94028602 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.916  HAP:30:94029655 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.917  HAP:60:94030595 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.918  HAP:30:94031609 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.920  HAP:60:94032620 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.920  HAP:30:94033606 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.921  HAP:60:94034606 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.922  HAP:30:94035686 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.923  HAP:60:94036601 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.925  HAP:30:94037608 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.926  HAP:30:94039411 IMU temperature initialized to: 35.000000   0516  MPU9250.cpp
[08500/00]  02:34.927  HAP:16415:94040619 set_mag_reg_verified failed for reg 50. 10!=2   0329  MPU9250_mag.cpp
[08500/00]  02:34.928  HAP:30:94041633 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.930  HAP:60:94042615 FIFO overflow   0397  MPU9250.cpp
[08500/00]  02:34.930  HAP:30:94043607 FIFO overflow   0397  MPU9250.cpp
[08500/02]  02:35.723  mmpm_register: MMPM client for USM ADSP core 12  0117  UltrasoundStreamMgr_Mmpm.cpp
[08500/02]  02:35.725  ADSP License DB: License validation function with id 164678 stored.  0280  adsp_license_db.cpp
[08500/02]  02:35.725  AvsCoreSvc: StartSvcHandler Enter  0518  AdspCoreSvc.cpp
[08500/02]  02:35.725  AdspCoreSvc: Started successfully  0534  AdspCoreSvc.cpp
[08500/02]  02:35.728  loading BLSP configuration  0217  blsp_config.c
[08500/02]  02:36.016  HAP:110:cannot find /oemconfig.so  0141  load.c
[08500/03]  02:36.016  HAP:4211::error: -1: 0 == dynconfig_init(&conf, "security")   0696  sigverify.c
[08500/02]  02:36.016  HAP:80:cannot find /voiceproc_tx.so  0141  load.c
[08500/02]  02:36.017  HAP:80:cannot find /voiceproc_rx.so  0141  load.c
[08500/02]  02:36.017  HAP:159:unable to open the specified file path  0167  file.c
[08500/04]  02:36.017  failed to open /usr/share/data/adsp/blsp.config  0233  blsp_config.c
[08500/00]  02:36.017  loading the blsp config file failed, loading the default config  0261  main.c
[08500/02]  02:36.017  Loaded default UART-BAM mapping  0036  blsp_config.c
[08500/02]  02:36.017  UART tty-1: BAM-9  0044  blsp_config.c
[08500/02]  02:36.017  UART tty-2: BAM-6  0044  blsp_config.c
[08500/02]  02:36.017  UART tty-3: BAM-8  0044  blsp_config.c
[08500/02]  02:36.017  UART tty-4: BAM-2  0044  blsp_config.c
[08500/02]  02:36.017  UART tty-5: BAM N/A  0049  blsp_config.c
[08500/02]  02:36.017  UART tty-6: BAM N/A  0049  blsp_config.c
Thanks

Do you always get this FIFO overflow output, even after a reboot and a power-cycle (disconnect all power)?
Please post the output of the shell and mini-dm. Also, is the networking setup correctly? Can you ping the device?

Hi
This adb shell output
root@linaro-developer:/home/linaro# ./px4 mainapp.config
sh: 1: cannot create /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor: Directory nonexistent
commands file: mainapp.config

| ___ \ \ \ / /   /   |
| |/ /  \ V /   / /| |
|  __/   /   \  / /| |
| |     / /^\ \ ___  |
_|     /   /     |_/
px4 starting.
INFO  [sdlog2] [blackbox] /root/log/sess009
INFO  [sdlog2] [blackbox] recording: log001.px4log
INFO  [dataman] Unkown restart, data manager file '/home/linaro/dataman' size is 103090 bytes
INFO  [mavlink] mode: Normal, data rate: 1000000 B/s on udp port 14556 remote port 14550
pxh> INFO  [mavlink] using network interface wlan0, IP: 192.168.1.1
INFO  [mavlink] with broadcast IP: 192.168.1.255
This is mini-dm
anuj@anuj-vm:~/Qualcomm/Hexagon_SDK/3.0/tools/debug/mini-dm/Linux_Debug$ ./mini-dm
Running mini-dm version: 3.0
Device found with Product ID 0x9025. Continuing...
mini-dm is waiting for a DMSS connection...
DMSS is connected. Running mini-dm...
[08500/00]  22:55.782  HAP:61:In dspal_entry  0222  main.cpp
[08500/00]  22:55.802  HAP:61:attempting to open the ADSP command file: /dev/fs/px4.config  0186  main.cpp
[08500/00]  22:55.802  HAP:61:reading commands from /dev/fs/px4.config   0193  main.cpp
[08500/02]  22:55.920  HAP:61:Sleeping for 1, 1000000  0118  apps.h
[08500/00]  22:56.921  configuring UART for 4-wire mode, DAL id: 0x2001001  0852  DalUart.c
[08500/02]  22:56.926  HAP:61:Batch transfer failed: 0x110000c8  0524  i2c.c
[08500/00]  22:56.926  HAP:61:1143820 error: read register reports a read of -1 bytes, but attempted to set 1 bytes   0133  I2CDevObj.cpp
[08500/00]  22:56.926  HAP:61:1143862 error: unable to communicate with the hmc5883 mag sensor   0086  HMC5883.cpp
[08500/00]  22:56.926  HAP:61:1143895 error: mag sensor initialization failed, sensor read thread not started   0155  HMC5883.cpp
[08500/03]  22:56.926  HAP:61:HMC5883 start fail: -5  0165  df_hmc5883_wrapper.cpp
[08500/03]  22:56.926  HAP:61:DfHmc9250Wrapper start failed  0347  df_hmc5883_wrapper.cpp
[08500/00]  22:57.030  HAP:61:1246345 Reset MPU9250   0089  MPU9250.cpp
[08500/00]  22:57.093  HAP:60:1310597 IMU temperature initialized to: 50.468143   0516  MPU9250.cpp
[08500/00]  22:57.095  HAP:61:1312495 additional sensor configuration succeeded   0187  BMP280.cpp
[08500/03]  22:57.096  HAP:61:start  0204  df_trone_wrapper.cpp
[08500/02]  22:57.098  HAP:61:I2C_Write failed: 285212872 num_bytes_written 0  0414  i2c.c
[08500/00]  22:57.098  HAP:61:1315465 Error: i2c write failed. Reported -1 bytes written   0216  I2CDevObj.cpp
[08500/00]  22:57.098  HAP:61:1315498 Nonzero result when writing to TRONE_WHO_AM_I_REG 0x1   0110  TROne.cpp
[08500/00]  22:57.098  HAP:61:1315535 probing not successful   0071  TROne.cpp
[08500/03]  22:57.098  HAP:61:TROne start fail: -1  0134  df_trone_wrapper.cpp
[08500/03]  22:57.098  HAP:61:DfTROneWrapper start failed  0215  df_trone_wrapper.cpp
[08500/02]  22:57.105  HAP:28713:Batch transfer failed: 0x110000c8  0524  i2c.c
[08500/00]  22:57.105  HAP:28713:1322879 error: read register reports a read of -1 bytes, but attempted to set 1 bytes   0133  I2CDevObj.cpp
[08500/00]  22:57.105  HAP:28713:1322921 error: unable to communicate with the hmc5883 mag sensor   0086  HMC5883.cpp
[08500/00]  22:57.106  HAP:28713:1322954 error: mag sensor initialization failed, sensor read thread not started   0155  HMC5883.cpp
[08500/03]  22:57.106  HAP:28713:HMC5883 start fail: -5  0165  df_hmc5883_wrapper.cpp
[08500/02]  22:57.107  HAP:28713:Batch transfer failed: 0x110000c8  0524  i2c.c
[08500/00]  22:57.107  HAP:28713:1324667 error: read register reports a read of -1 bytes, but attempted to set 1 bytes   0133  I2CDevObj.cpp
[08500/00]  22:57.107  HAP:28713:1324706 error: unable to communicate with the hmc5883 mag sensor   0086  HMC5883.cpp
[08500/00]  22:57.107  HAP:28713:1324739 error: mag sensor initialization failed, sensor read thread not started   0155  HMC5883.cpp
[08500/03]  22:57.107  HAP:28713:HMC5883 start fail: -5  0165  df_hmc5883_wrapper.cpp
[08500/02]  22:57.110  HAP:12328:LED: getHandle fail   0269  commander_helper.cpp
[08500/02]  22:57.110  HAP:12328:LED init failed  1287  commander.cpp
[08500/02]  22:57.110  HAP:12328:Buzzer: px4_open fail   0132  commander_helper.cpp
[08500/02]  22:57.110  HAP:12328:Buzzer init failed  1291  commander.cpp
[08500/02]  22:57.110  HAP:12328:Preflight checks always pass on Snapdragon.  0392  PreflightCheck.cpp
[08500/00]  22:57.175  configuring UART for 4-wire mode, DAL id: 0x2001005  0852  DalUart.c
[08500/00]  22:57.175  HAP:35:Trying to initialize mixer from config file /dev/fs/quad_x.main.mix  0145  pwm_out_rc_in.cpp
[08500/00]  22:57.177  HAP:35:Successfully initialized mixer from config file  0157  pwm_out_rc_in.cpp
[08500/02]  22:57.177  HAP:28713:Batch transfer failed: 0x110000c8  0524  i2c.c
[08500/00]  22:57.177  HAP:28713:1394489 error: read register reports a read of -1 bytes, but attempted to set 1 bytes   0133  I2CDevObj.cpp
[08500/00]  22:57.177  HAP:28713:1394533 error: unable to communicate with the hmc5883 mag sensor   0086  HMC5883.cpp
[08500/00]  22:57.177  HAP:28713:1394571 error: mag sensor initialization failed, sensor read thread not started   0155  HMC5883.cpp
[08500/03]  22:57.177  HAP:28713:HMC5883 start fail: -5  0165  df_hmc5883_wrapper.cpp
[08500/00]  22:58.748  HAP:38:EKF using pressure height - commencing alignment  0407  ekf.cpp
[08500/00]  23:04.316  HAP:38:EKF alignment complete  0064  control.cpp
This time i didnot get the FIFO overflow output
i tried to connect it using wifi module but the signal is very week (even when i kept it at a distance of max 20cm) and ping output shows destination host not reachable
root@linaro-developer:/# ping 192.168.1.12
PING 192.168.1.12 (192.168.1.12) 56(84) bytes of data.
From 192.168.1.1 icmp_seq=1 Destination Host Unreachable
From 192.168.1.1 icmp_seq=2 Destination Host Unreachable
From 192.168.1.1 icmp_seq=3 Destination Host Unreachable
^C
--- 192.168.1.12 ping statistics ---
6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5006ms
pipe 3
How to increase its signal strength

Do you have an antenna connected to the Snapdragon? This would increase the signal strength. However, for testing I use it without antenna and it is usually good enough for a few meters.

@anujkumargupta it looks like the first error is gone though:
[platforms__posix__px4_layer] krait update param 664 failed

Do you know what you changed to resolve it?

Hi earlier in pinging it shows error because i also connected my lan cable but after removing the lan i can ping the device.
root@linaro-developer:/# ping 192.168.1.12
PING 192.168.1.12 (192.168.1.12) 56(84) bytes of data.
64 bytes from 192.168.1.12: icmp_seq=1 ttl=64 time=4.90 ms
64 bytes from 192.168.1.12: icmp_seq=2 ttl=64 time=11.3 ms
64 bytes from 192.168.1.12: icmp_seq=3 ttl=64 time=23.0 ms
64 bytes from 192.168.1.12: icmp_seq=4 ttl=64 time=7.85 ms
64 bytes from 192.168.1.12: icmp_seq=5 ttl=64 time=5.88 ms
but the adb shell and mini-dm output is same
Thanks

Ok, good so it was a routing issue.
The adb shell and mini-dm output look ok. It is just complaining that no external mag is connected but it will fall back to the internal mag.
I would expect that QGC shows something now, no?

Hi @julianoes
Yes this [platforms__posix__px4_layer] krait update param 664 failed error is solved.
Earlier i was trying to pull the script and then edit and then pushing it.
adb pull /usr/local/qr-linux/q6-admin.sh
gedit q6-admin.sh
adb push q6-admin.sh /usr/local/qr-linux/q6-admin.sh
But later i edited it directly through adb shell
vim /usr/local/qr-linux/q6-admin.sh
and also done all step without removing the board even once.

Ok interesting, I'll try to reproduce this. In theory both "editing" variants should lead to the same.

@anujkumargupta you were right! If you do adb pull and adb push the executable bit gets lost.
Fixed with https://github.com/PX4/Devguide/pull/55.

authors: Stifael anujkumargupta julianoes


text:
rsync error when building the px4/firmware

Bug Report
when I input the order "make px4fmu-v2_default" in PX4 Consoles on Windows,  rsync error happens like:
"The source and destination cannot both be remote."
I tried the solution "cmake nuttx rsync copy only use relative paths', but I found that the code "px4_impl_nuttx.cmake " is different from the used one, so I am confused and don't know how to fix this problem.

Could you post the verbose build output?

I got the same problem, the message is like:
make px4fmu-v2_default VERBOSE=1
"/C/Program Files/CMake/bin/cmake.exe" -H/D/px4/Fimrware20171112 -B/D/px4/Fimrware20171112/build/px4fmu-v2_default --check-build-system CMakeFiles/Makefile.cmake 0
"/C/Program Files/CMake/bin/cmake.exe" -E cmake_progress_start /D/px4/Fimrware20171112/build/px4fmu-v2_default/CMakeFiles /D/px4/Fimrware20171112/build/px4fmu-v2_default/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make -f NuttX/CMakeFiles/nuttx_configure.dir/build.make NuttX/CMakeFiles/nuttx_configure.dir/depend
make -f msg/CMakeFiles/uorb_headers.dir/build.make msg/CMakeFiles/uorb_headers.dir/depend
make -f src/lib/version/CMakeFiles/ver_gen.dir/build.make src/lib/version/CMakeFiles/ver_gen.dir/depend
"/C/Program Files/CMake/bin/cmake.exe" -E cmake_depends "MSYS Makefiles" /D/px4/Fimrware20171112 /D/px4/Fimrware20171112/msg /D/px4/Fimrware20171112/build/px4fmu-v2_default /D/px4/Fimrware20171112/build/px4fmu-v2_default/msg /D/px4/Fimrware20171112/build/px4fmu-v2_default/msg/CMakeFiles/uorb_headers.dir/DependInfo.cmake --color=
make -f CMakeFiles/git_ecl.dir/build.make CMakeFiles/git_ecl.dir/depend
"/C/Program Files/CMake/bin/cmake.exe" -E cmake_depends "MSYS Makefiles" /D/px4/Fimrware20171112 /D/px4/Fimrware20171112/src/lib/version /D/px4/Fimrware20171112/build/px4fmu-v2_default /D/px4/Fimrware20171112/build/px4fmu-v2_default/src/lib/version /D/px4/Fimrware20171112/build/px4fmu-v2_default/src/lib/version/CMakeFiles/ver_gen.dir/DependInfo.cmake --color=
"/C/Program Files/CMake/bin/cmake.exe" -E cmake_depends "MSYS Makefiles" /D/px4/Fimrware20171112 /D/px4/Fimrware20171112 /D/px4/Fimrware20171112/build/px4fmu-v2_default /D/px4/Fimrware20171112/build/px4fmu-v2_default /D/px4/Fimrware20171112/build/px4fmu-v2_default/CMakeFiles/git_ecl.dir/DependInfo.cmake --color=
make -f msg/CMakeFiles/uorb_headers.dir/build.make msg/CMakeFiles/uorb_headers.dir/build
make -f src/lib/version/CMakeFiles/ver_gen.dir/build.make src/lib/version/CMakeFiles/ver_gen.dir/build
make -f CMakeFiles/git_ecl.dir/build.make CMakeFiles/git_ecl.dir/build
make[3]: Nothing to be done for src/lib/version/CMakeFiles/ver_gen.dir/build'. make[3]: Nothing to be done for CMakeFiles/git_ecl.dir/build'.
make[3]: Nothing to be done for msg/CMakeFiles/uorb_headers.dir/build'. [  1%] Built target ver_gen make -f src/modules/systemlib/mixer/CMakeFiles/mixer_gen.dir/build.make src/modules/systemlib/mixer/CMakeFiles/mixer_gen.dir/depend [  2%] Built target git_ecl make -f CMakeFiles/git_nuttx.dir/build.make CMakeFiles/git_nuttx.dir/depend "/C/Program Files/CMake/bin/cmake.exe" -E cmake_depends "MSYS Makefiles" /D/px4/Fimrware20171112 /D/px4/Fimrware20171112/src/modules/systemlib/mixer /D/px4/Fimrware20171112/build/px4fmu-v2_default /D/px4/Fimrware20171112/build/px4fmu-v2_default/src/modules/systemlib/mixer /D/px4/Fimrware20171112/build/px4fmu-v2_default/src/modules/systemlib/mixer/CMakeFiles/mixer_gen.dir/DependInfo.cmake --color= [  2%] Built target uorb_headers make -f src/drivers/px4io/CMakeFiles/copy_px4io_bin.dir/build.make src/drivers/px4io/CMakeFiles/copy_px4io_bin.dir/depend "/C/Program Files/CMake/bin/cmake.exe" -E cmake_depends "MSYS Makefiles" /D/px4/Fimrware20171112 /D/px4/Fimrware20171112 /D/px4/Fimrware20171112/build/px4fmu-v2_default /D/px4/Fimrware20171112/build/px4fmu-v2_default /D/px4/Fimrware20171112/build/px4fmu-v2_default/CMakeFiles/git_nuttx.dir/DependInfo.cmake --color= "/C/Program Files/CMake/bin/cmake.exe" -E cmake_depends "MSYS Makefiles" /D/px4/Fimrware20171112 /D/px4/Fimrware20171112/src/drivers/px4io /D/px4/Fimrware20171112/build/px4fmu-v2_default /D/px4/Fimrware20171112/build/px4fmu-v2_default/src/drivers/px4io /D/px4/Fimrware20171112/build/px4fmu-v2_default/src/drivers/px4io/CMakeFiles/copy_px4io_bin.dir/DependInfo.cmake --color= make -f src/modules/systemlib/mixer/CMakeFiles/mixer_gen.dir/build.make src/modules/systemlib/mixer/CMakeFiles/mixer_gen.dir/build "/C/Program Files/CMake/bin/cmake.exe" -E cmake_depends "MSYS Makefiles" /D/px4/Fimrware20171112 /D/px4/Fimrware20171112 /platforms/nuttx/NuttX /D/px4/Fimrware20171112/build/px4fmu-v2_default /D/px4/Fimrware20171112/build/px4fmu-v2_default/Nmake -f CMakeFiles/git_nuttx.dir/build.make CMakeFiles/git_nuttx.dir/buildx_configure.dir/DependInfo.cmake --color= make[3]: Nothing to be done for src/modules/systemlib/mixer/CMakeFiles/mixer_gen.dir/build'.
make[3]: Nothing to be done for CMakeFiles/git_nuttx.dir/build'. make -f src/drivers/px4io/CMakeFiles/copy_px4io_bin.dir/build.make src/drivers/px4io/CMakeFiles/copy_px4io_bin.dir/build make -f NuttX/CMakeFiles/nuttx_configure.dir/build.make NuttX/CMakeFiles/nuttx_configure.dir/build [  2%] Built target mixer_gen make -f src/modules/systemlib/param/CMakeFiles/parameters_xml.dir/build.make src/modules/systemlib/param/CMakeFiles/parameters_xml.dir/depend [  2%] Built target git_nuttx "/C/Program Files/CMake/bin/cmake.exe" -E cmake_depends "MSYS Makefiles" /D/px4/Fimrware20171112 /D/px4/Fimrware20171112/src/modules/systemlib/param /D/px4/Fimrware20171112/build/px4fmu-v2_default /D/px4/Fimrware20171112/build/px4fmu-v2_default/src/modules/systemlib/param /D/px4/Fimrware20171112/build/px4fmu-v2_default/src/modules/systemlib/param/CMakeFiles/parameters_xml.dir/DependInfo.cmake --color= make -f CMakeFiles/airframes_xml.dir/build.make CMakeFiles/airframes_xml.dir/depend [  2%] Building px4io-v2 "/C/Program Files/CMake/bin/cmake.exe" -E cmake_depends "MSYS Makefiles" /D/px4/Fimrware20171112 /D/px4/Fimrware20171112 /D/px4/Fimrware20171112/build/px4fmu-v2_default /D/px4/Fimrware20171112/build/px4fmu-v2_default /D/px4/Fimrware20171112/build/px4fmu-v2_default/CMakeFiles/airframes_xml.dir/DependInfo.cmake --color= cd /D/px4/Fimrware20171112 && make --no-print-directory px4io-v2_default make -f src/modules/systemlib/param/CMakeFiles/parameters_xml.dir/build.make src/modules/systemlib/param/CMakeFiles/parameters_xml.dir/build make -f CMakeFiles/airframes_xml.dir/build.make CMakeFiles/airframes_xml.dir/build make[3]: Nothing to be done for CMakeFiles/airframes_xml.dir/build'.
[  2%] Built target airframes_xml
make[3]: Nothing to be done for src/modules/systemlib/param/CMakeFiles/parameters_xml.dir/build'. [  2%] Built target parameters_xml make[4]: warning: jobserver unavailable: using -j1.  Add +' to parent make rule.
"/C/Program Files/CMake/bin/cmake.exe" -H/D/px4/Fimrware20171112 -B/D/px4/Fimrware20171112/build/px4io-v2_default --check-build-system CMakeFiles/Makefile.cmake 0
"/C/Program Files/CMake/bin/cmake.exe" -E cmake_progress_start /D/px4/Fimrware20171112/build/px4io-v2_default/CMakeFiles /D/px4/Fimrware20171112/build/px4io-v2_default/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make -f msg/CMakeFiles/uorb_headers.dir/build.make msg/CMakeFiles/uorb_headers.dir/depend
make -f NuttX/CMakeFiles/nuttx_configure.dir/build.make NuttX/CMakeFiles/nuttx_configure.dir/depend
"/C/Program Files/CMake/bin/cmake.exe" -E cmake_depends "MSYS Makefiles" /D/px4/Fimrware20171112 /D/px4/Fimrware20171112/msg /D/px4/Fimrware20171112/build/px4io-v2_default /D/px4/Fimrware20171112/build/px4io-v2_default/msg /D/px4/Fimrware20171112/build/px4io-v2_default/msg/CMakeFiles/uorb_headers.dir/DependInfo.cmake --color=
make -f CMakeFiles/git_nuttx.dir/build.make CMakeFiles/git_nuttx.dir/depend
make -f src/modules/systemlib/mixer/CMakeFiles/mixer_gen.dir/build.make src/modules/systemlib/mixer/CMakeFiles/mixer_gen.dir/depend
"/C/Program Files/CMake/bin/cmake.exe" -E cmake_depends "MSYS Makefiles" /D/px4/Fimrware20171112 /D/px4/Fimrware20171112 /D/px4/Fimrware20171112/build/px4io-v2_default /D/px4/Fimrware20171112/build/px4io-v2_default /D/px4/Fimrware20171112/build/px4io-v2_default/CMakeFiles/git_nuttx.dir/DependInfo.cmake --color=
"/C/Program Files/CMake/bin/cmake.exe" -E cmake_depends "MSYS Makefiles" /D/px4/Fimrware20171112 /D/px4/Fimrware20171112/src/modules/systemlib/mixer /D/px4/Fimrware20171112/build/px4io-v2_default /D/px4/Fimrware20171112/build/px4io-v2_default/src/modules/systemlib/mixer /D/px4/Fimrware20171112/build/px4io-v2_default/src/modules/systemlib/mixer/CMakeFiles/mixer_gen.dir/DependInfo.cmake --color=
make -f msg/CMakeFiles/uorb_headers.dir/build.make msg/CMakeFiles/uorb_headers.dir/build
make -f CMakeFiles/git_nuttx.dir/build.make CMakeFiles/git_nuttx.dir/build
make -f src/modules/systemlib/mixer/CMakeFiles/mixer_gen.dir/build.make src/modules/systemlib/mixer/CMakeFiles/mixer_gen.dir/build
make[7]: Nothing to be done for CMakeFiles/git_nuttx.dir/build'. make[7]: Nothing to be done for src/modules/systemlib/mixer/CMakeFiles/mixer_gen.dir/build'.
make[7]: Nothing to be done for msg/CMakeFiles/uorb_headers.dir/build'. [  1%] Built target git_nuttx make -f NuttX/CMakeFiles/nuttx_builtins.dir/build.make NuttX/CMakeFiles/nuttx_builtins.dir/depend [  2%] Built target mixer_gen [  2%] Built target uorb_headers "/C/Program Files/CMake/bin/cmake.exe" -E cmake_depends "MSYS Makefiles" /D/px4/Fimrware20171112 /D/px4/Fimrware20171112/platforms/nuttx/NuttX /D/px4/Fimrware20171112/build/px4io-v2_default /D/px4/Fimrware20171112/build/px4io-v2_default/NuttX /D/px4/Fimrware20171112/build/px4io-v2_default/NuttX/CMakeFiles/nuttx_builtins.dir/DependInfo.cmake --color= make -f NuttX/CMakeFiles/nuttx_builtins.dir/build.make NuttX/CMakeFiles/nuttx_builtins.dir/build make[7]: Nothing to be done for NuttX/CMakeFiles/nuttx_builtins.dir/build'.
[  2%] Built target nuttx_builtins
"/C/Program Files/CMake/bin/cmake.exe" -E cmake_depends "MSYS Makefiles" /D/px4/Fimrware20171112 /D/px4/Fimrware20171112/platforms/nuttx/NuttX /D/px4/Fimrware20171112/build/px4io-v2_default /D/px4/Fimrware20171112/build/px4io-v2_default/NuttX /D/px4/Fimrware20171112/build/px4io-v2_default/NuttX/CMakeFiles/nuttx_configure.dir/DependInfo.cmake --color=
make -f NuttX/CMakeFiles/nuttx_configure.dir/build.make NuttX/CMakeFiles/nuttx_configure.dir/build
[  2%] Copying NuttX\apps to D;C:\px4\toolchain\msys\1.0\px4\Fimrware20171112\build\px4fmu-v2_default\NuttX
[  3%] Copying NuttX\apps to D;C:\px4\toolchain\msys\1.0\px4\Fimrware20171112\build\px4io-v2_default\NuttX
cd /D/px4/Fimrware20171112/build/px4fmu-v2_default/NuttX && rsync -rp --inplace D:/px4/Fimrware20171112/platforms/nuttx/NuttX/apps D:/px4/Fimrware20171112/build/px4fmu-v2_default/NuttX
[  2%] Copying NuttX\nuttx to D;C:\px4\toolchain\msys\1.0\px4\Fimrware20171112\build\px4fmu-v2_default\NuttX
cd /D/px4/Fimrware20171112/build/px4fmu-v2_default/NuttX && rsync -rp --inplace D:/px4/Fimrware20171112/platforms/nuttx/NuttX/nuttx D:/px4/Fimrware20171112/build/px4fmu-v2_default/NuttX
The source and destination cannot both be remote.
rsync error: syntax or usage error (code 1) at /usr/src/rsync/rsync-3.0.8/main.c(1148) [Receiver=3.0.8]
make[3]: *** [NuttX/apps_copy.stamp] Error 1
make[3]: *** Waiting for unfinished jobs....
The source and destination cannot both be remote.
rsync error: syntax or usage error (code 1) at /usr/src/rsync/rsync-3.0.8/main.c(1148) [Receiver=3.0.8]
make[3]: *** [NuttX/nuttx_copy.stamp] Error 1
make[2]: *** [NuttX/CMakeFiles/nuttx_configure.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
cd /D/px4/Fimrware20171112/build/px4io-v2_default/NuttX && rsync -rp --inplace D:/px4/Fimrware20171112/platforms/nuttx/NuttX/apps D:/px4/Fimrware20171112/build/px4io-v2_default/NuttX
[  3%] Copying NuttX\nuttx to D;C:\px4\toolchain\msys\1.0\px4\Fimrware20171112\build\px4io-v2_default\NuttX
The source and destination cannot both be remote.
rsync error: syntax or usage error (code 1) at /usr/src/rsync/rsync-3.0.8/main.c(1148) [Receiver=3.0.8]
cd /D/px4/Fimrware20171112/build/px4io-v2_default/NuttX && rsync -rp --inplace D:/px4/Fimrware20171112/platforms/nuttx/NuttX/nuttx D:/px4/Fimrware20171112/build/px4io-v2_default/NuttX
make[7]: *** [NuttX/apps_copy.stamp] Error 1
make[7]: *** Waiting for unfinished jobs....
The source and destination cannot both be remote.
rsync error: syntax or usage error (code 1) at /usr/src/rsync/rsync-3.0.8/main.c(1148) [Receiver=3.0.8]
make[7]: *** [NuttX/nuttx_copy.stamp] Error 1
make[6]: *** [NuttX/CMakeFiles/nuttx_configure.dir/all] Error 2
make[5]: *** [all] Error 2
make[4]: *** [px4io-v2_default] Error 2
make[3]: *** [../px4io-v2_default/nuttx_px4io-v2_default.elf] Error 2
make[2]: *** [src/drivers/px4io/CMakeFiles/copy_px4io_bin.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [px4fmu-v2_default] Error 2

It must be the same problem as issue #6332, https://github.com/PX4/Firmware/issues/6332
But the file ' /cmake/nuttx/px4_impl_nuttx.cmake' has been changed, the original answer is not applied.

It looks like the issue is with the paths being used by rsync. They need to be cygwin paths, or updated to be relative to get around the problem.

Could you try this PR https://github.com/PX4/Firmware/pull/8284?

I have try the method proposed in #8284, and the problem is still here, the output path:
D;C:\px4\toolchain\msys\1.0\px4\Fimrware20171112\build\px4io-v2_default\NuttX
I think rsync cmd process the var ${CMAKE_CURRENT_SOURCE_DIR} and ${CMAKE_CURRENT_BINARY_DIR}, then make them changed.
I downloaded the source code of rsync, and have no idea currently.

@zjjyyang thanks for testing.
The relatively easy fix will be in PX4 cmake and not rsync itself. We just need to figure out how to get relative paths correctly.

The steps is:

make clean
make distclean
update /platforms/nuttx/NuttX/CMakeLists.txt as:
...

copy nuttx to build directory
file(RELATIVE_PATH CP_SRC ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/nuttx)
add_custom_command(OUTPUT nuttx_copy.stamp
COMMAND ${cp_cmd} ${cp_opts} ${CMAKE_CURRENT_SOURCE_DIR}/nuttx ${CMAKE_CURRENT_BINARY_DIR}
COMMAND ${cp_cmd} ${cp_opts} ${CP_SRC} .
COMMAND cmake -E touch nuttx_copy.stamp
DEPENDS ${copy_nuttx_files}
COMMENT "Copying NuttX/nuttx to ${CMAKE_CURRENT_BINARY_DIR}"
)
set(NUTTX_DIR ${CMAKE_CURRENT_BINARY_DIR}/nuttx)
set(NUTTX_CONFIG_DIR ${PX4_SOURCE_DIR}/nuttx-configs)
copy apps to build directory
file(RELATIVE_PATH CP_SRC ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/apps)
add_custom_command(OUTPUT apps_copy.stamp
COMMAND ${cp_cmd} ${cp_opts} ${CMAKE_CURRENT_SOURCE_DIR}/apps ${CMAKE_CURRENT_BINARY_DIR}
COMMAND ${cp_cmd} ${cp_opts} ${CMAKE_CURRENT_SOURCE_DIR}/apps .
COMMAND cmake -E touch apps_copy.stamp
DEPENDS ${copy_apps_files}
COMMENT "Copying NuttX/apps to ${CMAKE_CURRENT_BINARY_DIR}"
)
...
4. make px4fmu-v2_default
5. the output is:
...
-- Configuring done
[  2%] Built target git_ecl
Scanning dependencies of target mixer_gen
[  2%] Generating mixer_multirotor.generated.h
[  2%] Built target mixer_gen
Scanning dependencies of target airframes_xml
[  2%] Creating airframes.xml
[  2%] Built target airframes_xml
Scanning dependencies of target parameters_xml
[  2%] Generating parameters.xml
[  2%] Built target parameters_xml
[  2%] Built target uorb_headers
-- Generating done
-- Build files have been written to: D:/px4/Fimrware20171112/build/px4io-v2_default
Scanning dependencies of target uorb_headers
Scanning dependencies of target mixer_gen
Scanning dependencies of target git_nuttx
[  1%] Generating mixer_multirotor.generated.h
[  1%] Generating uORB topic headers
[  2%] git submodule platforms/nuttx/NuttX/nuttx
[  2%] Built target mixer_gen
Scanning dependencies of target nuttx_configure
Scanning dependencies of target nuttx_builtins
[  2%] Built target nuttx_builtins
[  3%] Copying NuttX\apps to D;C:\px4\toolchain\msys\1.0\px4\Fimrware20171112\build\px4io-v2_default\NuttX
[  2%] Copying NuttX\nuttx to D;C:\px4\toolchain\msys\1.0\px4\Fimrware20171112\build\px4fmu-v2_default\NuttX
[  3%] Built target git_nuttx
ssh: Could not resolve hostname d: Name or service not known
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [Receiver=3.1.2]
make[3]: *** [NuttX/apps_copy.stamp] Error 12
make[3]: *** Waiting for unfinished jobs....
[  3%] Built target uorb_headers
[  3%] Copying NuttX\nuttx to D;C:\px4\toolchain\msys\1.0\px4\Fimrware20171112\build\px4io-v2_default\NuttX
make[2]: *** [NuttX/CMakeFiles/nuttx_configure.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
ssh: Could not resolve hostname d: Name or service not known
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [Receiver=3.1.2]
make[7]: *** [NuttX/apps_copy.stamp] Error 12
make[7]: *** Waiting for unfinished jobs....
the output:
[  3%] Copying NuttX\apps to D;C:\px4\toolchain\msys\1.0\px4\Fimrware20171112\build\px4io-v2_default\NuttX
[  2%] Copying NuttX\nuttx to D;C:\px4\toolchain\msys\1.0\px4\Fimrware20171112\build\px4fmu-v2_default\NuttX
should be from the "COMMENT "Copying NuttX/nuttx to ${CMAKE_CURRENT_BINARY_DIR}""
and "COMMENT "Copying NuttX/apps to ${CMAKE_CURRENT_BINARY_DIR}""
which means rsync can modify the input path?

@zjjyyang
Because NuttX doesn't have an out of source build we copy the entire thing to each build directory. Due to rsync on windows and path issues we need to be careful and only pass relative paths to the rsync command.
It should ultimately be something like...
rsync ../../NuttX/nuttx .

Are you available on slack (http://slack.px4.io)? We might be able to debug and fix this quickly if we can chat in realtime.

@QingZe0101 As you are working in some kind of Windws based environment I would be really interested in your experience with that and share with you what I tried in the past already. I have the same name on slack for more realtime communication.

@zjjyyang could you please try this PR? https://github.com/PX4/Firmware/pull/8397

authors: MaEtUgR QingZe0101 dagar zjjyyang


text:
vtol_att_control: respect min pwm values

For VTOL the idle pwm for the multicopter motors can be specified. Since the code loops over several outputs and not necessarily all of them are motors we should make sure not to change their min pwm.
This was required for #11850

@RomanBapst SITL build fail

@dagar This build failure suggests we have a new app / offender that is not initializing their params on boot:
[ INFO] [1555358949.827682090, 3.396000000]: VER: 1.1: Capabilities         0x000000000000e4ef
[ INFO] [1555358949.827727064, 3.396000000]: VER: 1.1: Flight software:     01090080 (d127eebfdf000000)
[ INFO] [1555358949.827756515, 3.396000000]: VER: 1.1: Middleware software: 01090080 (d127eebfdf000000)
[ INFO] [1555358949.827778523, 3.396000000]: VER: 1.1: OS software:         040400ff (0000000000000000)
[ INFO] [1555358949.827803205, 3.396000000]: VER: 1.1: Board hardware:      00000001
[ INFO] [1555358949.827830531, 3.396000000]: VER: 1.1: VID/PID:             0000:0000
[ INFO] [1555358949.827851340, 3.396000000]: VER: 1.1: UID:                 4954414c44494e4f
[ WARN] [1555358960.708969824, 13.984000000]: PR: request param #79 timeout, retries left 2, and 1 params still missing
[ WARN] [1555358960.709236594, 13.984000000]: PR: Param COM_ARM_AUTH (78/719): <value><i4>256010</i4></value> different index: 79/720
[ INFO] [1555358964.122528916, 17.396000000]: WP: mission received
[ INFO] [1555358964.481209240, 17.752000000]: WP: mission sended
[ WARN] [1555358965.486582409, 18.760000000]: CMD: Unexpected command 176, result 0
[ INFO] [1555358965.530745377, 18.804000000]: FCU: Takeoff to 15.0 meters above home.
[ INFO] [1555358970.686136682, 23.764000000]: FCU: ARMED by Arm/Disarm component command
[ INFO] [1555358970.770237613, 23.848000000]: FCU: Takeoff detected
... logging to /tmp/jenkins/workspace/isc_Firmware-SITL_tests_PR-11855/.ros/ros_logs/rostest-1f57ad850c17-74.log
[ROSUNIT] Outputting test results to /tmp/jenkins/workspace/isc_Firmware-SITL_tests_PR-11855/.ros/test_results/px4/rostest-test_mavros_posix_test_mission.xml
[Testcase: testVTOL_mission_1] ... ok

Which explains why the index changed.

@LorenzMeier yes, but not new. https://github.com/PX4/Firmware/issues/11384

I've lost a lot of the context here. Why do we need to change the PWM minimum at all? Disabling an actuator is done by setting its maximum to disarmed. Where does the minimum come in?

Jenkins test this please.

@dagar Longer discussion, but necessary.

source: gharchive/pull-request

authors: LorenzMeier RomanBapst dagar


text:
Fix shmem locking

This PR is to track the changes to resolve #3956.
Currently it should run even though the locking itself still fails.

As soon as travis is happy, I recommend to merge this.

Thanks!

Merged, done.

authors: LorenzMeier julianoes


text:
VTOL back transition acceptance radius calculation

Calculate acceptance radius based on groundspeed and duration for back transition in VTOL_LAND to prevent overshoot of landing waypoint.
ref https://github.com/PX4/Firmware/issues/5626 https://github.com/PX4/Firmware/issues/5681
/cc @AndreasAntener @tumbili

Rebased, i will try to get a flight window soon

Architecturally I don't like that navigator needs to have intimate knowledge of a specific vehicle. Also, mission item was optimized and squashed just to save space and now we have an extra field that only applies for a tiny portion of a specific vehicle's mission.
If this solves the problem for now I'll stop complaining, but it really makes me wonder if we could do a lot better with #4845.

Works awesome

Rebased and re-sitl tested.
@AndreasAntener can you review?

Could we get away with setting _mission_item.acceptance_radius = gndspeed * vt_b_trans_dur where the mission item is created?

Wouldnt work. The groundspeed  can change significantly at the point between reading the item and reaching the waypoint.

@LorenzMeier should be ready for merge after pass

@LorenzMeier i re-checked the last mission, it was wind that blew it off course, the math works.
Could you merge this?

authors: dagar sanderux


text:
fixed calculation of magentic table values by using floor instead of int casting

When calculating the min_lat it was incorrectly casting to int which for negativ values will round up rather than round down. This will then result in a lat_scale/lon_scale that is forced to zero as lat/lon is a smaller value than min_lat/min_lon.

Thanks!

@sverling @MaEtUgR actually I would drop this entirely and use floorf from the c math library. Otherwise you'll need to replicate the change PX4 side.

Sounds goot to me. Main reason i did it this way was i wasn't sure if i can just add another library to it. On my branch (not latest PX4 master, so this might not hold true anymore) it would compile correctly on PX4 side as there it is using the correct math libraries and I only had to add the function to compile for standalone ecl compilation

@sverling likely just missing the math.h include ecl side. https://github.com/PX4/ecl/pull/608

authors: LorenzMeier dagar sverling

license_source: bigquery


text:
Include plot for exploratory analysis

Add exploratory plot for variables we included in the previous model

Plot added in pull request #4

license: MIT


text:
Items counter.

In this branch, I created a function to count the items available on the homepage, then I render the quantity on the Html.

Good job creating an intuitive and pure function
Is ready for merge, congratulations!

authors: PabloEGonz enmanuelbayen

repo: PabloEGonz/JavaScriptCapstone-


text:
Update 04-testing.md

phpunit.xml schema updated;

Hi @hans-thomas
Could you please explain why this change is necessary?

Hi, in the new version of PHPUnit, the schema is updated and when i use the schema on the website, it throws a warning to upgrade the schema. so, i just replaced the new schema with the old one.

Hi Hans I will look at this in the upcoming week :)

authors: Jhnbrn90 LarsWiegers hans-thomas


text:
Chapter 7 - Section "Create the client" - Interface implementation mismatch Nullable vs. Not nullable

In the API definition the Categories API si defined as
public async Task<List<Category>> GetCategoriesAsync()
NOTICE: Result not nullable
But in the implementation in this WebBlazorWeb.Client is implemented
public async Task<List<Category>?> GetCategoriesAsync()
NOTICE: Result nullable

It should be non nullable, a good practice is to never return null when returning a collection.
Is this in the book as well, or only in the source code?

For the moment, only in the code.
But is confusing, because in the book is declared as not nullable public async Task<List<Category>> GetCategoriesAsync()but later you process null returning values Items = (await _api.GetCategoriesAsync()) ?? new();

authors: ClimberBear EngstromJimmy


text:
打开样例项目报错

终端错误信息如下：

Traceback (most recent call last):
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/starlette/_exception_handler.py", line 44, in wrapped_app
await app(scope, receive, sender)
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/connexion/middleware/swagger_ui.py", line 220, in call
await self.router(scope, receive, send)
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/starlette/routing.py", line 746, in call
await route.handle(scope, receive, send)
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/starlette/routing.py", line 459, in handle
await self.app(scope, receive, send)
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/starlette/routing.py", line 775, in call
await self.default(scope, receive, send)
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/connexion/middleware/swagger_ui.py", line 233, in default_fn
await self.app(original_scope, receive, send)
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/connexion/middleware/routing.py", line 153, in call
await self.router(scope, receive, send)
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/starlette/routing.py", line 746, in call
await route.handle(scope, receive, send)
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/starlette/routing.py", line 459, in handle
await self.app(scope, receive, send)
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/starlette/routing.py", line 746, in call
await route.handle(scope, receive, send)
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/starlette/routing.py", line 288, in handle
await self.app(scope, receive, send)
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/connexion/middleware/routing.py", line 47, in call
await self.next_app(original_scope, receive, send)
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/connexion/middleware/abstract.py", line 268, in call
return await operation(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/connexion/middleware/security.py", line 95, in call
await self.next_app(scope, receive, send)
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/connexion/middleware/abstract.py", line 268, in call
return await operation(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/connexion/middleware/request_validation.py", line 142, in call
await self.next_app(scope, receive, send)
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/connexion/middleware/abstract.py", line 268, in call
return await operation(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/connexion/middleware/lifespan.py", line 26, in call
await self.next_app(scope, receive, send)
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/connexion/middleware/abstract.py", line 268, in call
return await operation(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/connexion/middleware/context.py", line 25, in call
await self.next_app(scope, receive, send)
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/connexion/apps/flask.py", line 151, in call
return await self.asgi_app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/a2wsgi/wsgi.py", line 157, in call
return await responder(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/a2wsgi/wsgi.py", line 191, in call
await self.loop.run_in_executor(
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/a2wsgi/wsgi.py", line 244, in wsgi
for chunk in self.app(environ, start_response):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/flask/app.py", line 2531, in wsgi_app
response = self.handle_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/flask_cors/extension.py", line 176, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
^^^^^^^^^^^^^^^^^^
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/flask/app.py", line 2528, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/flask/app.py", line 1825, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/flask_cors/extension.py", line 176, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
^^^^^^^^^^^^^^^^^^
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/flask/app.py", line 1823, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/flask/app.py", line 1799, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/connexion/apps/flask.py", line 68, in call
return self.fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/connexion/decorators/main.py", line 134, in wrapper
return decorated_function(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/connexion/decorators/response.py", line 171, in wrapper
handler_response = function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/connexion/decorators/parameter.py", line 87, in wrapper
return function(**kwargs)
^^^^^^^^^^^^^^^^^^
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/connexion/decorators/main.py", line 123, in wrapper
return function(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/goning/AI-2023/train-tool/PaddleLabel/paddlelabel/api/controller/sample.py", line 167, in load_sample
task_category_id = connexion.request.json.get("task_category_id")
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'function' object has no attribute 'get'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/uvicorn/protocols/http/httptools_impl.py", line 419, in run_asgi
result = await app(  # type: ignore[func-returns-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/connexion/middleware/main.py", line 483, in call
await self.app(scope, receive, send)
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/connexion/middleware/exceptions.py", line 101, in call
await super().call(scope, receive, send)
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/starlette/_exception_handler.py", line 63, in wrapped_app
response = await handler(conn, exc)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 2106, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "/Users/goning/anaconda3/envs/paddlelabel/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 833, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: backend_error() takes 1 positional argument but 2 were given
INFO:     127.0.0.1:51587 - "POST /samples HTTP/1.1" 500 Internal Server Error

repo: PaddleCV-SIG/PaddleLabel


text:
'slice_from_file' in 'data_util/audio.py'

The default behavior for the method is to get AudioSegment from begin to end if 'start' or 'end' is not provided.
https://github.com/PaddlePaddle/DeepSpeech/blob/4bf526e78d8531551fce1f4d8bfb119e297812d7/data_utils/audio.py#L99
On line 99, 'end = 0. if end is None else end' should be 'end = duration if end is None else end'.
Please let me know if this is what was intended or I missed something.
Thanks.

Yes, I think your right, this is a bug. Thanks

fixed.

repo: PaddlePaddle/DeepSpeech


text:
Yolov5seg预处理固定为640问题

温馨提示：根据社区不完全统计，按照模板提问，可以加快回复和解决问题的速度

环境

【FastDeploy版本】： 说明具体的版本，如fastdeploy-gpu-python=1.0.7

【编译命令】

【系统平台】:  Windows x64(Windows10)

【硬件】： 说明具体硬件型号，如 Nvidia GPU 3060， CUDA 11.2 CUDNN 8.2

【编译语言】： python

【性能问题】
因项目需求需要识别细长的小目标，训练了1280*1280的Yolov5seg模型才能保证分割效果良好，但使用fastdeploy yolov5seg预测接口报错提示输入图像尺寸和模型input不一致。
查看fastdeploy yolov5seg 预处理部分发现resize尺寸是写死的640。
因为使用paddle套件训练的模型都会读取infer_cfg.yml来确认预处理的参数，所以yolov5seg能否改成根据模型input尺寸来决定预处理resize尺寸。
@wjj19950828 感谢大佬

https://github.com/PaddlePaddle/FastDeploy/blob/develop/python/fastdeploy/vision/detection/contrib/yolov5seg.py#L72 参照这里的api
model = YOLOv5Seg()
model.preprocessor.size = [1024, 1024]，即可修改resize后的大小为1024x1024

可以了 ，非常感谢

C++我这样写的有问题吗？运行没有起作用

@panp4n  问题是否解决 C++怎么自定义模型尺寸
@jiangjiajun  C++怎么自定义模型尺寸

authors: jiangjiajun monkeycc panp4n

repo: PaddlePaddle/FastDeploy


text:
smoke测试报错

定位到smoke_coder.py

矩阵求逆报错

@sumenpuyuan 你的执行命令是怎么样的呢？以及对应的paddle环境麻烦提供下

命令：python tools/evaluate.py --config configs/smoke/smoke_dla34_no_dcn_kitti.yml --num_workers 2 --batch_size 1 --model checkpoints/model.pdparams
环境：paddle 2.3.1，python 3.7，cuda 10.2，cudnn 7.6

@sumenpuyuan 麻烦执行下下面的代码，打印下更详细的环境信息发下
import paddle3d.env as paddle3d_env
print(paddle3d_env.get_env_info())

platform:
Linux-4.15.0-142-generic-x86_64-with-debian-stretch-sid
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
Python - 3.7.0 (default, Oct  9 2018, 10:31:47)  [GCC 7.3.0]
Science Toolkits:
cv2 - 4.6.0
numpy - 1.21.6
numba - 0.56.0
pandas - 1.1.5
pillow - 9.2.0
skimage - 0.19.3
PaddlePaddle:
paddle(gpu) - 2.3.1
paddle3d - 0.5.0
paddleseg - 2.6.0
FLAGS_cudnn_deterministic - Not set.
FLAGS_cudnn_exhaustive_search - Not set.
CUDA:
cudnn - 7603
nvcc - Cuda compilation tools, release 10.2, V10.2.89
GPUs:
GPU 0: TITAN Xp

@sumenpuyuan 感谢反馈，我们使用了多个类似的环境（cudnn 7.6.5 + cuda10.2 + paddle2.3,1），均无法复现这个问题。
从报错日志来看，该问题并不是paddle框架自身抛出的异常（），一般这种问题都是环境配置问题，例如cudnn和cuda版本不匹配，或者安装的paddle版本和本地cuda版本不匹配导致，建议再验证下环境是否有问题，如果还是存在问题的话，建议使用docker来避免环境问题，推荐飞桨官方镜像：registry.baidubce.com/paddlepaddle/paddle:2.3.0-gpu-cuda10.2-cudnn7

authors: nepeplwu sumenpuyuan


text:
一import paddle 就打印一堆信息

如图，也不影响使用，但很奇怪期望可以被解决
In [1]: import paddle
WARNING: Logging before InitGoogleLogging() is written to STDERR
I0115 16:42:38.097568 1452196 dynamic_loader.cc:194] Set paddle lib path : /home/zhangrufeng/anaconda3/envs/LuckyPaddle/lib/python3.8/site-packages/paddle/libs
I0115 16:42:38.219532 1452196 init.cc:96] Before Parse: argc is 2, Init commandline: dummy --tryfromenv=use_mkldnn,enable_exit_when_partial_worker,einsum_opt,eager_delete_tensor_gb,graph_load_in_parallel,allocator_strategy,enable_all2all_use_fp16,cublaslt_exhaustive_search_times,gpu_allocator_retry_time,use_cuda_managed_memory,check_kernel_launch,static_executor_perfstat_filepath,cudnn_exhaustive_search,gpu_memory_limit_mb,add_dependency_for_communication_op,new_executor_use_cuda_graph,reader_queue_speed_test_mode,gpugraph_dedup_pull_push_mode,gpugraph_enable_segment_merge_grads,convert_all_blocks,low_precision_op_list,initial_cpu_memory_in_mb,eager_delete_scope,gpugraph_load_node_list_into_hbm,check_nan_inf,use_shm_cache,tracer_mkldnn_ops_off,embedding_deterministic,free_idle_chunk,gpugraph_enable_gpu_direct_access,gemm_use_half_precision_compute_type,cudnn_batchnorm_spatial_persistent,dygraph_debug,host_trace_level,gpugraph_storage_mode,fuse_parameter_groups_size,max_inplace_grad_add,use_autotune,communicator_max_merge_var_num,gpugraph_enable_hbm_table_collision_stat,conv_workspace_size_limit,new_executor_use_inplace,local_exe_sub_scope_limit,fuse_parameter_memory_size,selected_gpus,rpc_send_thread_num,tensor_operants_mode,graph_metapath_split_opt,init_allocated_mem,dist_threadpool_size,new_executor_static_build,graph_get_neighbor_id,enable_cublas_tensor_op_math,enable_gpu_memory_usage_log,multiple_of_cupti_buffer_size,reallocate_gpu_memory_in_mb,use_stream_safe_cuda_allocator,rocksdb_path,use_system_allocator,jit_engine_type,gpugraph_debug_gpu_memory,get_host_by_name_time,enable_opt_get_features,use_fast_math,gpugraph_hbm_table_load_factor,gpugraph_sparse_table_storage_mode,trt_ibuilder_cache,run_kp_kernel,executor_log_deps_every_microseconds,communicator_is_sgd_optimizer,enable_auto_detect_gpu_topo,tracer_profile_fname,search_cache_max_number,gpugraph_merge_grads_segment_size,paddle_num_threads,conv2d_disable_cudnn,fraction_of_cuda_pinned_memory_to_use,new_executor_sequential_run,allreduce_record_one_event,communicator_send_queue_size,check_nan_inf_level,enable_unused_var_check,enable_rpc_profiler,enable_auto_rdma_trans,fleet_executor_with_standalone,npu_storage_format,cpu_deterministic,free_when_no_cache_hit,fraction_of_cpu_memory_to_use,initial_gpu_memory_in_mb,cudnn_deterministic,apply_pass_to_program,sort_sum_gradient,use_pinned_memory,call_stack_level,cudnn_exhaustive_search_times,new_executor_use_local_scope,use_virtual_memory_auto_growth,pe_profile_fname,enable_tracker_all2all,nccl_blocking_wait,enable_sparse_inner_gather,new_executor_serial_run,memory_fraction_of_eager_deletion,enable_api_kernel_fallback,enable_gpu_memory_usage_log_mb,set_to_1d,print_sub_graph_dir,prim_enabled,inner_op_parallelism,tracer_mkldnn_ops_on,cache_inference_while_scope,sync_nccl_allreduce,new_executor_log_memory_stats,fast_eager_deletion_mode,gpugraph_slot_feasign_max_num,auto_growth_chunk_size_in_mb,fraction_of_gpu_memory_to_use,benchmark
I0115 16:42:38.219650 1452196 init.cc:104] After Parse: argc is 1

您好，看起来应该是paddle框架环境配置相关的问题，建议在paddle框架repo中提出issue
https://github.com/PaddlePaddle/Paddle/issues


text:
Restructuring training visualization and adding support for Weights & Biases Logger

This PR redesigns the logging system in GAN without changing any of the console logging. The proposed change is to have a BaseLogger class from which new loggers can inherit. This includes the VisualDL logger, the new Weights & Biases Logger and any new custom loggers that might be added later.
Using the W&B Logger would be really easy for users. The only requirement is to set enable_wandb:True in the config.yml file. To add any other wandb related arguments like project name, entity name and so on, the users can add the wandb key.
For example:

This leads to all the training metrics being logged to W&B.
The dashboard:

The models at every model saving step and evaluation step are also logged to the W&B run with the appropriate tags and metadata.

The dashboard is available here

@LielinJiang @lijianshe02 I was wondering if it was possible to get some feedback

@LielinJiang @LielinJiang I would love some feedback on this whenever you have the time

Hi @LielinJiang @lijianshe02 It would be awesome if I could get this reviewed whenever possible

Very glad to receive your pull request, we will review it as soon as possible

Thx for your contribution. Could you add the function to PaddleMIX models https://github.com/PaddlePaddle/PaddleMIX/tree/develop

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

authors: CLAassistant LielinJiang jerrywgz manangoel99

repo: PaddlePaddle/PaddleGAN


text:
请提出你的问题
按照WINDOWS环境下搭建端到端语义检索系统：
运行python examples/semantic-search/semantic_search_example.py --device gpu时报错
Traceback (most recent call last):
File "examples/semantic-search/semantic_search_example.py", line 206, in
semantic_search_tutorial()
File "examples/semantic-search/semantic_search_example.py", line 183, in semantic_search_tutorial
retriever = get_faiss_retriever(use_gpu)
File "examples/semantic-search/semantic_search_example.py", line 69, in get_faiss_retriever
retriever = DensePassageRetriever(
File "C:\Users\anaconda3\envs\paddle\lib\site-packages\pipelines\nodes\retriever\dense.py", line 149, in init
self.ernie_dual_encoder = ErnieDualEncoder(
File "C:\Users\anaconda3\envs\paddle\lib\site-packages\paddlenlp\transformers\semantic_search\modeling.py", line 94, in init
self.query_ernie = ErnieEncoder.from_pretrained(query_model_name_or_path, output_emb_size=output_emb_size)
File "C:\Users\anaconda3\envs\paddle\lib\site-packages\paddlenlp\transformers\model_utils.py", line 435, in from_pretrained
return cls.from_pretrained_v2(pretrained_model_name_or_path, from_hf_hub=from_hf_hub, *args, **kwargs)
File "C:\Users\anaconda3\envs\paddle\lib\site-packages\paddlenlp\transformers\model_utils.py", line 1254, in from_pretrained_v2
model = cls(config, *init_args, **model_kwargs)
File "C:\Users\anaconda3\envs\paddle\lib\site-packages\paddlenlp\transformers\utils.py", line 170, in impl
init_func(self, *args, **kwargs)
File "C:\Users\anaconda3\envs\paddle\lib\site-packages\paddlenlp\transformers\semantic_search\modeling.py", line 26, in init
super(ErnieEncoder, self).init()
File "C:\Users\anaconda3\envs\paddle\lib\site-packages\paddlenlp\transformers\utils.py", line 170, in impl
init_func(self, *args, **kwargs)
File "C:\Users\anaconda3\envs\paddle\lib\site-packages\paddlenlp\transformers\utils.py", line 170, in impl
init_func(self, *args, **kwargs)
File "C:\Users\anaconda3\envs\paddle\lib\site-packages\paddlenlp\transformers\model_utils.py", line 261, in init
raise ValueError(
ValueError: PretrainedConfig instance not found in the arguments, you can set it as args or kwargs with config field
运行环境：
windows10
python3.8
cuda10.2
paddlenlp2.4.8

您好，PretrainedConfig进行了较大的升级，目前可以先安装低版本的paddlenlp

您好，PretrainedConfig进行了较大的升级，目前可以先安装低版本的paddlenlp

您好，我将paddlenlp降至2.4.5可以运行通过刚刚命令。但是当我运行到启动webUI环节时，
运行python -m streamlit run ui/webapp_semantic_search.py --server.port 8502
服务报错：
File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\streamlit\scriptrunner\script_runner.py", line 475, in run_script
exec(code, module.dict)
File "C:\PaddleNLP-develop\pipelines\ui\webapp_semantic_search.py", line 28, in
from utils import pipelines_is_ready, semantic_search, send_feedback, upload_doc, pipelines_version, get_backlink
File "ui\utils.py", line 25, in
from pipelines.document_stores import ElasticsearchDocumentStore, MilvusDocumentStore
File "C:\PaddleNLP-develop\pipelines\pipelines_init.py", line 39, in
from pipelines import pipelines, utils
File "C:\PaddleNLP-develop\pipelines\pipelines\pipelines_init_.py", line 15, in
from pipelines.pipelines.base import Pipeline, RootNode
File "C:\PaddleNLP-develop\pipelines\pipelines\pipelines\base.py", line 55, in
from pipelines.nodes.base import BaseComponent
File "C:\PaddleNLP-develop\pipelines\pipelines\nodes_init_.py", line 39, in
from pipelines.nodes.sentiment_analysis import (
File "C:\PaddleNLP-develop\pipelines\pipelines\nodes\sentiment_analysis_init_.py", line 17, in
from pipelines.nodes.sentiment_analysis.senta_visualization import SentaVisualization
File "C:\PaddleNLP-develop\pipelines\pipelines\nodes\sentiment_analysis\senta_visualization.py", line 23, in
import wordcloud
ModuleNotFoundError: No module named 'wordcloud'
请问此依赖问题如何解决？
我当前环境如下：
paddle-pipelines 0.4.0
paddle2onnx 1.0.5
paddlefsl 1.1.0
paddleocr 2.6.1.2
paddlepaddle 2.4.1
感谢您的帮助

您好，PretrainedConfig进行了较大的升级，目前可以先安装低版本的paddlenlp

我在使用索引服务阶段遇到了错误。首先在将文档写入ANN检索库时，
运行python utils/offline_ann.py --index_name dureader_robust_query_encoder --doc_dir data/dureader_dev
得到了
INFO - pipelines.utils.logger -  Logged parameters:
{'processor': 'TextSimilarityProcessor', 'tokenizer': 'NoneType', 'max_seq_len': '0', 'dev_split': '0.1'}
INFO - pipelines.document_stores.elasticsearch -  Updating embeddings for all 1398 docs ...
Updating embeddings: 10000 Docs [02:06, 78.77 Docs/s]
结果，但是当进入前端进行检索时好像检索库中没有内容。
RestAPI端报错：
query query='衡量酒水的价格的因素有哪些?' params={'filters': {}, 'Retriever': {'top_k': 30}, 'Ranker': {'top_k': 3}} debug=False
12/28/2022 10:52:51 AM {'info': 'No documents with embeddings.'}
12/28/2022 10:52:51 AM Likely some of your stored documents don't have embeddings. try to run the document store's update_embeddings() method.
INFO:     127.0.0.1:65529 - "POST /query HTTP/1.1" 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 408, in run_asgi
self.scope, self.receive, self.send
File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\fastapi\applications.py", line 270, in call
await super().call(scope, receive, send)
File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\starlette\applications.py", line 124, in call
await self.middleware_stack(scope, receive, send)
File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\starlette\middleware\errors.py", line 184, in call
raise exc
File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\starlette\middleware\errors.py", line 162, in call
await self.app(scope, receive, _send)
File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\starlette\middleware\cors.py", line 84, in call
await self.app(scope, receive, send)
File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call
raise e
File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\starlette\routing.py", line 706, in call
await route.handle(scope, receive, send)
File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\starlette\routing.py", line 276, in handle
await self.app(scope, receive, send)
File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\starlette\routing.py", line 66, in app
response = await func(request)
File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\fastapi\routing.py", line 262, in app
is_coroutine=is_coroutine,
File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\fastapi\routing.py", line 132, in serialize_response
field.validate, response_content, {}, loc=("response",)
File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\starlette\concurrency.py", line 41, in run_in_threadpool
return await anyio.to_thread.run_sync(func, *args)
File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\anyio\to_thread.py", line 32, in run_sync
func, *args, cancellable=cancellable, limiter=limiter
File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
File "pydantic\fields.py", line 884, in pydantic.fields.ModelField.validate
File "pydantic\fields.py", line 1101, in pydantic.fields.ModelField._validate_singleton
File "pydantic\fields.py", line 1148, in pydantic.fields.ModelField._apply_validators
File "pydantic\class_validators.py", line 318, in pydantic.class_validators._generic_validator_basic.lambda13
File "pydantic\main.py", line 711, in pydantic.main.BaseModel.validate
File "pydantic\main.py", line 340, in pydantic.main.BaseModel.init
File "pydantic\main.py", line 1076, in pydantic.main.validate_model
File "pydantic\fields.py", line 895, in pydantic.fields.ModelField.validate
File "pydantic\fields.py", line 928, in pydantic.fields.ModelField._validate_sequence_like
File "pydantic\fields.py", line 1094, in pydantic.fields.ModelField._validate_singleton
File "pydantic\fields.py", line 884, in pydantic.fields.ModelField.validate
File "pydantic\fields.py", line 1101, in pydantic.fields.ModelField._validate_singleton
File "pydantic\fields.py", line 1148, in pydantic.fields.ModelField._apply_validators
File "pydantic\class_validators.py", line 318, in pydantic.class_validators._generic_validator_basic.lambda13
File "pydantic\main.py", line 711, in pydantic.main.BaseModel.validate
File "pydantic\main.py", line 340, in pydantic.main.BaseModel.init
File "pydantic\main.py", line 1076, in pydantic.main.validate_model
File "pydantic\fields.py", line 860, in pydantic.fields.ModelField.validate
pydantic.errors.ConfigError: field "meta" not yet prepared so type is still a ForwardRef, you might need to call DocumentSerialized.update_forward_refs().
请问应该如何解决？再次感谢您的回复

这个怎么复现呢？是按照readme操作引起的错误吗？

您好，PretrainedConfig进行了较大的升级，目前可以先安装低版本的paddlenlp

我在使用索引服务阶段遇到了错误。首先在将文档写入ANN检索库时， 运行python utils/offline_ann.py --index_name dureader_robust_query_encoder --doc_dir data/dureader_dev 得到了 INFO - pipelines.utils.logger - Logged parameters: {'processor': 'TextSimilarityProcessor', 'tokenizer': 'NoneType', 'max_seq_len': '0', 'dev_split': '0.1'} INFO - pipelines.document_stores.elasticsearch - Updating embeddings for all 1398 docs ... Updating embeddings: 10000 Docs [02:06, 78.77 Docs/s] 结果，但是当进入前端进行检索时好像检索库中没有内容。
RestAPI端报错： query query='衡量酒水的价格的因素有哪些?' params={'filters': {}, 'Retriever': {'top_k': 30}, 'Ranker': {'top_k': 3}} debug=False 12/28/2022 10:52:51 AM {'info': 'No documents with embeddings.'} 12/28/2022 10:52:51 AM Likely some of your stored documents don't have embeddings. try to run the document store's update_embeddings() method.
INFO: 127.0.0.1:65529 - "POST /query HTTP/1.1" 500 Internal Server Error ERROR: Exception in ASGI application Traceback (most recent call last): File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 408, in run_asgi self.scope, self.receive, self.send File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call return await self.app(scope, receive, send) File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\fastapi\applications.py", line 270, in call await super().call(scope, receive, send) File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\starlette\applications.py", line 124, in call await self.middleware_stack(scope, receive, send) File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\starlette\middleware\errors.py", line 184, in call raise exc File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\starlette\middleware\errors.py", line 162, in call await self.app(scope, receive, _send) File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\starlette\middleware\cors.py", line 84, in call await self.app(scope, receive, send) File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\starlette\middleware\exceptions.py", line 79, in call raise exc File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\starlette\middleware\exceptions.py", line 68, in call await self.app(scope, receive, sender) File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call raise e File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call await self.app(scope, receive, send) File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\starlette\routing.py", line 706, in call await route.handle(scope, receive, send) File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\starlette\routing.py", line 276, in handle await self.app(scope, receive, send) File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\starlette\routing.py", line 66, in app response = await func(request) File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\fastapi\routing.py", line 262, in app is_coroutine=is_coroutine, File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\fastapi\routing.py", line 132, in serialize_response field.validate, response_content, {}, loc=("response",) File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\starlette\concurrency.py", line 41, in run_in_threadpool return await anyio.to_thread.run_sync(func, *args) File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\anyio\to_thread.py", line 32, in run_sync func, *args, cancellable=cancellable, limiter=limiter File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "C:\Users\anaconda3\envs\paddle_test4\lib\site-packages\anyio_backends_asyncio.py", line 867, in run result = context.run(func, *args) File "pydantic\fields.py", line 884, in pydantic.fields.ModelField.validate File "pydantic\fields.py", line 1101, in pydantic.fields.ModelField._validate_singleton File "pydantic\fields.py", line 1148, in pydantic.fields.ModelField._apply_validators File "pydantic\class_validators.py", line 318, in pydantic.class_validators._generic_validator_basic.lambda13 File "pydantic\main.py", line 711, in pydantic.main.BaseModel.validate File "pydantic\main.py", line 340, in pydantic.main.BaseModel.init File "pydantic\main.py", line 1076, in pydantic.main.validate_model File "pydantic\fields.py", line 895, in pydantic.fields.ModelField.validate File "pydantic\fields.py", line 928, in pydantic.fields.ModelField._validate_sequence_like File "pydantic\fields.py", line 1094, in pydantic.fields.ModelField._validate_singleton File "pydantic\fields.py", line 884, in pydantic.fields.ModelField.validate File "pydantic\fields.py", line 1101, in pydantic.fields.ModelField._validate_singleton File "pydantic\fields.py", line 1148, in pydantic.fields.ModelField._apply_validators File "pydantic\class_validators.py", line 318, in pydantic.class_validators._generic_validator_basic.lambda13 File "pydantic\main.py", line 711, in pydantic.main.BaseModel.validate File "pydantic\main.py", line 340, in pydantic.main.BaseModel.init File "pydantic\main.py", line 1076, in pydantic.main.validate_model File "pydantic\fields.py", line 860, in pydantic.fields.ModelField.validate pydantic.errors.ConfigError: field "meta" not yet prepared so type is still a ForwardRef, you might need to call DocumentSerialized.update_forward_refs(). 请问应该如何解决？再次感谢您的回复

是的，按照windows下的操作我执行完最后一步打开前端报了此错误。
我同样使用M1 MacOS进行搭建，执行到
curl -X POST -k http://localhost:8891/query -H 'Content-Type: application/json' -d '{"query": "衡量酒水的价格的因素有哪些?","params": {"Retriever": {"top_k": 5}, "Ranker":{"top_k": 5}}}'
报了相同的错误。

代码格式化原因，导致顺序进行了调整，您可以按照下面的import顺序：
from typing import Dict, List, Optional, Union, Any
from pydantic import BaseModel, Field, Extra
from pipelines.schema import Answer, Document, Label, Span
from pydantic import BaseConfig
from pydantic.dataclasses import dataclass as pydantic_dataclass

https://github.com/PaddlePaddle/PaddleNLP/blob/45c2269a43ae7f128e4ef01e8f3fb98243f981ac/pipelines/rest_api/schema.py#L18

@yunshifengyu 代码格式化原因，导致顺序进行了调整，您可以按照下面的import顺序：
from typing import Dict, List, Optional, Union, Any
from pydantic import BaseModel, Field, Extra
from pipelines.schema import Answer, Document, Label, Span
from pydantic import BaseConfig
from pydantic.dataclasses import dataclass as pydantic_dataclass

https://github.com/PaddlePaddle/PaddleNLP/blob/45c2269a43ae7f128e4ef01e8f3fb98243f981ac/pipelines/rest_api/schema.py#L16

好的，修改后可以运行。但是似乎效果变差了，返回的结果不正常。

看起来Relevance值都比较低。
如果单独运行
curl -X POST -k http://localhost:8891/query -H 'Content-Type: application/json' -d '{"query": "衡量酒水的价格的因素有哪些?","params": {"Retriever": {"top_k": 5}, "Ranker":{"top_k": 5}}}'
后端首先会返回空，随后才会返回一个结果，不知道是不是有关系。
INFO:     127.0.0.1:61294 - "POST /query HTTP/1.1" 200 OK
query query='衡量酒水的价格的因素有哪些?' params={'Retriever': {'top_k': 5}, 'Ranker': {'top_k': 5}} debug=False
12/30/2022 05:11:21 PM {'info': 'No documents with embeddings.'}
12/30/2022 05:11:21 PM Likely some of your stored documents don't have embeddings. try to run the document store's update_embeddings() method.
12/30/2022 05:11:23 PM {"request": "query='\u8861\u91cf\u9152\u6c34\u7684\u4ef7\u683c\u7684\u56e0\u7d20\u6709\u54ea\u4e9b?' params={'Retriever': {'top_k': 5}, 'Ranker': {'top_k': 5}, 'Query': {'debug': False}} debug=False", "response": {"documents": ["<Document: id=8f0308a3e23070cb1cbc5271a532204, content='\u65e0\u952........

顺便问个问题，怎么分字段写入搜索引擎呢

authors: laosuan w5688414 yunshifengyu

repo: PaddlePaddle/PaddleNLP


text:
https://github.com/PaddlePaddle/PaddleNLP/tree/develop/model_zoo/gpt-3
您好，请问此模型是否已支持？如已支持，能否给出详细依赖，如paddlepaddle版本，谢谢！

这个是仿制品吧，GPT3没开源，看起来和GPT2差不多

这个是仿制品吧，GPT3没开源，看起来和GPT2差不多

这个是paddlefleetx迁移过来的，应该是飞桨复现的GPT-3模型吧，按文档我本地跑不起来，求助一下官方RD

@jinyouzhi 没几个能跑得起来，他这个有自定义算子，太麻烦。
看起来和另一个GPT没啥区别

@sijunhe 方便确认一下吗？

@sijunhe 方便确认一下吗？

@sijunhe 方便确认一下吗？

您好！
楼上说的没错，GPT-3的模型结构和参数确实都没有开源，所以我们这边的GPT其实是GPT-2，如果需要一个能跑起来的版本，可以先使用https://github.com/PaddlePaddle/PaddleNLP/tree/develop/examples/language_model/gpt-3
从paddlefleetx迁移过来的gpt确实是我们这边的最新工作，比我们这边已有的gpt实现多了很多工程加速。但是这个版本目前因为底层算子的原因依赖nightly的paddle框架，也仍然在积极开发中，使用体验不会太好。
我们这边计划在5月中发下一个大版本，会全面支持各种开源大模型的分布式训练

看了市面上的那么多，还是百度的靠谱..   等得起 ~~  期待....   学习边角料等待~!~

@sijunhe @engineer1109 感谢解答


text:
已知文本的话，语音比对和时间戳对齐有示例吗？

General Question

参看 https://github.com/PaddlePaddle/PaddleSpeech/blob/develop/examples/other/mfa/README.md

谢谢

repo: PaddlePaddle/PaddleSpeech


text:
add Text2SQL-DA-HIER

add codes for EMNLP2021 Text2SQL-DA-HIER

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.wukun04 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

authors: CLAassistant ThisIsSoMe

repo: PaddlePaddle/Research


text:
non-fault-tolerant: trainer ID started with 1, rather than 0

I think we need to make it starting from 0.

With the logic: https://github.com/PaddlePaddle/cloud/blob/develop/docker/k8s_tools.py#L53, trainer ID is start with 0, maybe some other bug cause this situation? how can I reproduce the situation?

Sorry, I can't reproduce it, maybe I get confused when seeing the trainer restarted with higher ID. Duplicate with https://github.com/PaddlePaddle/cloud/issues/319

repo: PaddlePaddle/cloud


text:
Polished documentation of Paddle Cloud installation.

Made some modification on details of Paddle Cloud installation.

Make sense to me, reverted it back.


text:
feat: 完善 No.89：开源社区对比研究

修正部分图例标题
添加项目关注度详细计算公式
添加巴士系数详细介绍
更新分析结果

建议PDF不要上传，会导致仓库变得很大

好的~，但是有个问题是我的 notebook 在 GitHub 上无法显示出 output 的图片，尽管在本地打开 notebook 是可以看到图片的

直接截图贴上来呢？

直接截图贴上来呢？

直接贴图片的话，那文件大小还是会变大的，或者直接引用图床上的图片

直接贴图片的话，那文件大小还是会变大的

可以试试会变得多大，目前pdf是125KB

或者直接引用图床上的图片

也是可以的

目前 notebook 是 1.96 MB，pdf 是 1.11 MB ，将图片插入到 notebook 中之后，notebook 的大小几乎不变，但是可以删除多余的 pdf，预计容量减少 36%

repo: PaddlePaddle/community


text:
官网英文文档入口有问题 & 部分英文文档缺失

文档链接&描述 Document Links & Description
https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/api/paddle/linalg/inv_cn.html
请提出你的建议/提个PR修复这个问题 Please give your suggestion/update a PR to fix it
无法通过 中|英 的按钮一键跳转到对应的英文文档，在英文界面搜索后默认展示2.2版本，并且英文无inv文档

无法通过 中|英 的按钮一键跳转到对应的英文文档，在英文界面搜索后默认展示2.2版本，并且英文无inv文档

可以跳转呀，而且也是develop版本

repo: PaddlePaddle/docs