Comments (2)
This is the stack trace I get with a debug build of Zig 0.12.0-dev.2063+804cee3b9:
thread 573250 panic: attempt to unwrap error: ModuleNotFound
/var/home/ian/src/zig-worktrees/mach/src/Module.zig:3906:9: 0x1b170e3 in importFile (zig)
return error.ModuleNotFound;
^
/var/home/ian/src/zig-worktrees/mach/src/Autodoc.zig:1061:76: 0x17cdedf in walkInstruction (zig)
const new_file = self.comp_module.importFile(file, path) catch unreachable;
^
/var/home/ian/src/zig-worktrees/mach/src/Autodoc.zig:5728:36: 0x1b19939 in walkRef (zig)
return self.walkInstruction(
^
/var/home/ian/src/zig-worktrees/mach/src/Autodoc.zig:2849:32: 0x17e1ab5 in walkInstruction (zig)
return self.walkRef(
^
/var/home/ian/src/zig-worktrees/mach/src/Autodoc.zig:4261:49: 0x1e74046 in analyzeDecl (zig)
const walk_result = try self.walkInstruction(
^
/var/home/ian/src/zig-worktrees/mach/src/Autodoc.zig:4142:29: 0x1b29ee5 in analyzeAllDecls (zig)
try self.analyzeDecl(
^
/var/home/ian/src/zig-worktrees/mach/src/Autodoc.zig:3850:59: 0x17ecfaf in walkInstruction (zig)
extra_index = try self.analyzeAllDecls(
^
/var/home/ian/src/zig-worktrees/mach/src/Autodoc.zig:332:33: 0x17c7375 in generateZirData (zig)
_ = try self.walkInstruction(
^
/var/home/ian/src/zig-worktrees/mach/src/Autodoc.zig:91:32: 0x17f82be in generate (zig)
try autodoc.generateZirData(output_dir);
^
/var/home/ian/src/zig-worktrees/mach/src/Compilation.zig:2414:33: 0x17f879c in maybeGenerateAutodocs (zig)
try Autodoc.generate(mod, dir);
^
/var/home/ian/src/zig-worktrees/mach/src/Compilation.zig:2347:34: 0x17f8bf0 in flush (zig)
try maybeGenerateAutodocs(comp, prog_node);
^
/var/home/ian/src/zig-worktrees/mach/src/Compilation.zig:2311:22: 0x17fc951 in update (zig)
try flush(comp, arena, main_progress_node);
^
/var/home/ian/src/zig-worktrees/mach/src/main.zig:4462:24: 0x182a92c in updateModule (zig)
try comp.update(main_progress_node);
^
/var/home/ian/src/zig-worktrees/mach/src/main.zig:3331:17: 0x1848ba7 in buildOutputType (zig)
updateModule(comp, color) catch |err| switch (err) {
^
/var/home/ian/src/zig-worktrees/mach/src/main.zig:283:31: 0x1641539 in mainArgs (zig)
return buildOutputType(gpa, arena, args, .zig_test);
^
/var/home/ian/src/zig-worktrees/mach/src/main.zig:223:20: 0x163e585 in main (zig)
return mainArgs(gpa, arena, args);
^
/var/home/ian/src/zig-worktrees/mach/lib/std/start.zig:585:37: 0x163e006 in main (zig)
const result = root.main() catch |err| {
^
???:?:?: 0x7fef9df24149 in ??? (libc.so.6)
Unwind information for `libc.so.6:0x7fef9df24149` was not available, trace may be incomplete
???:?:?: 0x7fef9df2420a in ??? (libc.so.6)
???:?:?: 0x163dc54 in ??? (???)
Stack trace
I added a debug print statement right before the call to importFile
, which revealed that the failing import is mach-sysgpu
, which has been commented out of the latest build.zig
in the commit being tested: Autodoc is attempting to import this module and incorrectly asserting its success. This issue has also been reported as ziglang/zig#13512
from mach.
should be fixed now with the new autodocs system
from mach.
Related Issues (20)
- finish and document our novel/unique event system
- flac/opus: move sysaudio examples into main repo
- mach: `zig build run-sprite2d` on macOS cmd+q to quit the application crashes, closing the window via button does not.
- finish replacing direct3d-headers with directx-headers package
- editor: should not directly depend on spirv_cross, spirv_tools, sysgpu
- examples: should not depend on anything but mach
- mach: use b.lazyDependency where possible
- Tracking issue: priorities of real-world Mach users
- get pixi working with sysgpu with Linux/Vulkan backend
- ecs: `General protection exception (no address available)` HOT 2
- all: nominate Zig 2024.05 HOT 1
- testing: reconsider expect/got order
- mach: ensure usage-as-dependency does not involve building all examples, basisu
- verify aftersun/pixi are quick to build, and file size of deps on disk is reasonable
- core: improve build API (remove App/CoreApp) and entrypoint API (supply your own entrypoint by default)
- 32 bit windows does not compile
- sysaudio: verify that we have a sane latency in all backends HOT 1
- all: use lazyDependency to optimize dependency fetching
- sysaudio: @sizeOf(T) is not the same as @bitSizeOf(T)
- math: remove usingnamespace for mixins
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mach.