Skip to content

自己编译的游戏无法启动 #637

@wangruoyuyuyu

Description

@wangruoyuyuyu

由于release太老,Windows触屏设备无法支持多点触控,于是我尝试自己构建。构建成功后运行报错:

F:\下载\phira-main\target\debug>F:\下载\phira-main\target\debug\phira-main.exe

thread 'main' (17256) panicked at C:\Users\Administrator\.cargo\git\checkouts\prpr-miniquad-43823a28bf246e16\bb60ff8\src\native\windows\wgl.rs:278:9:
WGL_ARB_pixel_format is required
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

thread 'main' (17256) panicked at library\core\src\panicking.rs:230:5:
panic in a function that cannot unwind
stack backtrace:
   0:     0x7ff730d4d462 - std::backtrace_rs::backtrace::win64::trace
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\..\..\backtrace\src\backtrace\win64.rs:85
   1:     0x7ff730d4d462 - std::backtrace_rs::backtrace::trace_unsynchronized
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\..\..\backtrace\src\backtrace\mod.rs:66
   2:     0x7ff730d4d462 - std::sys::backtrace::_print_fmt
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\sys\backtrace.rs:66
   3:     0x7ff730d4d462 - std::sys::backtrace::impl$0::print::impl$0::fmt
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\sys\backtrace.rs:39
   4:     0x7ff730d5b10a - core::fmt::rt::Argument::fmt
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\core\src\fmt\rt.rs:173
   5:     0x7ff730d5b10a - core::fmt::write
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\core\src\fmt\mod.rs:1469
   6:     0x7ff730d2c277 - std::io::default_write_fmt
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\io\mod.rs:639
   7:     0x7ff730d2c277 - std::io::Write::write_fmt<std::sys::stdio::windows::Stderr>
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\io\mod.rs:1954
   8:     0x7ff730d3cda5 - std::sys::backtrace::BacktraceLock::print
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\sys\backtrace.rs:42
   9:     0x7ff730d41bb9 - std::panicking::default_hook::closure$0
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\panicking.rs:301
  10:     0x7ff730d419a8 - std::panicking::default_hook
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\panicking.rs:328
  11:     0x7ff730d4243b - std::panicking::panic_with_hook
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\panicking.rs:834
  12:     0x7ff730d421d2 - std::panicking::panic_handler::closure$0
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\panicking.rs:700
  13:     0x7ff730d3cfaf - std::sys::backtrace::__rust_end_short_backtrace<std::panicking::panic_handler::closure_env$0,never$>
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\sys\backtrace.rs:174
  14:     0x7ff730d2866e - std::panicking::panic_handler
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\panicking.rs:698
  15:     0x7ff730e5acf5 - core::panicking::panic_nounwind_fmt
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\core\src\intrinsics\mod.rs:2435
  16:     0x7ff730e5ac43 - core::panicking::panic_nounwind
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\core\src\panicking.rs:230
  17:     0x7ff730e5ae71 - core::panicking::panic_cannot_unwind
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\core\src\panicking.rs:342
  18:     0x7ff72fc03816 - phira::quad_main
                               at F:\下载\phira-main\phira\src\lib.rs:303
  19:     0x7ffcd96f0500 - _CxxFrameHandler3
  20:     0x7ffcd96e3a91 - is_exception_typeof
  21:     0x7ffcd96ef978 - _C_specific_handler
  22:     0x7ffcd96e2c78 - is_exception_typeof
  23:     0x7ffcd96f0311 - _CxxFrameHandler3
  24:     0x7ffd1682647f - _chkstk
  25:     0x7ffd166ce593 - RtlUnwindEx
  26:     0x7ffcd96efe76 - _C_specific_handler
  27:     0x7ffcd96e18f2 - is_exception_typeof
  28:     0x7ffcd96e1d17 - is_exception_typeof
  29:     0x7ffcd96e2d61 - is_exception_typeof
  30:     0x7ffcd96f0311 - _CxxFrameHandler3
  31:     0x7ffd168263ff - _chkstk
  32:     0x7ffd166d2327 - RtlLocateExtendedFeature
  33:     0x7ffd166ca961 - RtlRaiseException
  34:     0x7ffd13a580da - RaiseException
  35:     0x7ffcd96e5277 - CxxThrowException
  36:     0x7ff730d4d95d - panic_unwind::imp::throw_exception
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\panic_unwind\src\seh.rs:366
  37:     0x7ff730d4d835 - panic_unwind::imp::panic
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\panic_unwind\src\seh.rs:302
  38:     0x7ff730d4d835 - panic_unwind::__rust_start_panic
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\panic_unwind\src\lib.rs:110
  39:     0x7ff730d28355 - std::panicking::rust_panic
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\panicking.rs:895
  40:     0x7ff730d424b3 - std::panicking::panic_with_hook
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\panicking.rs:859
  41:     0x7ff730d418bd - std::panicking::begin_panic::closure$0<ref$<str$> >
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\panicking.rs:771
  42:     0x7ff730d3cf9f - std::sys::backtrace::__rust_end_short_backtrace<std::panicking::begin_panic::closure_env$0<ref$<str$> >,never$>
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\sys\backtrace.rs:174
  43:     0x7ff730e5923e - std::panicking::begin_panic<ref$<str$> >
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\panicking.rs:770
  44:     0x7ff730d23c43 - miniquad::native::windows::wgl::Wgl::new
                               at C:\Users\Administrator\.cargo\git\checkouts\prpr-miniquad-43823a28bf246e16\bb60ff8\src\native\windows\wgl.rs:278
  45:     0x7ff7300eeed3 - miniquad::native::windows::run<macroquad::impl$3::from_config::closure_env$0<enum2$<phira::quad_main::async_block_env$0> > >
                               at C:\Users\Administrator\.cargo\git\checkouts\prpr-miniquad-43823a28bf246e16\bb60ff8\src\native\windows.rs:914
  46:     0x7ff73006a62b - miniquad::start<macroquad::impl$3::from_config::closure_env$0<enum2$<phira::quad_main::async_block_env$0> > >
                               at C:\Users\Administrator\.cargo\git\checkouts\prpr-miniquad-43823a28bf246e16\bb60ff8\src\lib.rs:222
  47:     0x7ff72fcdfa2b - macroquad::Window::from_config<enum2$<phira::quad_main::async_block_env$0> >
                               at C:\Users\Administrator\.cargo\git\checkouts\prpr-macroquad-23a56986f96b3274\dae5b57\src\lib.rs:744
  48:     0x7ff72fc037d3 - phira::quad_main
                               at F:\下载\phira-main\phira\src\lib.rs:304
  49:     0x7ff72fc01039 - phira_main::main
                               at F:\下载\phira-main\phira-main\src\main.rs:2
  50:     0x7ff72fc010db - core::ops::function::FnOnce::call_once<void (*)(),tuple$<> >
                               at C:\Users\Administrator\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ops\function.rs:250
  51:     0x7ff72fc0101e - core::hint::black_box
                               at C:\Users\Administrator\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\hint.rs:472
  52:     0x7ff72fc0101e - std::sys::backtrace::__rust_begin_short_backtrace<void (*)(),tuple$<> >
                               at C:\Users\Administrator\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys\backtrace.rs:158
  53:     0x7ff72fc01141 - std::rt::lang_start::closure$0<tuple$<> >
                               at C:\Users\Administrator\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\rt.rs:206
  54:     0x7ff730d2d605 - std::rt::lang_start_internal::closure$0
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\rt.rs:175
  55:     0x7ff730d2d605 - std::panicking::catch_unwind::do_call
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\panicking.rs:590
  56:     0x7ff730d2d605 - std::panicking::catch_unwind
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\panicking.rs:553
  57:     0x7ff730d2d605 - std::panic::catch_unwind
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\panic.rs:359
  58:     0x7ff730d2d605 - std::rt::lang_start_internal
                               at /rustc/ded5c06cf21d2b93bffd5d884aa6e96934ee4234/library\std\src\rt.rs:171
  59:     0x7ff72fc0112a - std::rt::lang_start<tuple$<> >
                               at C:\Users\Administrator\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\rt.rs:205
  60:     0x7ff72fc01059 - main
  61:     0x7ff730e19c20 - invoke_main
                               at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78
  62:     0x7ff730e19c20 - __scrt_common_main_seh
                               at D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288
  63:     0x7ffd14b2e8d7 - BaseThreadInitThunk
  64:     0x7ffd1674c53c - RtlUserThreadStart
thread caused non-unwinding panic. aborting.

F:\下载\phira-main\target\debug>

系统信息:

操作系统名称	Microsoft Windows 11 专业工作站版
版本	10.0.26100 版本 26100
其他操作系统描述 	没有资料
操作系统制造商	Microsoft Corporation
系统名称	WRY-PC
系统制造商	INTEL
系统型号	
系统类型	基于 x64 的电脑
系统 SKU	Default string
处理器	Intel(R) Xeon(R) CPU E5-2667 v4 @ 3.20GHz,3201 Mhz,8 个内核,16 个逻辑处理器
BIOS 版本/日期	American Megatrends Inc. 5.11, 2023/10/26
SMBIOS 版本	3.0
嵌入式控制器版本	255.255
BIOS 模式	传统
主板制造商	INTEL
主板产品	X99
主板版本	V2.1
平台角色	台式机
安全启动状态	不支持
PCR7 配置	无法绑定
Windows 目录	C:\Windows
系统目录	C:\Windows\system32
启动设备	\Device\HarddiskVolume4
区域设置	中国
硬件抽象层	版本 = "10.0.26100.1"
用户名	没有资料
时区	中国标准时间
已安装的物理内存(RAM)	32.0 GB
总的物理内存	31.9 GB
可用物理内存	15.5 GB
总的虚拟内存	33.9 GB
可用虚拟内存	16.2 GB
页面文件空间	2.00 GB
页面文件	C:\pagefile.sys
内核 DMA 保护	关闭
基于虚拟化的安全性	正在运行
基于虚拟化的安全性要求的安全属性	
基于虚拟化的安全性提供的安全属性	基本的虚拟化支持, DMA 保护, APIC 虚拟化
基于虚拟化的安全服务已配置	
基于虚拟化的安全服务正在运行	
商用应用控制政策	已实施
商用应用控制用户模式政策	关闭
自动设备加密支持	设备自动加密失败的原因: TPM 不可用, 不支持 PCR7 绑定, 硬件安全测试界面失败,设备未处于现代待机模式, 检测到不允许使用的具有 DMA 功能的总线/设备, TPM 不可用
已检测到虚拟机监控程序。将不显示 Hyper-V 所需的功能。	

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions