在群内使用唱歌功能出现 FATAL ERROR 导致程序直接崩溃
使用 Windows 11 x64,Mirai 的 JRE 库换为了 OPENJDK 11.0.12.7.1 x64(之前不更换加载到 silk4j 显示无动态链接库)
具体 LOG:
2021-08-12 16:35:11 V/Bot.1607089408: [夜半三更盼天明组(32)] Phantom Dominator(29) -> 唱歌 igallta
2021-08-12 16:35:11 I/Plum: [CommandSystem] Receive Msg -> {唱歌 igallta}
2021-08-12 16:35:11 I/Plum: [Permission] fromGroup = 392779472, fromQQ = 29, authority:4
2021-08-12 16:35:11 I/Plum: [SingSong] 收到唱歌指令,开始执行核心代码
2021-08-12 16:35:11 I/Plum: [调用历史管理者 - 功能使用历史记录者] Get Call History: user = 32
2021-08-12 16:35:11 I/Plum: [调用历史管理者 - 功能使用历史记录者] 判断当前时间的调用是否时间间隔合法: diff = 19, limit = 5
2021-08-12 16:35:11 I/Plum: [调用历史管理者 - 功能使用历史记录者] 更新调用历史: user = 3*2, calendar = java.util.GregorianCalendar[time=1628757311463,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="Asia/Shanghai",offset=28800000,dstSavings=0,useDaylight=false,transitions=31,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2021,MONTH=7,WEEK_OF_YEAR=33,WEEK_OF_MONTH=2,DAY_OF_MONTH=12,DAY_OF_YEAR=224,DAY_OF_WEEK=5,DAY_OF_WEEK_IN_MONTH=2,AM_PM=1,HOUR=4,HOUR_OF_DAY=16,MINUTE=35,SECOND=11,MILLISECOND=463,ZONE_OFFSET=28800000,DST_OFFSET=0]
2021-08-12 16:35:11 I/Plum: [SingSong] 用户输入的需要唱的歌曲: input_music_name = igallta
2021-08-12 16:35:11 I/Plum: [SingSong] input_music_name = igallta
2021-08-12 16:35:11 I/Plum: [SingSong] 尝试第1乐库: NeteaseMusic - API
2021-08-12 16:35:11 I/Plum: [NeteaseMusic - API] 搜索音乐列表 - 请求: music_name = igallta
2021-08-12 16:35:11 I/Plum: [NeteaseMusic - API] 搜索音乐列表 - 结果: Code = OK, Response = {"result":{"songs":[{"id":1811961337,"name":"Igallta","artists":[{"id":29791099,"name":"Se-U-Ra","picUrl":null,"alias":[],"albumSize":0,"picId":0,"img1v1Url":"http://p2.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg","img1v1":0,"trans":null}],"album":{"id":0,"name":"","artist":{"id":0,"name":"","picUrl":null,"alias":[],"albumSize":0,"picId":0,"img1v1Url":"http://p2.music.126.net/6y-UleORITEDbvrOLV0Q8A==/5639395138885805.jpg","img1v1":0,"trans":null},"publishTime":0,"size":0,"copyrightId":0,"status":0,"picId":109951165752947272,"mark":0},"duration":122176,"copyrightId":0,"status":0,"alias":[],"rtype":0,"ftype":0,"mvid":0,"fee":0,"rUrl":null,"mark":393216}],"hasMore":false,"songCount":1},"code":200}
2021-08-12 16:35:11 I/Plum: [NeteaseMusic - API] 获取的音乐信息(指定首) - 成功获取到指定首(第1首)的音乐的信息: SongInformation{music_Name='Igallta', music_ID=1811961337, music_Length=0, music_introduction='null', music_Page_URL='http://music.163.com/song/1811961337', author='null', music_File_URL='http://music.163.com/song/media/outer/url?id=1811961337.mp3', music_MID='null', img_URL='null', hash='null', sourceType='网易云音乐', summary='null'}
2021-08-12 16:35:11 I/Plum: [Download] 所要下载的文件: URL_path = http://music.163.com/song/media/outer/url?id=1811961337.mp3, fileLength = 62
2021-08-12 16:35:11 I/Plum: [NeteaseMusic - API] 获取到的SongInformation: SongInformation{music_Name='Igallta', music_ID=1811961337, music_Length=0, music_introduction='null', music_Page_URL='http://music.163.com/song/1811961337', author='null', music_File_URL='http://music.163.com/song/media/outer/url?id=1811961337.mp3', music_MID='null', img_URL='null', hash='null', sourceType='网易云音乐', summary='null'}
2021-08-12 16:35:11 I/Plum: [NeteaseMusic - API] 检测到所要下载音乐文件已存在,跳过下载: file_path = D:\Development\QiantanBot\plugins\Plum\voice-files\netease_cloud_music#DEFAULT_MUSIC_NAME#1811961337
2021-08-12 16:35:11 I/Plum: [SendSystem] sendMusic() -> voice_file_name = netease_cloud_music#DEFAULT_MUSIC_NAME#1811961337
2021-08-12 16:35:11 I/Plum: [SendSystem] Start MP3 to Silk: netease_cloud_music#DEFAULT_MUSIC_NAME#1811961337
A fatal error has been detected by the Java Runtime Environment:
EXCEPTION_INT_DIVIDE_BY_ZERO (0xc0000094) at pc=0x000000006d637ba2, pid=7628, tid=8144
JRE version: OpenJDK Runtime Environment Microsoft-25199 (11.0.12+7) (build 11.0.12+7)
Java VM: OpenJDK 64-Bit Server VM Microsoft-25199 (11.0.12+7, mixed mode, tiered, compressed oops, g1 gc, windows-amd64)
Problematic frame:
C [mirai_audio_lib_1628757276161.lib+0x37ba2]
No core dump will be written. Minidumps are not enabled by default on client versions of Windows
An error report file with more information is saved as:
D:\Development\QiantanBot\hs_err_pid7628.log
If you would like to submit a bug report, please visit:
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.