WARNING: Unable to open an initial console

本文介绍了解决WARNING:Unabletoopenaninitialconsole错误的方法,主要通过配置内核选项和创建/dev/console及/dev/null设备文件来实现。

WARNING: Unable to open an initial console

这个主要是没有建立控制台,解决方式:

内核选择如下选项:

Device Drivers  --->
Character devices  --->
    [*] Virtual terminal
 Serial drivers  --->
         <*> 8250/16550 and compatible serial support 
   [*]   Console on 8250/16550 and compatible serial port
 (2) Maximum number of 8250/16550 serial ports 
 (2) Number of 8250/16550 serial ports to register at runtime  
    [*] Unix98 PTY support


缺少 /dev/console 和 /dev/null
在建立他们之前UDEV就先使用到他们了

文件系统中建立如下设备文件:
cd /dev
mknod -m 660 console c 5 1
mknod -m 660 null c 1 3


备注:console的权限最好是600,而null的权限最好是666


/dts-v1/; / { #address-cells = <2>; #size-cells = <2>; compatible = "riscv-virtio"; model = "riscv-virtio,qemu"; chosen { bootargs = "console=ttyS0,115200 earlycon root=/dev/vda2 rw rootwait"; stdout-path = "serial0:115200n8"; }; memory@80000000 { device_type = "memory"; reg = <0x0 0x80000000 0x0 0x8000000>; }; cpus { #address-cells = <1>; #size-cells = <0>; timebase-frequency = <10000000>; cpu0: cpu@0 { device_type = "cpu"; reg = <0>; compatible = "riscv"; riscv,isa = "rv64imafdc"; mmu-type = "riscv,sv48"; interrupt-controller { #interrupt-cells = <1>; compatible = "riscv,cpu-intc"; interrupt-controller; }; }; }; soc { #address-cells = <2>; #size-cells = <2>; compatible = "simple-bus"; ranges; uart0: serial@10000000 { compatible = "ns16550a"; reg = <0x0 0x10000000 0x0 0x100>; interrupts = <10>; interrupt-parent = <&plic>; clock-frequency = <3686400>; reg-shift = <0>; reg-io-width = <1>; no-loopback-test; }; virtio_blk: virtio@10001000 { compatible = "virtio,mmio"; reg = <0x0 0x10001000 0x0 0x1000>; interrupts = <1>; interrupt-parent = <&plic>; }; /* 使用QEMU标准的PLIC配置 */ plic: interrupt-controller@c000000 { compatible = "sifive,plic-1.0.0", "riscv,plic0"; #address-cells = <0>; #interrupt-cells = <1>; interrupt-controller; reg = <0x0 0xc000000 0x0 0x400000>; riscv,ndev = <53>; interrupts-extended = < &cpu0 11 &cpu0 9 >; }; clint: clint@2000000 { compatible = "riscv,clint0"; reg = <0x0 0x2000000 0x0 0x10000>; interrupts-extended = <&cpu0 3 &cpu0 7>; }; }; aliases { serial0 = &uart0; }; }; Starting kernel ... [ 0.000000] Linux version 5.15.194 (wangchongyang@LAPTOP-G148G7CE) (riscv64-linux-gnu-gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #1 SMP Sat Oct 11 10:16:40 CST 2025 [ 0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000 [ 0.000000] Machine model: riscv-virtio,qemu [ 0.000000] earlycon: ns16550a0 at MMIO 0x0000000010000000 (options '115200n8') [ 0.000000] printk: bootconsole [ns16550a0] enabled [ 0.000000] efi: UEFI not found. [ 0.000000] Zone ranges: [ 0.000000] DMA32 [mem 0x0000000080200000-0x0000000087ffffff] [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000080200000-0x0000000087ffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x0000000087ffffff] [ 0.000000] SBI specification v1.0 detected [ 0.000000] SBI implementation ID=0x1 Version=0x10002 [ 0.000000] SBI TIME extension detected [ 0.000000] SBI IPI extension detected [ 0.000000] SBI RFENCE extension detected [ 0.000000] SBI v0.2 HSM extension detected [ 0.000000] riscv: ISA extensions acdfim [ 0.000000] riscv: ELF capabilities acdfim [ 0.000000] percpu: Embedded 18 pages/cpu s33512 r8192 d32024 u73728 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 31815 [ 0.000000] Kernel command line: console=ttyS0,115200 earlycon root=/dev/vda2 rw rootwait [ 0.000000] Dentry cache hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 0.000000] Inode-cache hash table entries: 8192 (order: 4, 65536 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Virtual kernel memory layout: [ 0.000000] fixmap : 0xffffffcefea00000 - 0xffffffceff000000 (6144 kB) [ 0.000000] pci io : 0xffffffceff000000 - 0xffffffcf00000000 ( 16 MB) [ 0.000000] vmemmap : 0xffffffcf00000000 - 0xffffffcfffffffff (4095 MB) [ 0.000000] vmalloc : 0xffffffd000000000 - 0xffffffdfffffffff (65535 MB) [ 0.000000] modules : 0xffffffff01127000 - 0xffffffff80000000 (2030 MB) [ 0.000000] lowmem : 0xffffffe000000000 - 0xffffffe007e00000 ( 126 MB) [ 0.000000] kernel : 0xffffffff80000000 - 0xffffffffffffffff (2047 MB) [ 0.000000] Memory: 108508K/129024K available (6159K kernel code, 4867K rwdata, 2048K rodata, 2145K init, 304K bss, 20516K reserved, 0K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1. [ 0.000000] rcu: RCU debug extended QS entry/exit. [ 0.000000] Tracing variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] riscv-intc: 64 local interrupts mapped [ 0.000000] OF: /soc/interrupt-controller@c000000: could not get #interrupt-cells for /cpus/cpu@0 [ 0.000000] ------------[ cut here ]------------ [ 0.000000] WARNING: CPU: 0 PID: 0 at drivers/irqchip/irq-sifive-plic.c:304 plic_init+0x92/0x3e8 [ 0.000000] Modules linked in: [ 0.000000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.15.194 #1 [ 0.000000] Hardware name: riscv-virtio,qemu (DT) [ 0.000000] epc : plic_init+0x92/0x3e8 [ 0.000000] ra : plic_init+0x8e/0x3e8 [ 0.000000] epc : ffffffff808179c2 ra : ffffffff808179be sp : ffffffff81003db0 [ 0.000000] gp : ffffffff810d8cd0 tp : ffffffff8100bd80 t0 : 2f00000000000000 [ 0.000000] t1 : 000000000000004f t2 : 2f636f732f203a46 s0 : ffffffff81003ee0 [ 0.000000] s1 : ffffffe0016090e0 a0 : 0000000000000000 a1 : 0000000000000100 [ 0.000000] a2 : 0000000000000000 a3 : 0000000000000000 a4 : 0000000000000000 [ 0.000000] a5 : 0000000000000000 a6 : 0000000000000008 a7 : 0000000000000038 [ 0.000000] s2 : fffffffffffffff4 s3 : ffffffff81003ee8 s4 : ffffffe007dfd788 [ 0.000000] s5 : ffffffff81003ef8 s6 : 0000000000000000 s7 : ffffffff81003ef8 [ 0.000000] s8 : dead000000000100 s9 : 0000000000000008 s10: fffffffffffffff7 [ 0.000000] s11: 0000000000000000 t3 : ffffffff810e74df t4 : ffffffff810e74df [ 0.000000] t5 : ffffffff810e74e0 t6 : ffffffff81003998 [ 0.000000] status: 0000000000000100 badaddr: 0000000000000000 cause: 0000000000000003 [ 0.000000] [<ffffffff808179c2>] plic_init+0x92/0x3e8 [ 0.000000] [<ffffffff8082296c>] of_irq_init+0x166/0x296 [ 0.000000] [<ffffffff8081781a>] irqchip_init+0x18/0x20 [ 0.000000] [<ffffffff80802bd8>] init_IRQ+0x10/0x32 [ 0.000000] [<ffffffff80800b2e>] start_kernel+0x498/0x6ec [ 0.000000] ---[ end trace aa3ca570f1df3acf ]--- [ 0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0] [ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns [ 0.000059] sched_clock: 64 bits at 10MHz, resolution 100ns, wraps every 4398046511100ns [ 0.003214] Console: colour dummy device 80x25 [ 0.004490] Calibrating delay loop (skipped), value calculated using timer frequency.. 20.00 BogoMIPS (lpj=40000) [ 0.004814] pid_max: default: 32768 minimum: 301 [ 0.008304] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear) [ 0.008523] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear) [ 0.026987] ASID allocator using 16 bits (65536 entries) [ 0.027745] rcu: Hierarchical SRCU implementation. [ 0.029040] EFI services will not be available. [ 0.030892] smp: Bringing up secondary CPUs ... [ 0.031052] smp: Brought up 1 node, 1 CPU [ 0.038099] devtmpfs: initialized [ 0.041633] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.041968] futex hash table entries: 256 (order: 2, 16384 bytes, linear) [ 0.045688] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.052683] OF: /soc/interrupt-controller@c000000: could not get #interrupt-cells for /cpus/cpu@0 [ 0.053124] OF: /soc/clint@2000000: could not get #interrupt-cells for /cpus/cpu@0 [ 0.054322] OF: /soc/interrupt-controller@c000000: could not get #interrupt-cells for /cpus/cpu@0 [ 0.055149] OF: /soc/clint@2000000: could not get #interrupt-cells for /cpus/cpu@0 [ 0.067024] iommu: Default domain type: Translated [ 0.067199] iommu: DMA domain TLB invalidation policy: strict mode [ 0.069677] vgaarb: loaded [ 0.070496] SCSI subsystem initialized [ 0.072045] usbcore: registered new interface driver usbfs [ 0.072298] usbcore: registered new interface driver hub [ 0.072493] usbcore: registered new device driver usb [ 0.081539] clocksource: Switched to clocksource riscv_clocksource [ 0.091346] NET: Registered PF_INET protocol family [ 0.092311] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear) [ 0.094532] tcp_listen_portaddr_hash hash table entries: 128 (order: 0, 4096 bytes, linear) [ 0.094760] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.094906] TCP established hash table entries: 1024 (order: 1, 8192 bytes, linear) [ 0.095205] TCP bind hash table entries: 1024 (order: 3, 32768 bytes, linear) [ 0.095409] TCP: Hash tables configured (established 1024 bind 1024) [ 0.098081] UDP hash table entries: 256 (order: 2, 24576 bytes, linear) [ 0.098403] UDP-Lite hash table entries: 256 (order: 2, 24576 bytes, linear) [ 0.099320] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 0.102586] RPC: Registered named UNIX socket transport module. [ 0.103008] RPC: Registered udp transport module. [ 0.103107] RPC: Registered tcp transport module. [ 0.103223] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.103731] PCI: CLS 0 bytes, default 64 [ 0.108023] workingset: timestamp_bits=62 max_order=15 bucket_order=0 [ 0.115541] NFS: Registering the id_resolver key type [ 0.116425] Key type id_resolver registered [ 0.116523] Key type id_legacy registered [ 0.116836] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.117112] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering... [ 0.118221] 9p: Installing v9fs 9p2000 file system support [ 0.119563] NET: Registered PF_ALG protocol family [ 0.120206] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) [ 0.120390] io scheduler mq-deadline registered [ 0.120511] io scheduler kyber registered [ 0.157400] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled [ 0.167656] loop: module loaded [ 0.170369] e1000e: Intel(R) PRO/1000 Network Driver [ 0.170515] e1000e: Copyright(c) 1999 - 2015 Intel Corporation. [ 0.171094] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 0.171272] ehci-pci: EHCI PCI platform driver [ 0.171560] ehci-platform: EHCI generic platform driver [ 0.171689] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 0.171945] ohci-pci: OHCI PCI platform driver [ 0.172239] ohci-platform: OHCI generic platform driver [ 0.173163] usbcore: registered new interface driver uas [ 0.173360] usbcore: registered new interface driver usb-storage [ 0.174434] mousedev: PS/2 mouse device common for all mice [ 0.175189] sdhci: Secure Digital Host Controller Interface driver [ 0.175367] sdhci: Copyright(c) Pierre Ossman [ 0.175626] sdhci-pltfm: SDHCI platform and OF driver helper [ 0.176300] usbcore: registered new interface driver usbhid [ 0.176383] usbhid: USB HID core driver [ 0.178196] NET: Registered PF_INET6 protocol family [ 0.182283] Segment Routing with IPv6 [ 0.182479] In-situ OAM (IOAM) with IPv6 [ 0.183058] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 0.184761] NET: Registered PF_PACKET protocol family [ 0.185545] 9pnet: Installing 9P2000 support [ 0.186103] Key type dns_resolver registered [ 0.189075] debug_vm_pgtable: [debug_vm_pgtable ]: Validating architecture page table helpers [ 0.194747] clk: Disabling unused clocks [ 0.196000] Warning: unable to open an initial console. [ 0.196671] Waiting for root device /dev/vda2... qemu-system-riscv64 \ -machine virt -m 128M -smp 1 \ -bios opensbi/build/platform/generic/firmware/fw_dynamic.elf \ -kernel u-boot-2023.04/u-boot.bin \ -device virtio-blk-device,drive=disk \ -drive id=disk,file=disk.img,format=raw,if=none \ -nographic setenv bootargs "console=ttyS0,115200 earlycon root=/dev/vda2 rw rootwait" load virtio 0:1 0x80200000 Image load virtio 0:1 0x81400000 bosc_board.dtb booti 0x80200000 - 0x81400000 一直出plic 问题,问题出在那块,如何解决
最新发布
10-14
latex报错Initial Win CP for (console input, console output, system): (CP936, CP936, CP936) I changed them all to CP936 Rc files read: NONE Latexmk: This is Latexmk, John Collins, 27 Dec. 2024. Version 4.86a. No existing .aux file, so I'll make a simple one, and require run of *latex. Latexmk: applying rule 'xelatex'... Rule 'xelatex': Reasons for rerun Category 'other': Rerun of 'xelatex' forced or previously required: Reason or flag: 'Initial setup' ------------ Run number 1 of rule 'xelatex' ------------ ------------ Running 'xelatex -no-pdf -synctex=1 -interaction=nonstopmode -file-line-error -recorder "c:/Users/91643/Downloads/CS_structure/template/document.tex"' ------------ This is XeTeX, Version 3.141592653-2.6-0.999997 (TeX Live 2025) (preloaded format=xelatex) restricted \write18 enabled. entering extended mode (c:/Users/91643/Downloads/CS_structure/template/document.tex LaTeX2e <2024-11-01> patch level 2 L3 programming layer <2025-01-18> (./bistuthesis.cls Document Class: bistuthesis 2024/01/01 BISTU Thesis Template (c:/texlive/2025/texmf-dist/tex/latex/tools/array.sty) (c:/texlive/2025/texmf-dist/tex/latex/arydshln/arydshln.sty) (c:/texlive/2025/texmf-dist/tex/latex/adjustbox/adjustbox.sty (c:/texlive/2025/texmf-dist/tex/latex/xkeyval/xkeyval.sty (c:/texlive/2025/texmf-dist/tex/generic/xkeyval/xkeyval.tex (c:/texlive/2025/texmf-dist/tex/generic/xkeyval/xkvutils.tex (c:/texlive/2025/texmf-dist/tex/generic/xkeyval/keyval.tex)))) (c:/texlive/2025/texmf-dist/tex/latex/adjustbox/adjcalc.sty) (c:/texlive/2025/texmf-dist/tex/latex/adjustbox/trimclip.sty (c:/texlive/2025/texmf-dist/tex/latex/graphics/graphicx.sty (c:/texlive/2025/texmf-dist/tex/latex/graphics/graphics.sty (c:/texlive/2025/texmf-dist/tex/latex/graphics/trig.sty) (c:/texlive/2025/texmf-dist/tex/latex/graphics-cfg/graphics.cfg) (c:/texlive/2025/texmf-dist/tex/latex/graphics-def/xetex.def))) (c:/texlive/2025/texmf-dist/tex/latex/collectbox/collectbox.sty) (c:/texlive/2025/texmf-dist/tex/latex/adjustbox/tc-xetex.def)) (c:/texlive/2025/texmf-dist/tex/latex/ifoddpage/ifoddpage.sty) (c:/texlive/2025/texmf-dist/tex/latex/varwidth/varwidth.sty)) (c:/texlive/2025/texmf-dist/tex/latex/tools/tabularx.sty) (c:/texlive/2025/texmf-dist/tex/latex/multirow/multirow.sty) (c:/texlive/2025/texmf-dist/tex/latex/tools/calc.sty) (c:/texlive/2025/texmf-dist/tex/latex/amsfonts/amssymb.sty (c:/texlive/2025/texmf-dist/tex/latex/amsfonts/amsfonts.sty)) (c:/texlive/2025/texmf-dist/tex/latex/ragged2e/ragged2e.sty) (c:/texlive/2025/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty) (c:/texlive/2025/texmf-dist/tex/latex/ctex/ctexbook.cls (c:/texlive/2025/texmf-dist/tex/latex/ctex/config/ctexbackend.cfg) (c:/texlive/2025/texmf-dist/tex/latex/l3kernel/expl3.sty (c:/texlive/2025/texmf-dist/tex/latex/l3backend/l3backend-xetex.def)) Document Class: ctexbook 2022/07/14 v2.5.10 Chinese adapter for class book (CTEX) (c:/texlive/2025/texmf-dist/tex/latex/ctex/ctexhook.sty) (c:/texlive/2025/texmf-dist/tex/latex/ctex/ctexpatch.sty) (c:/texlive/2025/texmf-dist/tex/latex/base/fix-cm.sty (c:/texlive/2025/texmf-dist/tex/latex/base/ts1enc.def)) (c:/texlive/2025/texmf-dist/tex/latex/ctex/config/ctexopts.cfg) (c:/texlive/2025/texmf-dist/tex/latex/base/book.cls Document Class: book 2024/06/29 v1.4n Standard LaTeX document class (c:/texlive/2025/texmf-dist/tex/latex/base/bk10.clo)) (c:/texlive/2025/texmf-dist/tex/latex/ctex/engine/ctex-engine-xetex.def (c:/texlive/2025/texmf-dist/tex/xelatex/xecjk/xeCJK.sty (c:/texlive/2025/texmf-dist/tex/latex/l3packages/xtemplate/xtemplate.sty) (c:/texlive/2025/texmf-dist/tex/latex/fontspec/fontspec.sty (c:/texlive/2025/texmf-dist/tex/latex/l3packages/xparse/xparse.sty) (c:/texlive/2025/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty (c:/texlive/2025/texmf-dist/tex/latex/base/fontenc.sty) (c:/texlive/2025/texmf-dist/tex/latex/fontspec/fontspec.cfg))) (c:/texlive/2025/texmf-dist/tex/xelatex/xecjk/xeCJK.cfg))) (c:/texlive/2025/texmf-dist/tex/latex/zhnumber/zhnumber.sty (c:/texlive/2025/texmf-dist/tex/latex/zhnumber/zhnumber-utf8.cfg)) (c:/texlive/2025/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-book.def (c:/texlive/2025/texmf-dist/tex/latex/ctex/config/ctex-name-utf8.cfg)) (c:/texlive/2025/texmf-dist/tex/latex/ctex/ctex-c5size.clo) (c:/texlive/2025/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-windows.def)) (c:/texlive/2025/texmf-dist/tex/latex/ctex/config/ctex.cfg) (c:/texlive/2025/texmf-dist/tex/xelatex/xecjk/xeCJKfntef.sty (c:/texlive/2025/texmf-dist/tex/generic/ulem/ulem.sty)) (c:/texlive/2025/texmf-dist/tex/latex/titlesec/titlesec.sty) (c:/texlive/2025/texmf-dist/tex/latex/titlesec/titletoc.sty) Package ctexhook Warning: Package `CJKulem' can not be loaded with `xeCJK'. (c:/texlive/2025/texmf-dist/tex/latex/geometry/geometry.sty (c:/texlive/2025/texmf-dist/tex/generic/iftex/ifvtex.sty (c:/texlive/2025/texmf-dist/tex/generic/iftex/iftex.sty))) Class ctexbook Warning: Command `\CTEXsetup' is deprecated. (ctexbook) \ctexset { section = { format=\zihao {4}\bfseries (ctexbook) \flushleft } } is set. Class ctexbook Warning: Command `\CTEXsetup' is deprecated. (ctexbook) \ctexset { subsection = { format=\zihao {5}\bfseries (ctexbook) \flushleft } } is set. ) (c:/texlive/2025/texmf-dist/tex/latex/gbt7714/gbt7714.sty (c:/texlive/2025/texmf-dist/tex/latex/natbib/natbib.sty) (c:/texlive/2025/texmf-dist/tex/latex/url/url.sty)) LaTeX Warning: Unused global option(s): [AutoFakeBold]. (./document.aux) *geometry* driver: auto-detecting *geometry* detected driver: xetex (./data/title.tex LaTeX Font Warning: Font shape `TU/SimSun(1)/b/n' undefined (Font) using `TU/SimSun(1)/m/n' instead on input line 9. LaTeX Font Warning: Font shape `TU/KaiTi(0)/b/n' undefined (Font) using `TU/KaiTi(0)/m/n' instead on input line 9. (c:/texlive/2025/texmf-dist/tex/latex/amsfonts/umsa.fd) (c:/texlive/2025/texmf-dist/tex/latex/amsfonts/umsb.fd) Overfull \hbox (5.6pt too wide) in alignment at lines 9--9 [][][][] Overfull \hbox (4.5811pt too wide) in alignment at lines 9--9 [][] ) [1] No file document.toc. Package fancyhdr Warning: \headheight is too small (12.0pt): (fancyhdr) Make it at least 12.64723pt, for example: (fancyhdr) \setlength{\headheight}{12.64723pt}. (fancyhdr) You might also make \topmargin smaller: (fancyhdr) \addtolength{\topmargin}{-0.64723pt}. [1] (./exp/exp1.tex 第一章 Package fancyhdr Warning: \headheight is too small (12.0pt): (fancyhdr) Make it at least 12.64723pt, for example: (fancyhdr) \setlength{\headheight}{12.64723pt}. (fancyhdr) You might also make \topmargin smaller: (fancyhdr) \addtolength{\topmargin}{-0.64723pt}. [1] LaTeX Font Warning: Font shape `TU/SimSun(1)/m/sl' undefined (Font) using `TU/SimSun(1)/m/it' instead on input line 130. LaTeX Font Warning: Font shape `TU/SimSun(1)/m/it' undefined (Font) using `TU/SimSun(1)/m/n' instead on input line 130. [2] Underfull \hbox (badness 10000) in paragraph at lines 138--154 LaTeX Warning: Reference `fig:s' on page 3 undefined on input line 156. LaTeX Font Warning: Font shape `TU/SimSun(1)/m/sl' undefined (Font) using `TU/SimSun(1)/m/it' instead on input line 179. [3] LaTeX Warning: Reference `fig:s_pro' on page 4 undefined on input line 185. LaTeX Warning: Reference `fig:data_n' on page 4 undefined on input line 200. LaTeX Warning: Reference `fig:data_n_pro' on page 4 undefined on input line 216. LaTeX Warning: `h' float specifier changed to `ht'. LaTeX Warning: Reference `fig:data' on page 4 undefined on input line 230. LaTeX Font Warning: Font shape `TU/SimSun(1)/m/sl' undefined (Font) using `TU/SimSun(1)/m/it' instead on input line 237. [4] LaTeX Warning: Reference `fig:data_pro' on page 5 undefined on input line 244. LaTeX Warning: `h' float specifier changed to `ht'. LaTeX Font Warning: Font shape `TU/SimSun(1)/m/sl' undefined (Font) using `TU/SimSun(1)/m/it' instead on input line 275. [5]) (./exp/exp2.tex LaTeX Font Warning: Font shape `TU/SimSun(1)/m/sl' undefined (Font) using `TU/SimSun(1)/m/it' instead on input line 1. [6] 第二章 LaTeX Warning: Reference `fig:example' on page 7 undefined on input line 13. Package natbib Warning: Citation `XLXD20240305007' on page 7 undefined on input line 29. Package natbib Warning: Citation `9429102' on page 7 undefined on input line 31. Package natbib Warning: Citation `SYZT20240304003' on page 7 undefined on input line 33. ) (./exp/exp3.tex Package fancyhdr Warning: \headheight is too small (12.0pt): (fancyhdr) Make it at least 12.64723pt, for example: (fancyhdr) \setlength{\headheight}{12.64723pt}. (fancyhdr) You might also make \topmargin smaller: (fancyhdr) \addtolength{\topmargin}{-0.64723pt}. [7] LaTeX Font Warning: Font shape `TU/SimSun(1)/m/sl' undefined (Font) using `TU/SimSun(1)/m/it' instead on input line 1. [8] 第三章 LaTeX Warning: Reference `fig:example' on page 9 undefined on input line 13. Package natbib Warning: Citation `XLXD20240305007' on page 9 undefined on input line 29. Package natbib Warning: Citation `9429102' on page 9 undefined on input line 31. Package natbib Warning: Citation `SYZT20240304003' on page 9 undefined on input line 33. ) (./exp/exp4.tex Package fancyhdr Warning: \headheight is too small (12.0pt): (fancyhdr) Make it at least 12.64723pt, for example: (fancyhdr) \setlength{\headheight}{12.64723pt}. (fancyhdr) You might also make \topmargin smaller: (fancyhdr) \addtolength{\topmargin}{-0.64723pt}. [9] LaTeX Font Warning: Font shape `TU/SimSun(1)/m/sl' undefined (Font) using `TU/SimSun(1)/m/it' instead on input line 1. [10] 第四章 LaTeX Warning: Reference `fig:example' on page 11 undefined on input line 13. Package natbib Warning: Citation `XLXD20240305007' on page 11 undefined on input line 29. Package natbib Warning: Citation `9429102' on page 11 undefined on input line 31. Package natbib Warning: Citation `SYZT20240304003' on page 11 undefined on input line 33. ) Package fancyhdr Warning: \headheight is too small (12.0pt): (fancyhdr) Make it at least 12.64723pt, for example: (fancyhdr) \setlength{\headheight}{12.64723pt}. (fancyhdr) You might also make \topmargin smaller: (fancyhdr) \addtolength{\topmargin}{-0.64723pt}. [11] LaTeX Font Warning: Font shape `TU/SimSun(1)/m/sl' undefined (Font) using `TU/SimSun(1)/m/it' instead on input line 35. [12] (./document.bbl) Package fancyhdr Warning: \headheight is too small (12.0pt): (fancyhdr) Make it at least 12.64723pt, for example: (fancyhdr) \setlength{\headheight}{12.64723pt}. (fancyhdr) You might also make \topmargin smaller: (fancyhdr) \addtolength{\topmargin}{-0.64723pt}. [13] Package natbib Warning: There were undefined citations. Package fancyhdr Warning: \headheight is too small (12.0pt): (fancyhdr) Make it at least 12.64723pt, for example: (fancyhdr) \setlength{\headheight}{12.64723pt}. (fancyhdr) You might also make \topmargin smaller: (fancyhdr) \addtolength{\topmargin}{-0.64723pt}. [14] (./document.aux Package natbib Warning: Citation(s) may have changed. (natbib) Rerun to get citations correct. ) LaTeX Font Warning: Some font shapes were not available, defaults substituted. LaTeX Warning: There were undefined references. LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right. ) (see the transcript file for additional information) Output written on document.xdv (16 pages, 76836 bytes). SyncTeX written on document.synctex.gz. Transcript written on document.log. Latexmk: Getting log file 'document.log' Latexmk: Examining 'document.fls' Latexmk: Examining 'document.log' Latexmk: Missing input file 'document.toc' (or dependence on it) from following: No file document.toc. Latexmk: Found input bbl file 'document.bbl' Latexmk: References changed. Latexmk: References changed. Latexmk: Log file says output to 'document.xdv' Latexmk: Found bibliography file(s): ./ref/refs.bib Latexmk: applying rule 'bibtex document'... Rule 'bibtex document': Reasons for rerun Category 'other': Rerun of 'bibtex document' forced or previously required: Reason or flag: 'Initial set up of rule' ------------ Run number 1 of rule 'bibtex document' ------------ ------------ Running 'bibtex "document.aux"' ------------ This is BibTeX, Version 0.99d (TeX Live 2025) The top-level auxiliary file: document.aux The style file: gbt7714-numerical.bst Database file #1: ref/refs.bib Warning--empty year in XLXD20240305007 Warning--empty year in XLXD20240305007 Warning--empty year in SYZT20240304003 Warning--empty year in SYZT20240304003 Warning--empty year in XLXD20240305007 Warning--empty year in SYZT20240304003 (There were 6 warnings) Latexmk: applying rule 'xelatex'... Rule 'xelatex': Reasons for rerun Changed files or newly in use/created: document.aux document.toc ------------ Run number 2 of rule 'xelatex' ------------ ------------ Running 'xelatex -no-pdf -synctex=1 -interaction=nonstopmode -file-line-error -recorder "c:/Users/91643/Downloads/CS_structure/template/document.tex"' ------------ This is XeTeX, Version 3.141592653-2.6-0.999997 (TeX Live 2025) (preloaded format=xelatex) restricted \write18 enabled. entering extended mode (c:/Users/91643/Downloads/CS_structure/template/document.tex LaTeX2e <2024-11-01> patch level 2 L3 programming layer <2025-01-18> (./bistuthesis.cls Document Class: bistuthesis 2024/01/01 BISTU Thesis Template (c:/texlive/2025/texmf-dist/tex/latex/tools/array.sty) (c:/texlive/2025/texmf-dist/tex/latex/arydshln/arydshln.sty) (c:/texlive/2025/texmf-dist/tex/latex/adjustbox/adjustbox.sty (c:/texlive/2025/texmf-dist/tex/latex/xkeyval/xkeyval.sty (c:/texlive/2025/texmf-dist/tex/generic/xkeyval/xkeyval.tex (c:/texlive/2025/texmf-dist/tex/generic/xkeyval/xkvutils.tex (c:/texlive/2025/texmf-dist/tex/generic/xkeyval/keyval.tex)))) (c:/texlive/2025/texmf-dist/tex/latex/adjustbox/adjcalc.sty) (c:/texlive/2025/texmf-dist/tex/latex/adjustbox/trimclip.sty (c:/texlive/2025/texmf-dist/tex/latex/graphics/graphicx.sty (c:/texlive/2025/texmf-dist/tex/latex/graphics/graphics.sty (c:/texlive/2025/texmf-dist/tex/latex/graphics/trig.sty) (c:/texlive/2025/texmf-dist/tex/latex/graphics-cfg/graphics.cfg) (c:/texlive/2025/texmf-dist/tex/latex/graphics-def/xetex.def))) (c:/texlive/2025/texmf-dist/tex/latex/collectbox/collectbox.sty) (c:/texlive/2025/texmf-dist/tex/latex/adjustbox/tc-xetex.def)) (c:/texlive/2025/texmf-dist/tex/latex/ifoddpage/ifoddpage.sty) (c:/texlive/2025/texmf-dist/tex/latex/varwidth/varwidth.sty)) (c:/texlive/2025/texmf-dist/tex/latex/tools/tabularx.sty) (c:/texlive/2025/texmf-dist/tex/latex/multirow/multirow.sty) (c:/texlive/2025/texmf-dist/tex/latex/tools/calc.sty) (c:/texlive/2025/texmf-dist/tex/latex/amsfonts/amssymb.sty (c:/texlive/2025/texmf-dist/tex/latex/amsfonts/amsfonts.sty)) (c:/texlive/2025/texmf-dist/tex/latex/ragged2e/ragged2e.sty) (c:/texlive/2025/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty) (c:/texlive/2025/texmf-dist/tex/latex/ctex/ctexbook.cls (c:/texlive/2025/texmf-dist/tex/latex/ctex/config/ctexbackend.cfg) (c:/texlive/2025/texmf-dist/tex/latex/l3kernel/expl3.sty (c:/texlive/2025/texmf-dist/tex/latex/l3backend/l3backend-xetex.def)) Document Class: ctexbook 2022/07/14 v2.5.10 Chinese adapter for class book (CTEX) (c:/texlive/2025/texmf-dist/tex/latex/ctex/ctexhook.sty) (c:/texlive/2025/texmf-dist/tex/latex/ctex/ctexpatch.sty) (c:/texlive/2025/texmf-dist/tex/latex/base/fix-cm.sty (c:/texlive/2025/texmf-dist/tex/latex/base/ts1enc.def)) (c:/texlive/2025/texmf-dist/tex/latex/ctex/config/ctexopts.cfg) (c:/texlive/2025/texmf-dist/tex/latex/base/book.cls Document Class: book 2024/06/29 v1.4n Standard LaTeX document class (c:/texlive/2025/texmf-dist/tex/latex/base/bk10.clo)) (c:/texlive/2025/texmf-dist/tex/latex/ctex/engine/ctex-engine-xetex.def (c:/texlive/2025/texmf-dist/tex/xelatex/xecjk/xeCJK.sty (c:/texlive/2025/texmf-dist/tex/latex/l3packages/xtemplate/xtemplate.sty) (c:/texlive/2025/texmf-dist/tex/latex/fontspec/fontspec.sty (c:/texlive/2025/texmf-dist/tex/latex/l3packages/xparse/xparse.sty) (c:/texlive/2025/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty (c:/texlive/2025/texmf-dist/tex/latex/base/fontenc.sty) (c:/texlive/2025/texmf-dist/tex/latex/fontspec/fontspec.cfg))) (c:/texlive/2025/texmf-dist/tex/xelatex/xecjk/xeCJK.cfg))) (c:/texlive/2025/texmf-dist/tex/latex/zhnumber/zhnumber.sty (c:/texlive/2025/texmf-dist/tex/latex/zhnumber/zhnumber-utf8.cfg)) (c:/texlive/2025/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-book.def (c:/texlive/2025/texmf-dist/tex/latex/ctex/config/ctex-name-utf8.cfg)) (c:/texlive/2025/texmf-dist/tex/latex/ctex/ctex-c5size.clo) (c:/texlive/2025/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-windows.def)) (c:/texlive/2025/texmf-dist/tex/latex/ctex/config/ctex.cfg) (c:/texlive/2025/texmf-dist/tex/xelatex/xecjk/xeCJKfntef.sty (c:/texlive/2025/texmf-dist/tex/generic/ulem/ulem.sty)) (c:/texlive/2025/texmf-dist/tex/latex/titlesec/titlesec.sty) (c:/texlive/2025/texmf-dist/tex/latex/titlesec/titletoc.sty) Package ctexhook Warning: Package `CJKulem' can not be loaded with `xeCJK'. (c:/texlive/2025/texmf-dist/tex/latex/geometry/geometry.sty (c:/texlive/2025/texmf-dist/tex/generic/iftex/ifvtex.sty (c:/texlive/2025/texmf-dist/tex/generic/iftex/iftex.sty))) Class ctexbook Warning: Command `\CTEXsetup' is deprecated. (ctexbook) \ctexset { section = { format=\zihao {4}\bfseries (ctexbook) \flushleft } } is set. Class ctexbook Warning: Command `\CTEXsetup' is deprecated. (ctexbook) \ctexset { subsection = { format=\zihao {5}\bfseries (ctexbook) \flushleft } } is set. ) (c:/texlive/2025/texmf-dist/tex/latex/gbt7714/gbt7714.sty (c:/texlive/2025/texmf-dist/tex/latex/natbib/natbib.sty) (c:/texlive/2025/texmf-dist/tex/latex/url/url.sty)) LaTeX Warning: Unused global option(s): [AutoFakeBold]. (./document.aux LaTeX Warning: Label `sec:goal' multiply defined. LaTeX Warning: Label `sec:content' multiply defined. LaTeX Warning: Label `sec:process' multiply defined. LaTeX Warning: Label `sec:goal' multiply defined. LaTeX Warning: Label `sec:content' multiply defined. LaTeX Warning: Label `sec:process' multiply defined. LaTeX Warning: Label `fig:example' multiply defined. LaTeX Warning: Label `sec:goal' multiply defined. LaTeX Warning: Label `sec:content' multiply defined. LaTeX Warning: Label `sec:process' multiply defined. LaTeX Warning: Label `fig:example' multiply defined. ) *geometry* driver: auto-detecting *geometry* detected driver: xetex (./data/title.tex LaTeX Font Warning: Font shape `TU/SimSun(1)/b/n' undefined (Font) using `TU/SimSun(1)/m/n' instead on input line 9. LaTeX Font Warning: Font shape `TU/KaiTi(0)/b/n' undefined (Font) using `TU/KaiTi(0)/m/n' instead on input line 9. (c:/texlive/2025/texmf-dist/tex/latex/amsfonts/umsa.fd) (c:/texlive/2025/texmf-dist/tex/latex/amsfonts/umsb.fd) Overfull \hbox (5.6pt too wide) in alignment at lines 9--9 [][][][] Overfull \hbox (4.5811pt too wide) in alignment at lines 9--9 [][] ) [1] (./document.toc) Package fancyhdr Warning: \headheight is too small (12.0pt): (fancyhdr) Make it at least 12.64723pt, for example: (fancyhdr) \setlength{\headheight}{12.64723pt}. (fancyhdr) You might also make \topmargin smaller: (fancyhdr) \addtolength{\topmargin}{-0.64723pt}. [1] (./exp/exp1.tex 第一章 Package fancyhdr Warning: \headheight is too small (12.0pt): (fancyhdr) Make it at least 12.64723pt, for example: (fancyhdr) \setlength{\headheight}{12.64723pt}. (fancyhdr) You might also make \topmargin smaller: (fancyhdr) \addtolength{\topmargin}{-0.64723pt}. [1] LaTeX Font Warning: Font shape `TU/SimSun(1)/m/sl' undefined (Font) using `TU/SimSun(1)/m/it' instead on input line 130. LaTeX Font Warning: Font shape `TU/SimSun(1)/m/it' undefined (Font) using `TU/SimSun(1)/m/n' instead on input line 130. [2] Underfull \hbox (badness 10000) in paragraph at lines 138--154 LaTeX Font Warning: Font shape `TU/SimSun(1)/m/sl' undefined (Font) using `TU/SimSun(1)/m/it' instead on input line 179. [3] LaTeX Warning: `h' float specifier changed to `ht'. LaTeX Font Warning: Font shape `TU/SimSun(1)/m/sl' undefined (Font) using `TU/SimSun(1)/m/it' instead on input line 237. [4] LaTeX Warning: `h' float specifier changed to `ht'. LaTeX Font Warning: Font shape `TU/SimSun(1)/m/sl' undefined (Font) using `TU/SimSun(1)/m/it' instead on input line 275. [5]) (./exp/exp2.tex LaTeX Font Warning: Font shape `TU/SimSun(1)/m/sl' undefined (Font) using `TU/SimSun(1)/m/it' instead on input line 1. [6] 第二章 ) (./exp/exp3.tex Package fancyhdr Warning: \headheight is too small (12.0pt): (fancyhdr) Make it at least 12.64723pt, for example: (fancyhdr) \setlength{\headheight}{12.64723pt}. (fancyhdr) You might also make \topmargin smaller: (fancyhdr) \addtolength{\topmargin}{-0.64723pt}. [7] LaTeX Font Warning: Font shape `TU/SimSun(1)/m/sl' undefined (Font) using `TU/SimSun(1)/m/it' instead on input line 1. [8] 第三章 ) (./exp/exp4.tex Package fancyhdr Warning: \headheight is too small (12.0pt): (fancyhdr) Make it at least 12.64723pt, for example: (fancyhdr) \setlength{\headheight}{12.64723pt}. (fancyhdr) You might also make \topmargin smaller: (fancyhdr) \addtolength{\topmargin}{-0.64723pt}. [9] LaTeX Font Warning: Font shape `TU/SimSun(1)/m/sl' undefined (Font) using `TU/SimSun(1)/m/it' instead on input line 1. [10] 第四章 ) Package fancyhdr Warning: \headheight is too small (12.0pt): (fancyhdr) Make it at least 12.64723pt, for example: (fancyhdr) \setlength{\headheight}{12.64723pt}. (fancyhdr) You might also make \topmargin smaller: (fancyhdr) \addtolength{\topmargin}{-0.64723pt}. [11] LaTeX Font Warning: Font shape `TU/SimSun(1)/m/sl' undefined (Font) using `TU/SimSun(1)/m/it' instead on input line 35. [12] (./document.bbl) Package fancyhdr Warning: \headheight is too small (12.0pt): (fancyhdr) Make it at least 12.64723pt, for example: (fancyhdr) \setlength{\headheight}{12.64723pt}. (fancyhdr) You might also make \topmargin smaller: (fancyhdr) \addtolength{\topmargin}{-0.64723pt}. [13] Package fancyhdr Warning: \headheight is too small (12.0pt): (fancyhdr) Make it at least 12.64723pt, for example: (fancyhdr) \setlength{\headheight}{12.64723pt}. (fancyhdr) You might also make \topmargin smaller: (fancyhdr) \addtolength{\topmargin}{-0.64723pt}. [14] (./document.aux) LaTeX Font Warning: Some font shapes were not available, defaults substituted. LaTeX Warning: There were multiply-defined labels. ) (see the transcript file for additional information) Output written on document.xdv (16 pages, 101836 bytes). SyncTeX written on document.synctex.gz. Transcript written on document.log. Latexmk: Getting log file 'document.log' Latexmk: Examining 'document.fls' Latexmk: Examining 'document.log' Latexmk: Found input bbl file 'document.bbl' Latexmk: Log file says output to 'document.xdv' Latexmk: Found bibliography file(s): ./ref/refs.bib Latexmk: applying rule 'xdvipdfmx'... Rule 'xdvipdfmx': Reasons for rerun Changed files or newly in use/created: document.xdv Category 'changed_source_rules': xelatex ------------ Run number 1 of rule 'xdvipdfmx' ------------ ------------ Running 'xdvipdfmx -E -o "document.pdf" "document.xdv"' ------------ document.xdv -> document.pdf xdvipdfmx:fatal: Unable to open "document.pdf". No output PDF file written. Latexmk: ====Undefined refs and citations with line #s in .tex file: Label `sec:goal' multiply defined Label `sec:content' multiply defined Label `sec:process' multiply defined Label `sec:goal' multiply defined Label `sec:content' multiply defined Label `sec:process' multiply defined Label `fig:example' multiply defined And 4 more --- see log file 'document.log' Latexmk: Summary of warnings from last run of *latex: Latex found 11 multiply defined reference(s) Latexmk: Errors, so I did not complete making targets Collected error summary (may duplicate other messages): xdvipdfmx: Command for 'xdvipdfmx' gave return code 256 Latexmk: Sometimes, the -f option can be used to get latexmk to try to force complete processing. But normally, you will need to correct the file(s) that caused the error, and then rerun latexmk. In some cases, it is best to clean out generated files before rerunning latexmk after you've corrected the files. C:\texlive\2025\bin\windows\runscript.tlu:922: command failed with exit code 12: perl.exe c:\texlive\2025\texmf-dist\scripts\latexmk\latexmk.pl -synctex=1 -interaction=nonstopmode -file-line-error -xelatex -outdir=c:/Users/91643/Downloads/CS_structure/template c:/Users/91643/Downloads/CS_structure/template/document
06-05
\ProgramData\miniconda3\envs\torch\python.exe D:\桌面\point\2.py [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709721.ply 处理文件 D:/桌面/point/data/part1\709721.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709724.ply 处理文件 D:/桌面/point/data/part1\709724.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709727.ply 处理文件 D:/桌面/point/data/part1\709727.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709730.ply 处理文件 D:/桌面/point/data/part1\709730.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709733.ply 处理文件 D:/桌面/point/data/part1\709733.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709736.ply 处理文件 D:/桌面/point/data/part1\709736.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709739.ply 处理文件 D:/桌面/point/data/part1\709739.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709742.ply 处理文件 D:/桌面/point/data/part1\709742.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709745.ply 处理文件 D:/桌面/point/data/part1\709745.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709748.ply 处理文件 D:/桌面/point/data/part1\709748.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709751.ply 处理文件 D:/桌面/point/data/part1\709751.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709754.ply 处理文件 D:/桌面/point/data/part1\709754.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709757.ply 处理文件 D:/桌面/point/data/part1\709757.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709760.ply 处理文件 D:/桌面/point/data/part1\709760.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709763.ply 处理文件 D:/桌面/point/data/part1\709763.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709766.ply 处理文件 D:/桌面/point/data/part1\709766.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709769.ply 处理文件 D:/桌面/point/data/part1\709769.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709772.ply 处理文件 D:/桌面/point/data/part1\709772.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709775.ply 处理文件 D:/桌面/point/data/part1\709775.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709778.ply 处理文件 D:/桌面/point/data/part1\709778.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709781.ply 处理文件 D:/桌面/point/data/part1\709781.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709784.ply 处理文件 D:/桌面/point/data/part1\709784.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709787.ply 处理文件 D:/桌面/point/data/part1\709787.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709790.ply 处理文件 D:/桌面/point/data/part1\709790.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709793.ply RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file 处理文件 D:/桌面/point/data/part1\709793.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709796.ply 处理文件 D:/桌面/point/data/part1\709796.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709799.ply 处理文件 D:/桌面/point/data/part1\709799.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709802.ply 处理文件 D:/桌面/point/data/part1\709802.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709805.ply 处理文件 D:/桌面/point/data/part1\709805.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709808.ply 处理文件 D:/桌面/point/data/part1\709808.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709811.ply 处理文件 D:/桌面/point/data/part1\709811.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709814.ply 处理文件 D:/桌面/point/data/part1\709814.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709817.ply 处理文件 D:/桌面/point/data/part1\709817.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709820.ply 处理文件 D:/桌面/point/data/part1\709820.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709823.ply 处理文件 D:/桌面/point/data/part1\709823.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709826.ply 处理文件 D:/桌面/point/data/part1\709826.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709829.ply 处理文件 D:/桌面/point/data/part1\709829.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709832.ply 处理文件 D:/桌面/point/data/part1\709832.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709835.ply 处理文件 D:/桌面/point/data/part1\709835.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709838.ply 处理文件 D:/桌面/point/data/part1\709838.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709841.ply 处理文件 D:/桌面/point/data/part1\709841.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709844.ply 处理文件 D:/桌面/point/data/part1\709844.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709847.ply 处理文件 D:/桌面/point/data/part1\709847.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709850.ply 处理文件 D:/桌面/point/data/part1\709850.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709853.ply 处理文件 D:/桌面/point/data/part1\709853.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709856.ply 处理文件 D:/桌面/point/data/part1\709856.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709859.ply 处理文件 D:/桌面/point/data/part1\709859.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709862.ply 处理文件 D:/桌面/point/data/part1\709862.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709865.ply 处理文件 D:/桌面/point/data/part1\709865.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709868.ply 处理文件 D:/桌面/point/data/part1\709868.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709871.ply 处理文件 D:/桌面/point/data/part1\709871.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709874.ply 处理文件 D:/桌面/point/data/part1\709874.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709877.ply 处理文件 D:/桌面/point/data/part1\709877.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709880.ply 处理文件 D:/桌面/point/data/part1\709880.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709883.ply 处理文件 D:/桌面/point/data/part1\709883.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709886.ply 处理文件 D:/桌面/point/data/part1\709886.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709889.ply 处理文件 D:/桌面/point/data/part1\709889.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709892.ply 处理文件 D:/桌面/point/data/part1\709892.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709895.ply 处理文件 D:/桌面/point/data/part1\709895.ply 时出错: index -1 is out of bounds for axis 0 with size 0 [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709898.ply 处理文件 D:/桌面/point/data/part1\709898.ply 时出错: index -1 is out of bounds for axis 0 with size 0 RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file RPly: Unable to open file
07-23
你提供的日志显示了两个**主要错误**,导致你的点云处理脚本 **无法正常运行**: --- ## ❌ 错误类型 1:文件无法打开 ``` [Open3D WARNING] Read PLY failed: unable to open file: D:/桌面/point/data/part1\709721.ply RPly: Unable to open file ``` ### 🔍 问题分析 - **路径不存在** 或 **文件不存在**; - **路径中存在中英文混合或特殊字符**; - **权限问题**(无法访问目标路径); - **路径格式错误**(混合使用 `/` 和 `\`,Windows 一般用 `\`); ### ✅ 解决方案 #### ✅ 1. 检查路径是否存在 ```python if not os.path.exists(input_file): raise FileNotFoundError(f"文件不存在: {input_file}") ``` #### ✅ 2. 替换 `os.path` 为 `pathlib`(自动兼容路径) ```python from pathlib import Path input_file = Path("D:/桌面/point/data/part1/709721.ply") if not input_file.exists(): raise FileNotFoundError(f"文件不存在: {input_file}") ``` #### ✅ 3. 使用 `str()` 转换路径传给 Open3D ```python pcd = o3d.io.read_point_cloud(str(input_file)) ``` --- ## ❌ 错误类型 2:索引越界(index -1 out of bounds) ``` 处理文件 D:/桌面/point/data/part1\709721.ply 时出错: index -1 is out of bounds for axis 0 with size 0 ``` ### 🔍 问题分析 - **尝试访问一个空数组的最后一个元素**; - 通常发生在以下代码中: ```python labels = db.labels_ valid_indices = np.where(labels != -1)[0] ``` 如果 `labels` 是空数组(如 `len(labels) == 0`),就会报错。 ### ✅ 解决方案 在执行 `np.where(labels != -1)` 之前加判断: ```python if labels.size == 0: # 处理空标签情况,例如跳过该文件或返回原始点云 return pcd # 或 raise 异常提示数据异常 ``` --- ## 🛠️ 推荐改进后的 `run_DBSCAN` 函数 ```python def run_DBSCAN(pcd, min_samples=10): points = np.asarray(pcd.points) if len(points) == 0: print("⚠️ 空点云,跳过 DBSCAN") return pcd, {}, [] # 计算平均密度 tree = cKDTree(points) distances, _ = tree.query(points, k=20) eps = np.percentile(distances[:, -1], 95) # 执行 DBSCAN db = DBSCAN(eps=eps, min_samples=min_samples).fit(points) labels = db.labels_ # 处理无聚类情况 if labels.size == 0: print("⚠️ DBSCAN 未生成有效聚类") return pcd, {}, [] # 移除噪声点 valid_indices = np.where(labels != -1)[0] if len(valid_indices) == 0: print("⚠️ 所有点都被标记为噪声") return pcd, {}, [] denoised_pcd = o3d.geometry.PointCloud() denoised_pcd.points = o3d.utility.Vector3dVector(points[valid_indices]) # 保留属性 clean_attributes = {} if pcd.has_colors(): colors = np.asarray(pcd.colors) clean_attributes['colors'] = colors[valid_indices] if pcd.has_normals(): normals = np.asarray(pcd.normals) clean_attributes['normals'] = normals[valid_indices] # 提取簇 clusters = [] unique_labels = np.unique(labels[labels != -1]) for label in unique_labels: cluster_indices = np.where(labels == label)[0] cluster_pcd = o3d.geometry.PointCloud() cluster_pcd.points = o3d.utility.Vector3dVector(points[cluster_indices]) clusters.append(cluster_pcd) return denoised_pcd, clean_attributes, clusters ``` --- ## 📁 路径建议(避免中文路径) **建议将输入路径改为英文路径**,例如: ``` INPUT_FOLDER = 'D:/code/point_cloud/data/part1' OUTPUT_FOLDER = 'D:/code/point_cloud/output' ``` 避免路径中包含“桌面”、“编程”、“点云大赛”等中文字符,有些库对中文路径支持不好。 --- ## ✅ 总结 | 问题 | 原因 | 解决方案 | |------|------|-----------| | `Read PLY failed: unable to open file` | 文件路径错误 | 使用 `Path` + `exists()` 检查路径 | | `index -1 is out of bounds for axis 0 with size 0` | 空数组访问最后一个元素 | 加空数组判断 | | 路径中含中文 | 部分库不兼容中文路径 | 改为英文路径 | | 多线程异常难以调试 | 日志中无上下文 | 添加 `try-except` 上下文打印 | --- 如果你希望我继续帮你: - ✅ 添加日志记录模块(带文件名+错误信息); - ✅ 自动跳过无效文件; - ✅ 生成错误日志文件(失败的文件列表); - ✅ 完整脚本修复; 请告诉我你的目标和需求,我可以继续为你完善脚本。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值