file-type

掌握Python事件循环:runloop.py的深入解析

ZIP文件

下载需积分: 50 | 2KB | 更新于2025-02-14 | 175 浏览量 | 4 评论 | 0 下载量 举报 收藏
download 立即下载
### 标题知识点: 标题 "runloop.py:一个简单的 Python 事件循环" 指出了一个专门设计来处理事件的 Python 脚本。事件循环是编程中的一种模式,用于处理多个事件源(如网络请求、用户输入或计时器)同时发生的事件。在这个上下文中,“事件”通常指的是一个动作或信息,它需要程序作出反应。 Python 中的事件循环与多线程相对,尽管两者都旨在允许程序同时处理多项任务,但事件循环通常在单个线程内部操作,而多线程则涉及多个线程同时运行。这可以减少线程安全问题,因为不必同时访问共享资源。 ### 描述知识点: 描述中提到的“多线程,但一切都发生在同一个线程上”指的是事件循环的一个重要特性,即单线程异步编程模型。在这种模型中,尽管程序只使用一个线程,它仍能异步处理多个事件,这是通过在事件到达时暂停和恢复执行来实现的。 描述中提到异步操作通常是为了提高程序的响应性和效率,尤其是在需要等待外部操作(如网络请求)时。在这种情况下,程序可以在等待期间继续执行其他任务,而不是停滞不前。 Python 标准库中并没有直接名为 RunLoop 的类,但描述中提到了一个假设的 `RunLoop` 类,它可以处理其他线程事件。此外,描述中使用了 `threading.Timer` 和 `datetime` 模块来展示如何在事件循环中处理定时任务。 最后,描述中展示的 `time` 和 `sayHello` 函数被用来演示异步调用。`time` 函数打印当前时间,而 `sayHello` 函数用于打印字符串(尽管在描述中被不完整地截断了)。 ### 标签知识点: 标签 "Python" 指出了这个事件循环脚本是用 Python 编写的。Python 是一种广泛使用的高级编程语言,以其简洁的语法和强大的标准库而闻名。Python 支持多种编程范式,包括面向对象、命令式、函数式和过程式编程。Python 的易读性和易学性使其成为初学者和专业开发者的热门选择。 ### 压缩包子文件的文件名称列表知识点: 文件名称列表中的 "runloop.py-master" 表明存在一个名为 runloop.py 的主文件,它可能包含了与事件循环相关的主逻辑或实现。文件名后面的 “-master” 可能意味着这是一个主分支,包含了最新和最完整的代码。 ### 总结知识点: - 事件循环是异步编程中的一种模式,常用于处理多个并发事件。 - Python 中实现事件循环通常不依赖于多线程,从而减少了线程安全的问题。 - 事件循环可以在单个线程中高效地处理外部依赖性事件,如网络请求或计时器。 - Python 的标准库可能不包含名为 RunLoop 的类,但在描述中被假设为一个用于事件循环的工具。 - 描述中展示了使用 `threading.Timer` 和 `datetime` 模块来演示如何在事件循环中安排和执行定时任务。 - Python 作为一个多范式的编程语言,非常适合实现事件循环逻辑。 - “runloop.py-master” 命名的文件表明了源代码可能存放在主分支版本控制中,是该项目的主版本。

相关推荐

filetype

Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1787) at javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(FXMLLoader.java:1670) at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191) at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74) at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49) at javafx.event.Event.fireEvent(Event.java:198) at javafx.scene.Node.fireEvent(Node.java:8879) at javafx.scene.control.Button.fire(Button.java:200) at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:206) at com.sun.javafx.scene.control.inputmap.InputMap.handle(InputMap.java:274) at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218) at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191) at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74) at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54) at javafx.event.Event.fireEvent(Event.java:198) at javafx.scene.Scene$MouseHandler.process(Scene.java:3851) at javafx.scene.Scene$MouseHandler.access$1200(Scene.java:3579) at javafx.scene.Scene.processMouseEvent(Scene.java:1849) at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2588) at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:397) at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:295) at java.base/java.security.AccessController.doPrivileged(AccessController.java:400) at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(GlassViewEventHandler.java:434) at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:390) at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:433) at com.sun.glass.ui.View.handleMouseEvent(View.java:556) at com.sun.glass.ui.View.notifyMouse(View.java:942) at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174) at java.base/java.lang.Thread.run(Thread.java:1583) Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at com.sun.javafx.reflect.Trampoline.invoke(MethodUtil.java:76) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at com.sun.javafx.reflect.MethodUtil.invoke(MethodUtil.java:273) at com.sun.javafx.fxml.MethodHelper.invoke(MethodHelper.java:83) at javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1782) ... 47 more Caused by: java.lang.IllegalStateException: Location is not set. at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2459) at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2435) at com.itheima.utils.PaneUtils.showAndInitPane(PaneUtils.java:39) at com.itheima.controller.RegisterController.toLoginPage(RegisterController.java:45) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ... 54 more

filetype

Exception in Application constructor Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:893) Caused by: java.lang.RuntimeException: Unable to construct Application instance: class Main at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:907) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$1(LauncherImpl.java:182) at java.lang.Thread.run(Thread.java:750) Caused by: java.lang.NoSuchMethodException: Main.<init>() at java.lang.Class.getConstructor0(Class.java:3110) at java.lang.Class.getConstructor(Class.java:1853) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$7(LauncherImpl.java:818) at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$7(PlatformImpl.java:326) at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295) at java.security.AccessController.doPrivileged(Native Method) at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294) at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at com.sun.glass.ui.win.WinApplication.lambda$null$3(WinApplication.java:177) ... 1 more出现这个报错怎么解决

filetype

C:\Users\86180\.jdks\openjdk-24.0.1\bin\java.exe -Dmaven.multiModuleProjectDirectory=C:\Users\86180\IdeaProjects\javafx -Djansi.passthrough=true -Dmaven.home=C:\Users\86180\.m2\wrapper\dists\apache-maven-3.8.5-bin\5i5jha092a3i37g0paqnfr15e0\apache-maven-3.8.5 -Dclassworlds.conf=C:\Users\86180\.m2\wrapper\dists\apache-maven-3.8.5-bin\5i5jha092a3i37g0paqnfr15e0\apache-maven-3.8.5\bin\m2.conf "-Dmaven.ext.class.path=C:\Users\86180\AppData\Local\Programs\IntelliJ IDEA Ultimate 2025.1.2\plugins\maven\lib\maven-event-listener.jar" "-javaagent:C:\Users\86180\AppData\Local\Programs\IntelliJ IDEA Ultimate 2025.1.2\lib\idea_rt.jar=62746" -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath C:\Users\86180\.m2\wrapper\dists\apache-maven-3.8.5-bin\5i5jha092a3i37g0paqnfr15e0\apache-maven-3.8.5\boot\plexus-classworlds-2.6.0.jar;C:\Users\86180\.m2\wrapper\dists\apache-maven-3.8.5-bin\5i5jha092a3i37g0paqnfr15e0\apache-maven-3.8.5\boot\plexus-classworlds.license org.codehaus.classworlds.Launcher -Didea.version=2025.1.2 clean javafx:run WARNING: A restricted method in java.lang.System has been called WARNING: java.lang.System::load has been called by org.fusesource.jansi.internal.JansiLoader in an unnamed module (file:/C:/Users/86180/.m2/wrapper/dists/apache-maven-3.8.5-bin/5i5jha092a3i37g0paqnfr15e0/apache-maven-3.8.5/lib/jansi-2.4.0.jar) WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module WARNING: Restricted methods will be blocked in a future release unless native access is enabled WARNING: A terminally deprecated method in sun.misc.Unsafe has been called WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper (file:/C:/Users/86180/.m2/wrapper/dists/apache-maven-3.8.5-bin/5i5jha092a3i37g0paqnfr15e0/apache-maven-3.8.5/lib/guava-25.1-android.jar) WARNING: Please consider reporting this to the maintainers of class com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release [INFO] Scanning for projects... [INFO] [INFO] ---------------------< com.example:javafx-project >--------------------- [INFO] Building JavaFX 停车场管理系统 1.0-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ javafx-project --- [INFO] Deleting C:\Users\86180\IdeaProjects\javafx\target [INFO] [INFO] >>> javafx-maven-plugin:0.0.8:run (default-cli) > process-classes @ javafx-project >>> [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ javafx-project --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 6 resources [INFO] [INFO] --- maven-compiler-plugin:3.13.0:compile (default-compile) @ javafx-project --- [INFO] Recompiling the module because of changed source code. [INFO] Compiling 11 source files with javac [debug release 24 module-path] to target\classes [INFO] [INFO] <<< javafx-maven-plugin:0.0.8:run (default-cli) < process-classes @ javafx-project <<< [INFO] [INFO] [INFO] --- javafx-maven-plugin:0.0.8:run (default-cli) @ javafx-project --- [WARNING] Module name not found in <mainClass>. Module name will be assumed from module-info.java 6�� 15, 2025 5:27:58 ���� dao.VehicleDAO <init> ����: δ�ҵ�MySQL JDBC��������ȷ����������� java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Driver at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:580) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:490) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:463) at java.base/java.lang.Class.forName(Class.java:454) at [email protected]/dao.VehicleDAO.<init>(VehicleDAO.java:33) at [email protected]/service.ParkingService.<init>(ParkingService.java:17) at [email protected]/view.controller.MainController.initialize(MainController.java:47) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:565) at com.sun.javafx.reflect.Trampoline.invoke(MethodUtil.java:65) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:565) at javafx.base@24/com.sun.javafx.reflect.MethodUtil.invoke(MethodUtil.java:112) at javafx.fxml@24/com.sun.javafx.fxml.MethodHelper.invoke(MethodHelper.java:78) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2658) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2533) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3304) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3264) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3235) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3211) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3191) at javafx.fxml@24/javafx.fxml.FXMLLoader.load(FXMLLoader.java:3186) at [email protected]/view.Main.start(Main.java:16) at javafx.graphics@24/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$7(LauncherImpl.java:840) at javafx.graphics@24/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$5(PlatformImpl.java:444) at javafx.graphics@24/com.sun.javafx.application.PlatformImpl.lambda$runLater$4(PlatformImpl.java:419) at javafx.graphics@24/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) at javafx.graphics@24/com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at javafx.graphics@24/com.sun.glass.ui.win.WinApplication.lambda$runLoop$0(WinApplication.java:168) at java.base/java.lang.Thread.run(Thread.java:1447) 6�� 15, 2025 5:27:58 ���� dao.VehicleDAO getConnection ��Ϣ: �������ӵ�MySQL���ݿ�: jdbc:mysql://localhost:3306/parking_system?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai 6�� 15, 2025 5:27:58 ���� dao.VehicleDAO getConnection ����: MySQL���ݿ�����ʧ�� java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/parking_system?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:638) at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:199) at [email protected]/dao.VehicleDAO.getConnection(VehicleDAO.java:45) at [email protected]/dao.VehicleDAO.selectAllVehicles(VehicleDAO.java:122) at [email protected]/service.ParkingService.getAllVehicles(ParkingService.java:76) at [email protected]/view.controller.MainController.loadVehicleData(MainController.java:100) at [email protected]/view.controller.MainController.initialize(MainController.java:92) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:565) at com.sun.javafx.reflect.Trampoline.invoke(MethodUtil.java:65) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:565) at javafx.base@24/com.sun.javafx.reflect.MethodUtil.invoke(MethodUtil.java:112) at javafx.fxml@24/com.sun.javafx.fxml.MethodHelper.invoke(MethodHelper.java:78) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2658) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2533) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3304) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3264) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3235) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3211) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3191) at javafx.fxml@24/javafx.fxml.FXMLLoader.load(FXMLLoader.java:3186) at [email protected]/view.Main.start(Main.java:16) at javafx.graphics@24/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$7(LauncherImpl.java:840) at javafx.graphics@24/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$5(PlatformImpl.java:444) at javafx.graphics@24/com.sun.javafx.application.PlatformImpl.lambda$runLater$4(PlatformImpl.java:419) at javafx.graphics@24/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) at javafx.graphics@24/com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at javafx.graphics@24/com.sun.glass.ui.win.WinApplication.lambda$runLoop$0(WinApplication.java:168) at java.base/java.lang.Thread.run(Thread.java:1447) 6�� 15, 2025 5:27:58 ���� dao.VehicleDAO getConnection ����: �������: 0 6�� 15, 2025 5:27:58 ���� dao.VehicleDAO getConnection ����: SQL״̬: 08001 6�� 15, 2025 5:27:58 ���� dao.VehicleDAO getConnection ����: ������Ϣ: No suitable driver found for jdbc:mysql://localhost:3306/parking_system?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai WARNING: A terminally deprecated method in sun.misc.Unsafe has been called WARNING: sun.misc.Unsafe::allocateMemory has been called by com.sun.marlin.OffHeapArray (file:/C:/Users/86180/.m2/repository/org/openjfx/javafx-graphics/24/javafx-graphics-24-win.jar) WARNING: Please consider reporting this to the maintainers of class com.sun.marlin.OffHeapArray WARNING: sun.misc.Unsafe::allocateMemory will be removed in a future release java.lang.NullPointerException: Cannot invoke "java.sql.Connection.prepareStatement(String)" because "connection" is null at [email protected]/dao.VehicleDAO.selectAllVehicles(VehicleDAO.java:123) at [email protected]/service.ParkingService.getAllVehicles(ParkingService.java:76) at [email protected]/view.controller.MainController.loadVehicleData(MainController.java:100) at [email protected]/view.controller.MainController.initialize(MainController.java:92) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:565) at com.sun.javafx.reflect.Trampoline.invoke(MethodUtil.java:65) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:565) at javafx.base@24/com.sun.javafx.reflect.MethodUtil.invoke(MethodUtil.java:112) at javafx.fxml@24/com.sun.javafx.fxml.MethodHelper.invoke(MethodHelper.java:78) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2658) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2533) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3304) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3264) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3235) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3211) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3191) at javafx.fxml@24/javafx.fxml.FXMLLoader.load(FXMLLoader.java:3186) at [email protected]/view.Main.start(Main.java:16) at javafx.graphics@24/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$7(LauncherImpl.java:840) at javafx.graphics@24/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$5(PlatformImpl.java:444) at javafx.graphics@24/com.sun.javafx.application.PlatformImpl.lambda$runLater$4(PlatformImpl.java:419) at javafx.graphics@24/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) at javafx.graphics@24/com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at javafx.graphics@24/com.sun.glass.ui.win.WinApplication.lambda$runLoop$0(WinApplication.java:168) at java.base/java.lang.Thread.run(Thread.java:1447) 6�� 15, 2025 5:28:02 ���� dao.VehicleDAO getConnection ��Ϣ: �������ӵ�MySQL���ݿ�: jdbc:mysql://localhost:3306/parking_system?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai 6�� 15, 2025 5:28:02 ���� dao.VehicleDAO getConnection ����: MySQL���ݿ�����ʧ�� java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/parking_system?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:638) at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:199) at [email protected]/dao.VehicleDAO.getConnection(VehicleDAO.java:45) at [email protected]/dao.VehicleDAO.selectAllVehicles(VehicleDAO.java:122) at [email protected]/service.ParkingService.getAllVehicles(ParkingService.java:76) at [email protected]/service.ParkingService.getVehicleCount(ParkingService.java:111) at [email protected]/view.controller.MainController.updateStatistics(MainController.java:112) at [email protected]/view.controller.MainController.initialize(MainController.java:93) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:565) at com.sun.javafx.reflect.Trampoline.invoke(MethodUtil.java:65) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:565) at javafx.base@24/com.sun.javafx.reflect.MethodUtil.invoke(MethodUtil.java:112) at javafx.fxml@24/com.sun.javafx.fxml.MethodHelper.invoke(MethodHelper.java:78) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2658) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2533) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3304) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3264) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3235) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3211) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3191) at javafx.fxml@24/javafx.fxml.FXMLLoader.load(FXMLLoader.java:3186) at [email protected]/view.Main.start(Main.java:16) at javafx.graphics@24/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$7(LauncherImpl.java:840) at javafx.graphics@24/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$5(PlatformImpl.java:444) at javafx.graphics@24/com.sun.javafx.application.PlatformImpl.lambda$runLater$4(PlatformImpl.java:419) at javafx.graphics@24/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) at javafx.graphics@24/com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at javafx.graphics@24/com.sun.glass.ui.win.WinApplication.lambda$runLoop$0(WinApplication.java:168) at java.base/java.lang.Thread.run(Thread.java:1447) 6�� 15, 2025 5:28:02 ���� dao.VehicleDAO getConnection ����: �������: 0 6�� 15, 2025 5:28:02 ���� dao.VehicleDAO getConnection ����: SQL״̬: 08001 6�� 15, 2025 5:28:02 ���� dao.VehicleDAO getConnection ����: ������Ϣ: No suitable driver found for jdbc:mysql://localhost:3306/parking_system?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai java.lang.NullPointerException: Cannot invoke "java.sql.Connection.prepareStatement(String)" because "connection" is null at [email protected]/dao.VehicleDAO.selectAllVehicles(VehicleDAO.java:123) at [email protected]/service.ParkingService.getAllVehicles(ParkingService.java:76) at [email protected]/service.ParkingService.getVehicleCount(ParkingService.java:111) at [email protected]/view.controller.MainController.updateStatistics(MainController.java:112) at [email protected]/view.controller.MainController.initialize(MainController.java:93) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:565) at com.sun.javafx.reflect.Trampoline.invoke(MethodUtil.java:65) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:565) at javafx.base@24/com.sun.javafx.reflect.MethodUtil.invoke(MethodUtil.java:112) at javafx.fxml@24/com.sun.javafx.fxml.MethodHelper.invoke(MethodHelper.java:78) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2658) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2533) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3304) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3264) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3235) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3211) at javafx.fxml@24/javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3191) at javafx.fxml@24/javafx.fxml.FXMLLoader.load(FXMLLoader.java:3186) at [email protected]/view.Main.start(Main.java:16) at javafx.graphics@24/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$7(LauncherImpl.java:840) at javafx.graphics@24/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$5(PlatformImpl.java:444) at javafx.graphics@24/com.sun.javafx.application.PlatformImpl.lambda$runLater$4(PlatformImpl.java:419) at javafx.graphics@24/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) at javafx.graphics@24/com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at javafx.graphics@24/com.sun.glass.ui.win.WinApplication.lambda$runLoop$0(WinApplication.java:168) at java.base/java.lang.Thread.run(Thread.java:1447) [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 13.126 s [INFO] Finished at: 2025-06-15T17:28:06+08:00 [INFO] ------------------------------------------------------------------------ 进程已结束,退出代码为 0

filetype

Exception in Application constructor Exception in thread "main" java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at java.base/sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:1071) Caused by: java.lang.RuntimeException: Unable to construct Application instance: class com.example.demo.Main at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:891) at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:196) at java.base/java.lang.Thread.run(Thread.java:833) Caused by: java.lang.IllegalAccessException: class com.sun.javafx.application.LauncherImpl (in module javafx.graphics) cannot access class com.example.demo.Main (in module com.example.javafxtest) because module com.example.javafxtest does not export com.example.demo to module javafx.graphics at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:392) at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:674) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:489) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480) at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$8(LauncherImpl.java:803) at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:484) at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:457) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:456) at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96) at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:184) ... 1 more

filetype
filetype

[2025-09-03 19:55:59] 140706823c44:16583:16896 [1] transport/net_ib.cc:2458 NCCL WARN NET/IB: Got completion from peer 127.0.0.1<19868> with status=12 opcode=0 len=0 vendor err 129 (Recv) localGid fe80::5200:e6ff:feef:3805 remoteGidsfe80::5200:e6ff:feef:3835 hca ibp0p1 140706823c44:16583:16896 [1] NCCL INFO transport/net.cc:1393 -> 6 [2025-09-03 19:55:59] 140706823c44:16584:16900 [2] transport/net_ib.cc:2458 NCCL WARN NET/IB: Got completion from peer 127.0.0.1<39536> with status=12 opcode=0 len=0 vendor err 129 (Recv) localGid fe80::5200:e6ff:feef:48b4 remoteGidsfe80::5200:e6ff:feef:3804 hca ibp3p0 140706823c44:16584:16900 [2] NCCL INFO transport/net.cc:1393 -> 6 [2025-09-03 19:55:59] 140706823c44:16582:16894 [0] transport/net_ib.cc:2458 NCCL WARN NET/IB: Got completion from peer 127.0.0.1<39536> with status=12 opcode=0 len=0 vendor err 129 (Recv) localGid fe80::5200:e6ff:feef:3837 remoteGidsfe80::5200:e6ff:feef:4887 hca ibp1p3 140706823c44:16582:16894 [0] NCCL INFO transport/net.cc:1393 -> 6 [2025-09-03 19:55:59] 140706823c44:16585:16898 [3] transport/net_ib.cc:2458 NCCL WARN NET/IB: Got completion from peer 127.0.0.1<55900> with status=12 opcode=0 len=0 vendor err 129 (Recv) localGid fe80::5200:e6ff:feef:4886 remoteGidsfe80::5200:e6ff:feef:48b6 hca ibp2p2 140706823c44:16585:16898 [3] NCCL INFO transport/net.cc:1393 -> 6 [rank1]:[E903 20:05:00.083473453 ProcessGroupNCCL.cpp:685] [Rank 1] Watchdog caught collective operation timeout: WorkNCCL(SeqNum=1, OpType=ALLREDUCE, NumelIn=1, NumelOut=1, Timeout(ms)=600000) ran for 600011 milliseconds before timing out. [rank1]:[E903 20:05:00.083725262 ProcessGroupNCCL.cpp:2252] [PG ID 0 PG GUID 0(default_pg) Rank 1] failure detected by watchdog at work sequence id: 1 PG status: last enqueued work: 1, last completed work: -1 [rank1]:[E903 20:05:00.083739310 ProcessGroupNCCL.cpp:732] Stack trace of the failed collective not found, potentially because FlightRecorder is disabled. You can enable it by setting TORCH_NCCL_TRACE_BUFFER_SIZE to a non-zero value. [rank1]:[E903 20:05:00.083812782 ProcessGroupNCCL.cpp:2584] [PG ID 0 PG GUID 0(default_pg) Rank 1] First PG on this rank to signal dumping. [rank0]:[E903 20:05:00.155314876 ProcessGroupNCCL.cpp:685] [Rank 0] Watchdog caught collective operation timeout: WorkNCCL(SeqNum=1, OpType=ALLREDUCE, NumelIn=1, NumelOut=1, Timeout(ms)=600000) ran for 600086 milliseconds before timing out. [rank0]:[E903 20:05:00.155505084 ProcessGroupNCCL.cpp:2252] [PG ID 0 PG GUID 0(default_pg) Rank 0] failure detected by watchdog at work sequence id: 1 PG status: last enqueued work: 1, last completed work: -1 [rank0]:[E903 20:05:00.155519676 ProcessGroupNCCL.cpp:732] Stack trace of the failed collective not found, potentially because FlightRecorder is disabled. You can enable it by setting TORCH_NCCL_TRACE_BUFFER_SIZE to a non-zero value. [rank0]:[E903 20:05:00.155597596 ProcessGroupNCCL.cpp:2584] [PG ID 0 PG GUID 0(default_pg) Rank 0] First PG on this rank to signal dumping. [rank3]:[E903 20:05:00.160329608 ProcessGroupNCCL.cpp:685] [Rank 3] Watchdog caught collective operation timeout: WorkNCCL(SeqNum=1, OpType=ALLREDUCE, NumelIn=1, NumelOut=1, Timeout(ms)=600000) ran for 600084 milliseconds before timing out. [rank3]:[E903 20:05:00.160487240 ProcessGroupNCCL.cpp:2252] [PG ID 0 PG GUID 0(default_pg) Rank 3] failure detected by watchdog at work sequence id: 1 PG status: last enqueued work: 1, last completed work: -1 [rank3]:[E903 20:05:00.160497256 ProcessGroupNCCL.cpp:732] Stack trace of the failed collective not found, potentially because FlightRecorder is disabled. You can enable it by setting TORCH_NCCL_TRACE_BUFFER_SIZE to a non-zero value. [rank3]:[E903 20:05:00.160547272 ProcessGroupNCCL.cpp:2584] [PG ID 0 PG GUID 0(default_pg) Rank 3] First PG on this rank to signal dumping. [rank2]:[E903 20:05:00.249766401 ProcessGroupNCCL.cpp:685] [Rank 2] Watchdog caught collective operation timeout: WorkNCCL(SeqNum=1, OpType=ALLREDUCE, NumelIn=1, NumelOut=1, Timeout(ms)=600000) ran for 600069 milliseconds before timing out. [rank2]:[E903 20:05:00.249872834 ProcessGroupNCCL.cpp:2252] [PG ID 0 PG GUID 0(default_pg) Rank 2] failure detected by watchdog at work sequence id: 1 PG status: last enqueued work: 1, last completed work: -1 [rank2]:[E903 20:05:00.249881826 ProcessGroupNCCL.cpp:732] Stack trace of the failed collective not found, potentially because FlightRecorder is disabled. You can enable it by setting TORCH_NCCL_TRACE_BUFFER_SIZE to a non-zero value. [rank2]:[E903 20:05:00.249934338 ProcessGroupNCCL.cpp:2584] [PG ID 0 PG GUID 0(default_pg) Rank 2] First PG on this rank to signal dumping. [rank3]:[E903 20:05:00.459968512 ProcessGroupNCCL.cpp:1870] [PG ID 0 PG GUID 0(default_pg) Rank 3] Received a dump signal due to a collective timeout from this local rank and we will try our best to dump the debug info. Last enqueued NCCL work: 1, last completed NCCL work: -1.This is most likely caused by incorrect usages of collectives, e.g., wrong sizes used across ranks, the order of collectives is not same for all ranks or the scheduled collective, for some reason, didn't run. Additionally, this can be caused by GIL deadlock or other reasons such as network errors or bugs in the communications library (e.g. NCCL), etc. [rank0]:[E903 20:05:00.459959936 ProcessGroupNCCL.cpp:1870] [PG ID 0 PG GUID 0(default_pg) Rank 0] Received a dump signal due to a collective timeout from this local rank and we will try our best to dump the debug info. Last enqueued NCCL work: 1, last completed NCCL work: -1.This is most likely caused by incorrect usages of collectives, e.g., wrong sizes used across ranks, the order of collectives is not same for all ranks or the scheduled collective, for some reason, didn't run. Additionally, this can be caused by GIL deadlock or other reasons such as network errors or bugs in the communications library (e.g. NCCL), etc. [rank2]:[E903 20:05:00.459993568 ProcessGroupNCCL.cpp:1870] [PG ID 0 PG GUID 0(default_pg) Rank 2] Received a dump signal due to a collective timeout from this local rank and we will try our best to dump the debug info. Last enqueued NCCL work: 1, last completed NCCL work: -1.This is most likely caused by incorrect usages of collectives, e.g., wrong sizes used across ranks, the order of collectives is not same for all ranks or the scheduled collective, for some reason, didn't run. Additionally, this can be caused by GIL deadlock or other reasons such as network errors or bugs in the communications library (e.g. NCCL), etc. [rank3]:[E903 20:05:00.460112000 ProcessGroupNCCL.cpp:1589] [PG ID 0 PG GUID 0(default_pg) Rank 3] ProcessGroupNCCL preparing to dump debug info. Include stack trace: 1 [rank0]:[E903 20:05:00.460113952 ProcessGroupNCCL.cpp:1589] [PG ID 0 PG GUID 0(default_pg) Rank 0] ProcessGroupNCCL preparing to dump debug info. Include stack trace: 1 [rank2]:[E903 20:05:00.460117472 ProcessGroupNCCL.cpp:1589] [PG ID 0 PG GUID 0(default_pg) Rank 2] ProcessGroupNCCL preparing to dump debug info. Include stack trace: 1 [rank1]:[E903 20:05:00.463863369 ProcessGroupNCCL.cpp:1870] [PG ID 0 PG GUID 0(default_pg) Rank 1] Received a dump signal due to a collective timeout from this local rank and we will try our best to dump the debug info. Last enqueued NCCL work: 1, last completed NCCL work: -1.This is most likely caused by incorrect usages of collectives, e.g., wrong sizes used across ranks, the order of collectives is not same for all ranks or the scheduled collective, for some reason, didn't run. Additionally, this can be caused by GIL deadlock or other reasons such as network errors or bugs in the communications library (e.g. NCCL), etc. [rank1]:[E903 20:05:00.464040010 ProcessGroupNCCL.cpp:1589] [PG ID 0 PG GUID 0(default_pg) Rank 1] ProcessGroupNCCL preparing to dump debug info. Include stack trace: 1 140706823c44:16583:17177 [1] NCCL INFO misc/socket.cc:64 -> 3 140706823c44:16583:17177 [1] NCCL INFO misc/socket.cc:81 -> 3 140706823c44:16583:17177 [1] NCCL INFO misc/socket.cc:864 -> 3 140706823c44:16583:16885 [1] NCCL INFO misc/socket.cc:916 -> 3 Creation of the build directory /opt/Megatron-LM/megatron/legacy/fused_kernels/build failed 140706823c44:16582:17179 [0] NCCL INFO misc/socket.cc:64 -> 3 140706823c44:16582:17179 [0] NCCL INFO misc/socket.cc:81 -> 3 140706823c44:16582:17179 [0] NCCL INFO misc/socket.cc:864 -> 3 140706823c44:16582:16886 [0] NCCL INFO misc/socket.cc:916 -> 3 140706823c44:16585:17180 [3] NCCL INFO misc/socket.cc:64 -> 3 140706823c44:16585:17180 [3] NCCL INFO misc/socket.cc:81 -> 3 140706823c44:16585:17180 [3] NCCL INFO misc/socket.cc:864 -> 3 140706823c44:16585:16890 [3] NCCL INFO misc/socket.cc:916 -> 3 Creation of the build directory /opt/Megatron-LM/megatron/legacy/fused_kernels/build failed 140706823c44:16584:17182 [2] NCCL INFO misc/socket.cc:64 -> 3 140706823c44:16584:17182 [2] NCCL INFO misc/socket.cc:81 -> 3 140706823c44:16584:17182 [2] NCCL INFO misc/socket.cc:864 -> 3 140706823c44:16584:16889 [2] NCCL INFO misc/socket.cc:916 -> 3 Creation of the build directory /opt/Megatron-LM/megatron/legacy/fused_kernels/build failed 140706823c44:16583:17177 [1] NCCL INFO comm 0xafcbcf8345e0 rank 1 nranks 4 cudaDev 1 busId 906000 - Abort COMPLETE [rank1]:[E903 20:06:01.727205717 ProcessGroupNCCL.cpp:746] [Rank 1] Some NCCL operations have failed or timed out. Due to the asynchronous nature of CUDA kernels, subsequent GPU operations might run on corrupted/incomplete data. [rank1]:[E903 20:06:01.727244053 ProcessGroupNCCL.cpp:760] [Rank 1] To avoid data inconsistency, we are taking the entire process down. [rank1]:[E903 20:06:01.727875735 ProcessGroupNCCL.cpp:2068] [PG ID 0 PG GUID 0(default_pg) Rank 1] Process group watchdog thread terminated with exception: [Rank 1] Watchdog caught collective operation timeout: WorkNCCL(SeqNum=1, OpType=ALLREDUCE, NumelIn=1, NumelOut=1, Timeout(ms)=600000) ran for 600011 milliseconds before timing out. Exception raised from checkTimeout at /build/pytorch/torch/csrc/distributed/c10d/ProcessGroupNCCL.cpp:688 (most recent call first): frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) + 0xd0 (0xfdcd77ee4180 in /usr/local/lib/python3.10/dist-packages/torch/lib/libc10.so) frame #1: c10d::ProcessGroupNCCL::WorkNCCL::checkTimeout(std::optional<std::chrono::duration<long, std::ratio<1l, 1000l> > >) + 0x22c (0xfdcd78e09b7c in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so) frame #2: c10d::ProcessGroupNCCL::Watchdog::runLoop() + 0xdfc (0xfdcd78e1038c in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so) frame #3: c10d::ProcessGroupNCCL::Watchdog::run() + 0xcc (0xfdcd78e118ac in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so) frame #4: <unknown function> + 0xdaa9c (0xfdcd7797aa9c in /lib/aarch64-linux-gnu/libstdc++.so.6) frame #5: <unknown function> + 0x7d5b8 (0xfdcdb9a6d5b8 in /lib/aarch64-linux-gnu/libc.so.6) frame #6: <unknown function> + 0xe5edc (0xfdcdb9ad5edc in /lib/aarch64-linux-gnu/libc.so.6) terminate called after throwing an instance of 'c10::DistBackendError' [rank1]: Traceback (most recent call last): [rank1]: File "/opt/Megatron-LM/pretrain_gpt.py", line 245, in <module> [rank1]: pretrain( [rank1]: File "/opt/Megatron-LM/megatron/training/training.py", line 193, in pretrain [rank1]: initialize_megatron(extra_args_provider=extra_args_provider, [rank1]: File "/opt/Megatron-LM/megatron/training/initialize.py", line 100, in initialize_megatron [rank1]: _compile_dependencies() [rank1]: File "/opt/Megatron-LM/megatron/training/initialize.py", line 173, in _compile_dependencies [rank1]: torch.distributed.barrier() [rank1]: File "/usr/local/lib/python3.10/dist-packages/torch/distributed/c10d_logger.py", line 81, in wrapper [rank1]: return func(*args, **kwargs) [rank1]: File "/usr/local/lib/python3.10/dist-packages/torch/distributed/distributed_c10d.py", line 4811, in barrier [rank1]: work = group.barrier(opts=opts) [rank1]: torch.distributed.DistBackendError: NCCL communicator was aborted on rank 1. what(): [PG ID 0 PG GUID 0(default_pg) Rank 1] Process group watchdog thread terminated with exception: [Rank 1] Watchdog caught collective operation timeout: WorkNCCL(SeqNum=1, OpType=ALLREDUCE, NumelIn=1, NumelOut=1, Timeout(ms)=600000) ran for 600011 milliseconds before timing out. Exception raised from checkTimeout at /build/pytorch/torch/csrc/distributed/c10d/ProcessGroupNCCL.cpp:688 (most recent call first): frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) + 0xd0 (0xfdcd77ee4180 in /usr/local/lib/python3.10/dist-packages/torch/lib/libc10.so) frame #1: c10d::ProcessGroupNCCL::WorkNCCL::checkTimeout(std::optional<std::chrono::duration<long, std::ratio<1l, 1000l> > >) + 0x22c (0xfdcd78e09b7c in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so) frame #2: c10d::ProcessGroupNCCL::Watchdog::runLoop() + 0xdfc (0xfdcd78e1038c in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so) frame #3: c10d::ProcessGroupNCCL::Watchdog::run() + 0xcc (0xfdcd78e118ac in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so) frame #4: <unknown function> + 0xdaa9c (0xfdcd7797aa9c in /lib/aarch64-linux-gnu/libstdc++.so.6) frame #5: <unknown function> + 0x7d5b8 (0xfdcdb9a6d5b8 in /lib/aarch64-linux-gnu/libc.so.6) frame #6: <unknown function> + 0xe5edc (0xfdcdb9ad5edc in /lib/aarch64-linux-gnu/libc.so.6) Exception raised from run at /build/pytorch/torch/csrc/distributed/c10d/ProcessGroupNCCL.cpp:2074 (most recent call first): frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) + 0xd0 (0xfdcd77ee4180 in /usr/local/lib/python3.10/dist-packages/torch/lib/libc10.so) frame #1: <unknown function> + 0x11b88e0 (0xfdcd78dc88e0 in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so) frame #2: c10d::ProcessGroupNCCL::Watchdog::run() + 0x45c (0xfdcd78e11c3c in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so) frame #3: <unknown function> + 0xdaa9c (0xfdcd7797aa9c in /lib/aarch64-linux-gnu/libstdc++.so.6) frame #4: <unknown function> + 0x7d5b8 (0xfdcdb9a6d5b8 in /lib/aarch64-linux-gnu/libc.so.6) frame #5: <unknown function> + 0xe5edc (0xfdcdb9ad5edc in /lib/aarch64-linux-gnu/libc.so.6) 140706823c44:16585:17180 [3] NCCL INFO comm 0xba60cf534e60 rank 3 nranks 4 cudaDev 3 busId 1906000 - Abort COMPLETE [rank3]:[E903 20:06:01.856367983 ProcessGroupNCCL.cpp:746] [Rank 3] Some NCCL operations have failed or timed out. Due to the asynchronous nature of CUDA kernels, subsequent GPU operations might run on corrupted/incomplete data. [rank3]:[E903 20:06:01.856392463 ProcessGroupNCCL.cpp:760] [Rank 3] To avoid data inconsistency, we are taking the entire process down. 140706823c44:16582:17179 [0] NCCL INFO comm 0xbdefb65320e0 rank 0 nranks 4 cudaDev 0 busId 806000 - Abort COMPLETE [rank3]:[E903 20:06:01.856965041 ProcessGroupNCCL.cpp:2068] [PG ID 0 PG GUID 0(default_pg) Rank 3] Process group watchdog thread terminated with exception: [Rank 3] Watchdog caught collective operation timeout: WorkNCCL(SeqNum=1, OpType=ALLREDUCE, NumelIn=1, NumelOut=1, Timeout(ms)=600000) ran for 600084 milliseconds before timing out. Exception raised from checkTimeout at /build/pytorch/torch/csrc/distributed/c10d/ProcessGroupNCCL.cpp:688 (most recent call first): frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) + 0xd0 (0xe7e01d684180 in /usr/local/lib/python3.10/dist-packages/torch/lib/libc10.so) frame #1: c10d::ProcessGroupNCCL::WorkNCCL::checkTimeout(std::optional<std::chrono::duration<long, std::ratio<1l, 1000l> > >) + 0x22c (0xe7e01e5a9b7c in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so) frame #2: c10d::ProcessGroupNCCL::Watchdog::runLoop() + 0xdfc (0xe7e01e5b038c in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so) frame #3: c10d::ProcessGroupNCCL::Watchdog::run() + 0xcc (0xe7e01e5b18ac in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so) frame #4: <unknown function> + 0xdaa9c (0xe7e01d11aa9c in /lib/aarch64-linux-gnu/libstdc++.so.6) frame #5: <unknown function> + 0x7d5b8 (0xe7e05f20d5b8 in /lib/aarch64-linux-gnu/libc.so.6) frame #6: <unknown function> + 0xe5edc (0xe7e05f275edc in /lib/aarch64-linux-gnu/libc.so.6) terminate called after throwing an instance of 'c10::DistBackendError' [rank0]:[E903 20:06:01.857166705 ProcessGroupNCCL.cpp:746] [Rank 0] Some NCCL operations have failed or timed out. Due to the asynchronous nature of CUDA kernels, subsequent GPU operations might run on corrupted/incomplete data. [rank0]:[E903 20:06:01.857203857 ProcessGroupNCCL.cpp:760] [Rank 0] To avoid data inconsistency, we are taking the entire process down. what(): [PG ID 0 PG GUID 0(default_pg) Rank 3] Process group watchdog thread terminated with exception: [Rank 3] Watchdog caught collective operation timeout: WorkNCCL(SeqNum=1, OpType=ALLREDUCE, NumelIn=1, NumelOut=1, Timeout(ms)=600000) ran for 600084 milliseconds before timing out. Exception raised from checkTimeout at /build/pytorch/torch/csrc/distributed/c10d/ProcessGroupNCCL.cpp:688 (most recent call first): frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) + 0xd0 (0xe7e01d684180 in /usr/local/lib/python3.10/dist-packages/torch/lib/libc10.so) frame #1: c10d::ProcessGroupNCCL::WorkNCCL::checkTimeout(std::optional<std::chrono::duration<long, std::ratio<1l, 1000l> > >) + 0x22c (0xe7e01e5a9b7c in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so) frame #2: c10d::ProcessGroupNCCL::Watchdog::runLoop() + 0xdfc (0xe7e01e5b038c in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so) frame #3: c10d::ProcessGroupNCCL::Watchdog::run() + 0xcc (0xe7e01e5b18ac in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so) frame #4: <unknown function> + 0xdaa9c (0xe7e01d11aa9c in /lib/aarch64-linux-gnu/libstdc++.so.6) frame #5: <unknown function> + 0x7d5b8 (0xe7e05f20d5b8 in /lib/aarch64-linux-gnu/libc.so.6) frame #6: <unknown function> + 0xe5edc (0xe7e05f275edc in /lib/aarch64-linux-gnu/libc.so.6) Exception raised from run at /build/pytorch/torch/csrc/distributed/c10d/ProcessGroupNCCL.cpp:2074 (most recent call first): frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) + 0xd0 (0xe7e01d684180 in /usr/local/lib/python3.10/dist-packages/torch/lib/libc10.so) frame #1: <unknown function> + 0x11b88e0 (0xe7e01e5688e0 in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so) frame #2: c10d::ProcessGroupNCCL::Watchdog::run() + 0x45c (0xe7e01e5b1c3c in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so) frame #3: <unknown function> + 0xdaa9c (0xe7e01d11aa9c in /lib/aarch64-linux-gnu/libstdc++.so.6) frame #4: <unknown function> + 0x7d5b8 (0xe7e05f20d5b8 in /lib/aarch64-linux-gnu/libc.so.6) frame #5: <unknown function> + 0xe5edc (0xe7e05f275edc in /lib/aarch64-linux-gnu/libc.so.6) [rank0]:[E903 20:06:01.857829171 ProcessGroupNCCL.cpp:2068] [PG ID 0 PG GUID 0(default_pg) Rank 0] Process group watchdog thread terminated with exception: [Rank 0] Watchdog caught collective operation timeout: WorkNCCL(SeqNum=1, OpType=ALLREDUCE, NumelIn=1, NumelOut=1, Timeout(ms)=600000) ran for 600086 milliseconds before timing out. Exception raised from checkTimeout at /build/pytorch/torch/csrc/distributed/c10d/ProcessGroupNCCL.cpp:688 (most recent call first): frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) + 0xd0 (0xf144dda24180 in /usr/local/lib/python3.10/dist-packages/torch/lib/libc10.so) frame #1: c10d::ProcessGroupNCCL::WorkNCCL::checkTimeout(std::optional<std::chrono::duration<long, std::ratio<1l, 1000l> > >) + 0x22c (0xf144de949b7c in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so) frame #2: c10d::ProcessGroupNCCL::Watchdog::runLoop() + 0xdfc (0xf144de95038c in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so) frame #3: c10d::ProcessGroupNCCL::Watchdog::run() + 0xcc (0xf144de9518ac in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so) frame #4: <unknown function> + 0xdaa9c (0xf144dd4baa9c in /lib/aarch64-linux-gnu/libstdc++.so.6) frame #5: <unknown function> + 0x7d5b8 (0xf1451f5ad5b8 in /lib/aarch64-linux-gnu/libc.so.6) frame #6: <unknown function> + 0xe5edc (0xf1451f615edc in /lib/aarch64-linux-gnu/libc.so.6) terminate called after throwing an instance of 'c10::DistBackendError' [rank0]: Traceback (most recent call last): [rank0]: File "/opt/Megatron-LM/pretrain_gpt.py", line 245, in <module> [rank0]: pretrain( [rank0]: File "/opt/Megatron-LM/megatron/training/training.py", line 193, in pretrain [rank0]: initialize_megatron(extra_args_provider=extra_args_provider, [rank0]: File "/opt/Megatron-LM/megatron/training/initialize.py", line 100, in initialize_megatron [rank0]: _compile_dependencies() [rank0]: File "/opt/Megatron-LM/megatron/training/initialize.py", line 173, in _compile_dependencies [rank0]: torch.distributed.barrier() [rank0]: File "/usr/local/lib/python3.10/dist-packages/torch/distributed/c10d_logger.py", line 81, in wrapper [rank0]: return func(*args, **kwargs) [rank0]: File "/usr/local/lib/python3.10/dist-packages/torch/distributed/distributed_c10d.py", line 4811, in barrier [rank0]: work = group.barrier(opts=opts) [rank0]: torch.distributed.DistBackendError: NCCL communicator was aborted on rank 0. what(): [PG ID 0 PG GUID 0(default_pg) Rank 0] Process group watchdog thread terminated with exception: [Rank 0] Watchdog caught collective operation timeout: WorkNCCL(SeqNum=1, OpType=ALLREDUCE, NumelIn=1, NumelOut=1, Timeout(ms)=600000) ran for 600086 milliseconds before timing out. Exception raised from checkTimeout at /build/pytorch/torch/csrc/distributed/c10d/ProcessGroupNCCL.cpp:688 (most recent call first): frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) + 0xd0 (0xf144dda24180 in /usr/local/lib/python3.10/dist-packages/torch/lib/libc10.so) frame #1: c10d::ProcessGroupNCCL::WorkNCCL::checkTimeout(std::optional<std::chrono::duration<long, std::ratio<1l, 1000l> > >) + 0x22c (0xf144de949b7c in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so) frame #2: c10d::ProcessGroupNCCL::Watchdog::runLoop() + 0xdfc (0xf144de95038c in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so) frame #3: c10d::ProcessGroupNCCL::Watchdog::run() + 0xcc (0xf144de9518ac in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so) frame #4: <unknown function> + 0xdaa9c (0xf144dd4baa9c in /lib/aarch64-linux-gnu/libstdc++.so.6) frame #5: <unknown function> + 0x7d5b8 (0xf1451f5ad5b8 in /lib/aarch64-linux-gnu/libc.so.6) frame #6: <unknown function> + 0xe5edc (0xf1451f615edc in /lib/aarch64-linux-gnu/libc.so.6) Exception raised from run at /build/pytorch/torch/csrc/distributed/c10d/ProcessGroupNCCL.cpp:2074 (most recent call first): frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) + 0xd0 (0xf144dda24180 in /usr/local/lib/python3.10/dist-packages/torch/lib/libc10.so) frame #1: <unknown function> + 0x11b88e0 (0xf144de9088e0 in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so) frame #2: c10d::ProcessGroupNCCL::Watchdog::run() + 0x45c (0xf144de951c3c in /usr/local/lib/python3.10/dist-packages/torch/lib/libtorch_cuda.so) frame #3: <unknown function> + 0xdaa9c (0xf144dd4baa9c in /lib/aarch64-linux-gnu/libstdc++.so.6) frame #4: <unknown function> + 0x7d5b8 (0xf1451f5ad5b8 in /lib/aarch64-linux-gnu/libc.so.6) frame #5: <unknown function> + 0xe5edc (0xf1451f615edc in /lib/aarch64-linux-gnu/libc.so.6) W0903 20:06:01.224000 16517 torch/distributed/elastic/multiprocessing/api.py:900] Sending process 16582 closing signal SIGTERM W0903 20:06:01.225000 16517 torch/distributed/elastic/multiprocessing/api.py:900] Sending process 16584 closing signal SIGTERM W0903 20:06:01.226000 16517 torch/distributed/elastic/multiprocessing/api.py:900] Sending process 16585 closing signal SIGTERM E0903 20:06:01.856000 16517 torch/distributed/elastic/multiprocessing/api.py:874] failed (exitcode: -6) local_rank: 1 (pid: 16583) of binary: /usr/bin/python3 Traceback (most recent call last): File "/usr/local/bin/torchrun", line 7, in <module> sys.exit(main()) File "/usr/local/lib/python3.10/dist-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py", line 357, in wrapper return f(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/torch/distributed/run.py", line 901, in main run(args) File "/usr/local/lib/python3.10/dist-packages/torch/distributed/run.py", line 892, in run elastic_launch( File "/usr/local/lib/python3.10/dist-packages/torch/distributed/launcher/api.py", line 143, in __call__ return launch_agent(self._config, self._entrypoint, list(args)) File "/usr/local/lib/python3.10/dist-packages/torch/distributed/launcher/api.py", line 277, in launch_agent raise ChildFailedError( torch.distributed.elastic.multiprocessing.errors.ChildFailedError: ====================================================== pretrain_gpt.py FAILED ------------------------------------------------------ Failures: <NO_OTHER_FAILURES> ------------------------------------------------------ Root Cause (first observed failure): [0]: time : 2025-09-03_20:06:01 host : 140706823c44 rank : 1 (local_rank: 1) exitcode : -6 (pid: 16583) error_file: <N/A> traceback : Signal 6 (SIGABRT) received by PID 16583 ======================================================

filetype

请帮我分析并解决这个错误: .ConsumerCoordinator : [Consumer clientId=consumer-dangerball-3, groupId=dangerball] Successfully joined group with generation Generation{generationId=3, memberId='consumer-dangerball-3-f10230bd-6cb2-4f81-ad18-e66470f27018', protocol='range'} 2025-07-31T20:51:25.364+08:00 ERROR 93468 --- [sportsbook-transaction] [-StreamThread-1] org.apache.kafka.streams.KafkaStreams : stream-client [sportsbook-transaction-767a07f9-a87e-4167-b6f7-0ded4422798f] Encountered the following exception during processing and the registered exception handler opted to SHUTDOWN_CLIENT. The streams client is going to shut down now. org.apache.kafka.streams.errors.StreamsException: org.apache.kafka.common.errors.InconsistentGroupProtocolException: The group member's supported protocols are incompatible with those of existing members or first group member tried to join with empty protocol type or empty protocol list. at org.apache.kafka.streams.processor.internals.StreamThread.runLoop(StreamThread.java:657) ~[kafka-streams-7.6.0-ccs.jar:na] at org.apache.kafka.streams.processor.internals.StreamThread.run(StreamThread.java:579) ~[kafka-streams-7.6.0-ccs.jar:na] Caused by: org.apache.kafka.common.errors.InconsistentGroupProtocolException: The group member's supported protocols are incompatible with those of existing members or first group member tried to join with empty protocol type or empty protocol list. 2025-07-31T20:51:25.365+08:00 INFO 93468 --- [sportsbook-transaction] [-StreamThread-1] org.apache.kafka.streams.KafkaStreams : stream-client [sportsbook-transaction-767a07f9-a87e-4167-b6f7-0ded4422798f] State transition from REBALANCING to PENDING_ERROR

filetype

## crash date:2025-08-22 17:30:51 ## exe: MediaServer ## signal: 11 ## version: ZLMediaKit(git hash:/,branch:,build time:2025-08-14T16:01:23) ## stack: [0]: ./MediaServer() [0x596f94] sig_crash(int) System.cpp:? [1]: /usr/lib64/libc.so.6(+0x394f0) [0x7f143b81c4f0] ?? ??:0 [2]: ./MediaServer(_ZN8mediakit9RtpServer7getPortEv+0x1c) [0x70338c] mediakit::RtpServer::getPort() ??:? [3]: ./MediaServer(_Z13openRtpServertRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiS6_bj+0x1f6) [0x5b3566] openRtpServer(unsigned short, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, unsigned int) ??:? [4]: ./MediaServer() [0x5b38bf] installWebApi()::{lambda(toolkit::SockInfo&, mediakit::StrCaseMap&, HttpAllArgs<std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, mediakit::StrCaseCompare, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&, Json::Value&)#29}::operator()(toolkit::SockInfo&, mediakit::StrCaseMap&, HttpAllArgs<std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, mediakit::StrCaseCompare, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&, Json::Value&) const [clone .isra.1917] WebApi.cpp:? [5]: ./MediaServer() [0x59b516] std::_Function_handler<void (toolkit::SockInfo&, mediakit::StrCaseMap&, HttpAllArgs<std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, mediakit::StrCaseCompare, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&, Json::Value&, mediakit::HttpResponseInvokerImp const&), toApi(std::function<void (toolkit::SockInfo&, mediakit::StrCaseMap&, HttpAllArgs<std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, mediakit::StrCaseCompare, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&, Json::Value&)> const&)::{lambda(toolkit::SockInfo&, mediakit::StrCaseMap&, HttpAllArgs<std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, mediakit::StrCaseCompare, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&, Json::Value&, mediakit::HttpResponseInvokerImp const&)#1}>::_M_invoke(std::_Any_data const&, toolkit::SockInfo&, mediakit::StrCaseMap&, HttpAllArgs<std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, mediakit::StrCaseCompare, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&, Json::Value&, mediakit::HttpResponseInvokerImp const&) WebApi.cpp:? [6]: ./MediaServer() [0x5b756c] toApi(std::function<void (toolkit::SockInfo&, mediakit::StrCaseMap&, HttpAllArgs<std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, mediakit::StrCaseCompare, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&, Json::Value&, mediakit::HttpResponseInvokerImp const&)> const&)::{lambda(mediakit::Parser const&, mediakit::HttpResponseInvokerImp const&, toolkit::SockInfo&)#1}::operator()(mediakit::Parser const&, mediakit::HttpResponseInvokerImp const&, toolkit::SockInfo&) const WebApi.cpp:? [7]: ./MediaServer() [0x5b6cb7] addHttpListener()::{lambda(mediakit::Parser const&, mediakit::HttpResponseInvokerImp const&, bool&, toolkit::SockInfo&)#2}::operator()(mediakit::Parser const&, mediakit::HttpResponseInvokerImp const&, bool&, toolkit::SockInfo&) const [clone .isra.2033] WebApi.cpp:? [8]: ./MediaServer(_ZN8mediakit11HttpSession13emitHttpEventEb+0x2c1) [0x68cb71] mediakit::HttpSession::emitHttpEvent(bool) ??:? [9]: ./MediaServer() [0x68cea2] std::_Function_handler<bool (char const*, unsigned long), mediakit::HttpSession::Handle_Req_POST(long&)::{lambda(char const*, unsigned long)#2}>::_M_invoke(std::_Any_data const&, char const*&&, unsigned long&&) HttpSession.cpp:? [10]: ./MediaServer(_ZN8mediakit11HttpSession13onRecvContentEPKcm+0x34) [0x688494] mediakit::HttpSession::onRecvContent(char const*, unsigned long) ??:? [11]: ./MediaServer(_ZN8mediakit19HttpRequestSplitter5inputEPKcm+0x248) [0x687bd8] mediakit::HttpRequestSplitter::input(char const*, unsigned long) ??:? [12]: ./MediaServer() [0x60e2a8] std::_Function_handler<void (std::shared_ptr<toolkit::Buffer> const&, sockaddr*, int), toolkit::TcpServer::onAcceptConnection(std::shared_ptr<toolkit::Socket> const&)::{lambda(std::shared_ptr<toolkit::Buffer> const&, sockaddr*, int)#1}>::_M_invoke(std::_Any_data const&, std::shared_ptr<toolkit::Buffer> const&, sockaddr*&&, int&&) TcpServer.cpp:? [13]: ./MediaServer(_ZN7toolkit6Socket6onReadERKSt10shared_ptrINS_6SockFDEEb+0x1a8) [0x603298] toolkit::Socket::onRead(std::shared_ptr<toolkit::SockFD> const&, bool) ??:? [14]: ./MediaServer() [0x60533f] std::_Function_handler<void (int), toolkit::Socket::attachEvent(std::shared_ptr<toolkit::SockFD> const&)::{lambda(int)#1}>::_M_invoke(std::_Any_data const&, int&&) Socket.cpp:? [15]: ./MediaServer(_ZN7toolkit11EventPoller7runLoopEbb+0x2b7) [0x621b07] toolkit::EventPoller::runLoop(bool, bool) ??:? [16]: /usr/lib64/libstdc++.so.6(+0xbc5ff) [0x7f143bbf55ff] ?? ??:0 [17]: /usr/lib64/libpthread.so.0(+0x8f1b) [0x7f143bccaf1b] ?? ??:0 [18]: /usr/lib64/libc.so.6(clone+0x40) [0x7f143b8db1c0] ?? ??:0 2025-08-22 17:30:52.570 W MediaServer[1270120-MediaServer] System.cpp:137 startDaemon | 子进程退出 2025-08-22 17:30:55.570 D MediaServer[1270120-MediaServer] System.cpp:127 startDaemon | 启动子进程:1272485 2025-08-22 17:30:55.571 I MediaServer[1272485-MediaServer] System.cpp:159 systemSetup | core文件大小设置为:18446744073709551615 2025-08-22 17:30:55.571 I MediaServer[1272485-MediaServer] System.cpp:168 systemSetup | 文件最大描述符个数设置为:524288 2025-08-22 17:30:55.571 I MediaServer[1272485-MediaServer] main.cpp:230 start_main | ZLMediaKit(git hash:/,branch:,build time:2025-08-14T16:01:23) 2025-08-22 17:30:55.604 D MediaServer[1272485-MediaServer] SSLBox.cpp:174 setContext | Add certificate of: default.zlmediakit.com 2025-08-22 17:30:55.604 D MediaServer[1272485-stamp thread] util.cpp:366 operator() | Stamp thread started 2025-08-22 17:30:55.620 I MediaServer[1272485-MediaServer] EventPoller.cpp:466 EventPollerPool | EventPoller created size: 32 2025-08-22 17:30:55.621 I MediaServer[1272485-MediaServer] TcpServer.cpp:200 start_l | TCP server listening on [::]: 554 2025-08-22 17:30:55.621 I MediaServer[1272485-MediaServer] TcpServer.cpp:200 start_l | TCP server listening on [::]: 1935 2025-08-22 17:30:55.622 I MediaServer[1272485-MediaServer] TcpServer.cpp:200 start_l | TCP server listening on [::]: 19350 2025-08-22 17:30:55.622 I MediaServer[1272485-MediaServer] TcpServer.cpp:200 start_l | TCP server listening on [::]: 8003 2025-08-22 17:30:55.623 I MediaServer[1272485-MediaServer] TcpServer.cpp:200 start_l | TCP server listening on [::]: 1443 2025-08-22 17:30:55.624 I MediaServer[1272485-MediaServer] UdpServer.cpp:104 start_l | UDP server bind to [::]: 8000 2025-08-22 17:30:55.625 I MediaServer[1272485-MediaServer] TcpServer.cpp:200 start_l | TCP server listening on [::]: 8000 2025-08-22 17:30:55.625 I MediaServer[1272485-MediaServer] UdpServer.cpp:104 start_l | UDP server bind to [::]: 9000 2025-08-22 17:30:55.625 I MediaServer[1272485-MediaServer] main.cpp:370 start_main | 已启动http api 接口 2025-08-22 17:30:55.626 I MediaServer[1272485-MediaServer] main.cpp:372 start_main | 已启动http hook 接口 2025-08-22 17:30:55.636 T MediaServer[1272485-event poller 1] HttpSession.cpp:27 HttpSession | 1-106(172.20.8.7:50610) 2025-08-22 17:30:55.637 D MediaServer[1272485-event poller 1] WebApi.cpp:250 http api debug | # request: POST /index/api/setServerConfig # header: Accept-Encoding : gzip Connection : close Content-Length : 1137 Content-Type : application/x-www-form-urlencoded Host : 172.20.8.7:8003 User-Agent : okhttp/4.9.0 # content: secret=035c73f7-bb6b-4889-a715-d9eb2d1925jl&hook.on_stream_changed=https%3A%2F%2Fsiteproxy.ruqli.workers.dev%3A443%2Fhttp%2F172.20.8.7%3A18087%2Fstream-server%2Findex%2Fhook%2Fon_stream_changed&hook.on_flow_report=&hook.on_publish=https%3A%2F%2Fsiteproxy.ruqli.workers.dev%3A443%2Fhttp%2F172.20.8.7%3A18087%2Fstream-server%2Findex%2Fhook%2Fon_publish&ffmpeg.cmd=%25s%20-fflags%20nobuffer%20-i%20%25s%20-c%3Aa%20aac%20-strict%20-2%20-ar%2044100%20-ab%2048k%20-c%3Av%20libx264%20%20-f%20flv%20%25s&hook.enable=1&hook.on_http_access=&hook.on_stream_not_found=https%3A%2F%2Fsiteproxy.ruqli.workers.dev%3A443%2Fhttp%2F172.20.8.7%3A18087%2Fstream-server%2Findex%2Fhook%2Fon_stream_not_found&rtp_proxy.port_range=30000-38700&hook.on_record_mp4=https%3A%2F%2Fsiteproxy.ruqli.workers.dev%3A443%2Fhttp%2F127.0.0.1%3A18081%2Fstream-storage%2Fapi%2Frecord%2Fon_record_mp4&hook.on_stream_none_reader=https%3A%2F%2Fsiteproxy.ruqli.workers.dev%3A443%2Fhttp%2F172.20.8.7%3A18087%2Fstream-server%2Findex%2Fhook%2Fon_stream_none_reader&hook.on_shell_login=https%3A%2F%2Fsiteproxy.ruqli.workers.dev%3A443%2Fhttp%2F172.20.8.7%3A18087%2Fstream-server%2Findex%2Fhook%2Fon_shell_login&hook.on_play=https%3A%2F%2Fsiteproxy.ruqli.workers.dev%3A443%2Fhttp%2F172.20.8.7%3A18087%2Fstream-server%2Findex%2Fhook%2Fon_play&api.secret=035c73f7-bb6b-4889-a715-d9eb2d1925jl&hook.on_server_started=https%3A%2F%2Fsiteproxy.ruqli.workers.dev%3A443%2Fhttp%2F172.20.8.7%3A18087%2Fstream-server%2Findex%2Fhook%2Fon_server_started # response: { "changed" : 0, "code" : 0 } 2025-08-22 17:30:55.637 T MediaServer[1272485-event poller 1] HttpSession.cpp:119 onError | 1-106(172.20.8.7:50610) close connection after send http body completed. 2025-08-22 17:30:55.637 T MediaServer[1272485-event poller 1] HttpSession.cpp:33 ~HttpSession | 1-106(172.20.8.7:50610) 2025-08-22 17:31:00.001 T MediaServer[1272485-event poller 1] HttpSession.cpp:27 HttpSession | 2-105(172.20.8.7:50624) 分析获取直播流时报错

资源评论
用户头像
首席程序IT
2025.06.27
无需多线程,单线程异步操作更安全。
用户头像
df595420469
2025.05.17
事件循环让程序响应更高效。
用户头像
梁肖松
2025.04.03
对于喜欢异步编程的Python开发者,runloop.py提供了一个简洁的解决方案。
用户头像
黄涵奕
2025.03.28
学习成本低,适合新手入门异步编程。
潜水小透明
  • 粉丝: 50
上传资源 快速赚钱