3

阿木币

0

精华

4 小时

在线时间

应届白菜

Rank: 1

发表于 2020-5-6 15:26:58 9744 浏览 11 回复

运行jmavsim时出现”JarRscLoader“意外退出情况

大家好,新手按照PX4官方教程在macOS catalina 10.15.4的电脑上配置好教程,在执行”make px4_sitl jmavsim“时出现jarRscLoader意外退出的情况。请各位帮忙看一下是什么问题,感激不尽。
kevin@kevinJdeMacBook-Pro ~ % cd /Users/kevin/Firmware
kevin@kevinJdeMacBook-Pro Firmware % make px4_sitl jmavsim
[0/1] cd /Users/kevin/Firmware/build/p.../kevin/Firmware/build/px4_sitl_default
SITL ARGS
sitl_bin: /Users/kevin/Firmware/build/px4_sitl_default/bin/px4
debugger: none
program: jmavsim
model: none
world: none
src_path: /Users/kevin/Firmware
build_path: /Users/kevin/Firmware/build/px4_sitl_default
empty model, setting iris as default
SITL COMMAND: "/Users/kevin/Firmware/build/px4_sitl_default/bin/px4" "/Users/kevin/Firmware"/ROMFS/px4fmu_common -s etc/init.d-posix/rcS -t "/Users/kevin/Firmware"/test_data
INFO  [px4] Creating symlink /Users/kevin/Firmware/ROMFS/px4fmu_common -> /Users/kevin/Firmware/build/px4_sitl_default/tmp/rootfs/etc

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

px4 starting.

INFO  [px4] Calling startup script: /bin/sh etc/init.d-posix/rcS 0
INFO  [param] selected parameter default file eeprom/parameters_10016
[param] parameter file not found, creating eeprom/parameters_10016
  SYS_AUTOCONFIG: curr: 0 -> new: 1
* SYS_AUTOSTART: curr: 0 -> new: 10016
  BAT_N_CELLS: curr: 0 -> new: 3
  CAL_ACC0_ID: curr: 0 -> new: 1311244
  CAL_ACC_PRIME: curr: 0 -> new: 1311244
  CAL_GYRO0_ID: curr: 0 -> new: 2294028
  CAL_GYRO_PRIME: curr: 0 -> new: 2294028
  CAL_MAG0_ID: curr: 0 -> new: 197388
  CAL_MAG_PRIME: curr: 0 -> new: 197388
  COM_DISARM_LAND: curr: 2.0000 -> new: 0.5000
  COM_OBL_ACT: curr: 0 -> new: 2
  COM_RC_IN_MODE: curr: 0 -> new: 1
  EKF2_ANGERR_INIT: curr: 0.1000 -> new: 0.0100
  EKF2_GBIAS_INIT: curr: 0.1000 -> new: 0.0100
  COM_ARM_EKF_AB: curr: 0.0017 -> new: 0.0050
  EKF2_REQ_GPS_H: curr: 10.0000 -> new: 0.5000
  MC_PITCH_P: curr: 6.5000 -> new: 6.0000
  MC_PITCHRATE_P: curr: 0.1500 -> new: 0.2000
  MC_ROLL_P: curr: 6.5000 -> new: 6.0000
  MC_ROLLRATE_P: curr: 0.1500 -> new: 0.2000
  MPC_HOLD_MAX_Z: curr: 0.6000 -> new: 2.0000
  MPC_Z_VEL_I: curr: 0.1000 -> new: 0.1500
  MPC_Z_VEL_P: curr: 0.2000 -> new: 0.6000
  MPC_XY_P: curr: 0.9500 -> new: 0.8000
  MPC_XY_VEL_P: curr: 0.0900 -> new: 0.2000
  MPC_XY_VEL_D: curr: 0.0100 -> new: 0.0160
  MPC_SPOOLUP_TIME: curr: 1.0000 -> new: 0.5000
  MPC_TKO_RAMP_T: curr: 3.0000 -> new: 1.0000
  NAV_ACC_RAD: curr: 10.0000 -> new: 2.0000
  NAV_DLL_ACT: curr: 0 -> new: 2
  RTL_DESCEND_ALT: curr: 30.0000 -> new: 5.0000
  RTL_LAND_DELAY: curr: -1.0000 -> new: 5.0000
  RTL_RETURN_ALT: curr: 60.0000 -> new: 30.0000
  SDLOG_MODE: curr: 0 -> new: 1
  SDLOG_PROFILE: curr: 3 -> new: 131
  SDLOG_DIRS_MAX: curr: 0 -> new: 7
  SENS_BOARD_X_OFF: curr: 0.0000 -> new: 0.0000
  SENS_DPRES_OFF: curr: 0.0000 -> new: 0.0010
  TRIG_INTERFACE: curr: 4 -> new: 3
  COM_CPU_MAX: curr: 90.0000 -> new: -1.0000
* RTL_DESCEND_ALT: curr: 5.0000 -> new: 10.0000
* RTL_LAND_DELAY: curr: 5.0000 -> new: 0.0000
  PWM_MAX: curr: 2000 -> new: 1950
  PWM_MIN: curr: 1000 -> new: 1075
  GPS_UBX_DYNMODEL: curr: 7 -> new: 6
* SYS_AUTOCONFIG: curr: 1 -> new: 0
Buildfile: /Users/kevin/Firmware/Tools/jMAVSim/build.xml
INFO  [dataman] Unknown restart, data manager file './dataman' size is 11798680 bytes
INFO  [simulator] Waiting for simulator to accept connection on TCP port 4560

make_dirs:

compile:

create_run_jar:

copy_res:

BUILD SUCCESSFUL
Total time: 0 seconds
Options parsed, starting Sim.
Starting GUI...
3D [dev] 1.6.0-pre12-daily-experimental daily

2020-05-06 15:19:39.497 java[53689:375296] Apple AWT Internal Exception: NSWindow drag regions should only be invalidated on the Main Thread!
2020-05-06 15:19:39.497 java[53689:375296] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'
*** First throw call stack:
(
        0   CoreFoundation                      0x00007fff398e8d07 __exceptionPreprocess + 250
        1   libobjc.A.dylib                     0x00007fff7260c5bf objc_exception_throw + 48
        2   CoreFoundation                      0x00007fff3991150c -[NSException raise] + 9
        3   AppKit                              0x00007fff36b1824c -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 310
        4   AppKit                              0x00007fff36affcb2 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1416
        5   AppKit                              0x00007fff36aff723 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
        6   libnativewindow_macosx.jnilib       0x00000001313b6f6e Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398
        7   ???                                 0x0000000118888407 0x0 + 4706567175
)
libc++abi.dylib: terminating with uncaught exception of type NSException
/Users/kevin/Firmware/Tools/jmavsim_run.sh: line 80: 53689 Abort trap: 6           java -XX:GCTimeRatio=20 -Djava.ext.dirs= -Djavax.accessibility.assistive_technologies=" " -jar jmavsim_run.jar $device $extra_args




kevin已获得悬赏 3 阿木币

最佳答案

问题解决!!!!!是因为java版本!!px4官方推荐adoptopenjdk8,我尝试在https://www.oracle.com/java/technologies/javase-jdk8-downloads.html下载对应版本替换px4官方推荐的adoptopenjdk8后成功了! ...
WechatIMG13.png

扫一扫浏览分享
回复

使用道具 举报

142

阿木币

0

精华

142 小时

在线时间

技术大V

Rank: 4

发表于 2020-5-6 16:24:18
你这苹果的系统么   估计比Ubuntu的坑更多。 。。
回复 点赞

使用道具 举报

142

阿木币

0

精华

142 小时

在线时间

技术大V

Rank: 4

发表于 2020-5-6 16:26:46
谷歌搜一下这个关键词 Apple AWT Internal Exception: NSWindow drag regions should only be invalidated on the Main Thread! 吧
回复 点赞

使用道具 举报

3

阿木币

0

精华

4 小时

在线时间

应届白菜

Rank: 1

 楼主| 发表于 2020-5-6 17:55:14
SmilE 发表于 2020-5-6 16:24
你这苹果的系统么   估计比Ubuntu的坑更多。 。。

嗯,MacBook pro 2019款,属实坑多。。。坑得我腿都快断了。。。
回复 点赞

使用道具 举报

3

阿木币

0

精华

4 小时

在线时间

应届白菜

Rank: 1

 楼主| 发表于 2020-5-6 17:56:54
SmilE 发表于 2020-5-6 16:26
谷歌搜一下这个关键词 Apple AWT Internal Exception: NSWindow drag regions should only be invalidated  ...

正在进行该项操作,但是搜出来的都是说Ubuntu怎样怎样,按照我现在的理解大概率是java的问题,强制要求adoptopenjdk 8,我重装了也没解决问题,正在继续解决这个问题
回复 点赞

使用道具 举报

185

阿木币

3

精华

71 小时

在线时间

技术大V

Rank: 4

发表于 2020-5-6 22:54:23
建议去PX4 issue提问或者搜索,可能会有答案。
虽然macos也是官方推荐的系统,但是遇到问题不太好找答案
回复 点赞

使用道具 举报

142

阿木币

0

精华

142 小时

在线时间

技术大V

Rank: 4

发表于 2020-5-7 08:52:45
kevin 发表于 2020-5-6 17:56
正在进行该项操作,但是搜出来的都是说Ubuntu怎样怎样,按照我现在的理解大概率是java的问题,强制要求ad ...

你mac下面装一个Ubuntu虚拟机折腾这些也可以啊
回复 点赞

使用道具 举报

3

阿木币

0

精华

4 小时

在线时间

应届白菜

Rank: 1

 楼主| 发表于 2020-5-7 09:16:41
SmilE 发表于 2020-5-7 08:52
你mac下面装一个Ubuntu虚拟机折腾这些也可以啊

备选方案了,今天再看看,实在不行就虚拟机Ubuntu了。。。感谢老哥
回复 点赞

使用道具 举报

3

阿木币

0

精华

4 小时

在线时间

应届白菜

Rank: 1

 楼主| 发表于 2020-5-7 09:17:31
AmovlabQYP 发表于 2020-5-6 22:54
建议去PX4 issue提问或者搜索,可能会有答案。
虽然macos也是官方推荐的系统,但是遇到问题不太好找答案 ...

嗯嗯,在issue那块儿看了半天也没找到个相同错误的,我提问试试,不行就换虚拟机Ubuntu了,谢谢老哥
回复 点赞

使用道具 举报

3

阿木币

0

精华

4 小时

在线时间

应届白菜

Rank: 1

 楼主| 发表于 2020-5-7 14:38:34
问题解决!!!!!是因为java版本!!px4官方推荐adoptopenjdk8,我尝试在https://www.oracle.com/java/tech ... jdk8-downloads.html下载对应版本替换px4官方推荐的adoptopenjdk8后成功了!
回复 点赞

使用道具 举报

下一页 »
12下一页
返回列表
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表