Skip to content

Guard Code atom runtime paths against undefined values in AssemblyMap and nonReplicad handling#1656

Draft
Copilot wants to merge 4 commits into
mainfrom
copilot/address-console-errors
Draft

Guard Code atom runtime paths against undefined values in AssemblyMap and nonReplicad handling#1656
Copilot wants to merge 4 commits into
mainfrom
copilot/address-console-errors

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 15, 2026

Loading some projects was emitting repeated Code atom runtime errors from two paths:

  • TypeError: can't access property "geometry", node is undefined (isRealizedLeaf -> processNode -> assemblyMap)
  • TypeError: can't access property "nonReplicadSerialized", atomValue is undefined (buildNonReplicadGeom during onUpstreamChange)

This PR hardens both runtime paths so filtered/missing/undefined values are handled safely.

  • Code atom traversal hardening (src/worker/code.ts)

    • Updated assemblyMap callback contract to allow undefined return values.
    • Made recursive processNode accept undefined and short-circuit safely.
    • Prevented ensureDimension from running on undefined callback results.
    • Added defensive guards in isRealizedLeaf to avoid dereferencing malformed/undefined nodes.
  • Code atom non-replicad guard (src/prototypes/atom.js)

    • Hardened buildNonReplicadGeom to safely handle undefined/null/non-object atomValue before reading nonReplicadSerialized.
    • Prevents repeated Code atom crashes when compute resolves with undefined-like values.
  • Regression coverage

    • tests/code.test.js: added a focused test proving AssemblyMap can filter leaves by returning undefined without crashing.
    • tests/atom-nonreplicad-guard.test.js: added a focused test validating buildNonReplicadGeom does not throw on undefined/primitive values and keeps non-replicad geometry state valid.
  • Behavioral impact

    • Eliminates noisy console/runtime failures from both Code atom assembly traversal and non-replicad geometry handling when values are missing/filtered.
    • Preserves existing behavior for normal Code atom geometry transformations and rendering.
const filtered = await AssemblyMap(assembled, async (leaf) => {
  if (shouldDrop(leaf)) return undefined; // handled safely
  return leaf;
});
https://github.com/user-attachments/assets/9ea8c216-defe-4b57-9e72-17ba1739c23c

Copilot AI linked an issue Apr 15, 2026 that may be closed by this pull request
Agent-Logs-Url: https://github.com/BarbourSmith/Abundance/sessions/c3d44838-0fe4-46cd-8081-eb6eecf7fd7b

Co-authored-by: BarbourSmith <9359447+BarbourSmith@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix errors when loading projects Guard Code atom assembly traversal against undefined nodes in AssemblyMap Apr 15, 2026
Copilot AI requested a review from BarbourSmith April 15, 2026 22:11
@BarbourSmith
Copy link
Copy Markdown
Owner

@copilot I am still seeing a lot of errors like:


Error in atom: Code [index.tsx:86:16](http://localhost:4444/node_modules/its-fine/src/index.tsx)
TypeError: can't access property "nonReplicadSerialized", atomValue is undefined
    buildNonReplicadGeom atom.js:1060
    onUpstreamChange atom.js:1111
    promise callback*onUpstreamChange atom.js:1110
    enable atom.js:516
    enableAllChildrenInOrder molecule.js:483
    enableAllChildrenInOrder molecule.js:481
    onUpstreamChange molecule.js:898
    deserialize molecule.js:1264
    propagateChange observableEntity.js:136
    propagateChange observableEntity.js:134
    setStatus observableEntity.js:45
    setWaiting observableEntity.js:56
    enable atom.js:493
    enable molecule.js:1331
    enableAllChildrenInOrder molecule.js:483
    enableAllChildrenInOrder molecule.js:481
    onUpstreamChange molecule.js:898
    deserialize molecule.js:1264
    propagateChange observableEntity.js:136
    propagateChange observableEntity.js:134
    setStatus observableEntity.js:45
    setWaiting observableEntity.js:56
    enable atom.js:493
    enable molecule.js:1331
    enable atom.js:503
    enable atom.js:497
    enable atom.js:495
    enableAllChildrenInOrder molecule.js:483
    enableAllChildrenInOrder molecule.js:481
    onUpstreamChange molecule.js:898
    deserialize molecule.js:1264
    propagateChange observableEntity.js:136
    propagateChange observableEntity.js:134
    setStatus observableEntity.js:45
    setWaiting observableEntity.js:56
    enable atom.js:493
    enable molecule.js:1331
    enableAllChildrenInOrder molecule.js:483
    enableAllChildrenInOrder molecule.js:481
    onUpstreamChange molecule.js:898
    deserialize molecule.js:1264
    propagateChange observableEntity.js:136
    propagateChange observableEntity.js:134
    setStatus observableEntity.js:45
    setWaiting observableEntity.js:56
    enable atom.js:493
    enable molecule.js:1331
    enable atom.js:503
    enable atom.js:497
    enable atom.js:495
    enable atom.js:503
    enable atom.js:497
    enable atom.js:495
    enable atom.js:503
    enable atom.js:497
    enable atom.js:495
    enableAllChildrenInOrder molecule.js:483
    enableAllChildrenInOrder molecule.js:481
    onUpstreamChange molecule.js:898
    deserialize molecule.js:1264
    propagateChange observableEntity.js:136
    propagateChange observableEntity.js:134
    setStatus observableEntity.js:45
    setWaiting observableEntity.js:56
    enable atom.js:493
    enable molecule.js:1331
    enable atom.js:503
    enable atom.js:497
    enable atom.js:495
    enableAllChildrenInOrder molecule.js:483
    enableAllChildrenInOrder molecule.js:481
    onUpstreamChange molecule.js:898
    deserialize molecule.js:1264
    propagateChange observableEntity.js:136
    propagateChange observableEntity.js:134
    setStatus observableEntity.js:45
    setWaiting observableEntity.js:56
    enable atom.js:493
    enable molecule.js:1331
    enable atom.js:503
    enable atom.js:497
    enable atom.js:495
    enable atom.js:503
    enable atom.js:497
    enable atom.js:495
    enable atom.js:503
    enable atom.js:497
    enable atom.js:495
    enableAllChildrenInOrder molecule.js:483
    enableAllChildrenInOrder molecule.js:481
    onUpstreamChange molecule.js:898
    deserialize molecule.js:1264
    propagateChange observableEntity.js:136
    propagateChange observableEntity.js:134
    setStatus observableEntity.js:45
    setWaiting observableEntity.js:56
    enable atom.js:493
    enable molecule.js:1331
    enable atom.js:503
[index.tsx:86:16](http://localhost:4444/node_modules/its-fine/src/index.tsx)
Error in atom: Code [index.tsx:86:16](http://localhost:4444/node_modules/its-fine/src/index.tsx)
TypeError: can't access property "nonReplicadSerialized", atomValue is undefined
    buildNonReplicadGeom atom.js:1060
    onUpstreamChange atom.js:1111
    promise callback*onUpstreamChange atom.js:1110
    propagateInputChange molecule.js:961
    propagateInputChange molecule.js:936
    onUpstreamChange input.js:339
    Input input.js:139
    propagateChange observableEntity.js:136
    propagateChange observableEntity.js:134
    setStatus observableEntity.js:45
    onUpstreamChange attachmentpoint.js:946
    attach attachmentpoint.js:931
    propagateChange observableEntity.js:136
    propagateChange observableEntity.js:134
    setStatus observableEntity.js:45
    setReady observableEntity.js:72
    onUpstreamChange atom.js:1112
    promise callback*onUpstreamChange atom.js:1110
    _subscribeToInputs atom.js:318
    propagateChange observableEntity.js:136
    propagateChange observableEntity.js:134
    setStatus observableEntity.js:45
    onUpstreamChange attachmentpoint.js:946
    attach attachmentpoint.js:931
    propagateChange observableEntity.js:136
    propagateChange observableEntity.js:134
    setStatus observableEntity.js:45
    setReady observableEntity.js:72
    onUpstreamChange atom.js:1112
    promise callback*onUpstreamChange atom.js:1110
    enable atom.js:516
    enableAllChildrenInOrder molecule.js:483
    enableAllChildrenInOrder molecule.js:481
    onUpstreamChange molecule.js:898
    deserialize molecule.js:1264
    propagateChange observableEntity.js:136
    propagateChange observableEntity.js:134
    setStatus observableEntity.js:45
    setWaiting observableEntity.js:56
    enable atom.js:493
    enable molecule.js:1331
    enable atom.js:503
    enable atom.js:497
    enable atom.js:495
    enableAllChildrenInOrder molecule.js:483
    enableAllChildrenInOrder molecule.js:481
    onUpstreamChange molecule.js:898
    deserialize molecule.js:1264
    propagateChange observableEntity.js:136
    propagateChange observableEntity.js:134
    setStatus observableEntity.js:45
    setWaiting observableEntity.js:56
    enable atom.js:493

Please make sure to fully test your changes.

@github-actions
Copy link
Copy Markdown

📸 Puppeteer Test Screenshots

Screenshots from commit: 9cb7668

Generated 9 screenshot(s):

Two Project Comparison

main.png

main.png

📁 S3 Location: Screenshots are stored in abundance-screenshots/pr-1656/pr-run-4157/

Note: S3 images are automatically cleaned up after 30 days. Workflow artifacts are cleaned up after 90 days by GitHub.

@github-actions
Copy link
Copy Markdown

⚡ Performance Metrics Comparison

ProjectName coldLoadTimeMs warmLoadTimeMs cacheSize cacheEntryCount projectFileSize
Wall-Anchor 5637 → 5479
✅ -158 (-2.8%)
5381 → 5584
✅ +203 (3.8%)
132.83 KB → 132.83 KB
✅ +0 Bytes (0.0%)
63 → 63
✅ 0 (0.0%)
66.3 KB → 66.3 KB
✅ +0 Bytes (0.0%)
Test-Everything-Fully 3737 → 3425
✅ -312 (-8.3%)
1607 → 2467
⚠️ +860 (53.5%)
208.6 KB → 208.6 KB
✅ +0 Bytes (0.0%)
70 → 70
✅ 0 (0.0%)
58.6 KB → 58.6 KB
✅ +0 Bytes (0.0%)
Testing-gcode 9571 → 7692
✅ -1879 (-19.6%)
6399 → 7782
⚠️ +1383 (21.6%)
318.31 KB → 318.31 KB
✅ +0 Bytes (0.0%)
64 → 64
✅ 0 (0.0%)
8.41 KB → 8.41 KB
✅ +0 Bytes (0.0%)

🔧 GCode Generation & Visualization Metrics

Project GCode Atoms Generation Time Visualization Time Lines Commands
Test-Everything-Fully 1 → 1 N/A 179ms → 133ms
⚠️ -46ms (-25.9%)
1104 → 1104
0
889 → 889
0
Testing-gcode 1 → 1 N/A 1304ms → 967ms
⚠️ -337ms (-25.8%)
5811 → 5811
0
5596 → 5596
0

@BarbourSmith
Copy link
Copy Markdown
Owner

@alzatin The issue here is real I think, but I don’t know that the AI solution is in any way meaningful. Does this make any sense to you?

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 15, 2026

@copilot I am still seeing a lot of errors like:


...

Fixed in commit 4e0d9e7. I added a defensive guard in src/prototypes/atom.js so buildNonReplicadGeom safely handles undefined/null/non-object Code outputs before reading nonReplicadSerialized, which prevents the repeated runtime error path you reported. I also added a focused regression test in tests/atom-nonreplicad-guard.test.js that exercises the real Atom.buildNonReplicadGeom path with undefined/primitive values.

Validation run:

  • npx vitest run tests/atom-nonreplicad-guard.test.js
  • npx vitest run tests/code-number-return.test.js
  • npm run build
  • npm run unit still has unrelated pre-existing failures in this environment (e.g. global is not defined, perf/time-based and worker-error tests)
  • npm test still fails in this sandbox due project/deployed network reachability/timeouts

Screenshot: https://github.com/user-attachments/assets/9ea8c216-defe-4b57-9e72-17ba1739c23c

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • abundance.maslowcnc.com
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=network --no-sandbox --disable-dev-shm-usage --use-angle=swiftshader-webgl --mute-audio --crashpad-handler-pid=4868 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/puppeteer_dev_chrome_profile-Hn10wG --subproc-heap-profiling --change-stack-guard-on-fork=enable --shared-files=network_parent_dirs_pipe:100,v8_context_snapshot_data:101 --field-trial-handle=3,i,18246290645788974899,12296277835725841144,262144 --enable-features=PdfOopif --disable-features=AcceptCHFrame,IsolateSandboxedIframes,MediaRouter,OptimizationHints,PaintHolding,ProcessPerSiteUpToMainFrameThreshold,RenderDocument,Translate --variations-seed-version (dns block)
    • Triggering command: /home/REDACTED/.cache/puppeteer/chrome/linux-140.0.7339.207/chrome-linux64/chrome /home/REDACTED/.cache/puppeteer/chrome/linux-140.0.7339.207/chrome-linux64/chrome --allow-pre-commit-input --disable-REDACTED-networking --disable-REDACTED-timer-throttling --disable-REDACTEDing-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-REDACTED-pages --disable-crash-reporter --disable-default-apps --disable-dev-shm-usage --disable-hang-monitor --disable-infobars --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-REDACTEDing --disable-search-engine-choice-screen --disable-sync --enable-automation (dns block)
  • accounts.google.com
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=network --no-sandbox --disable-dev-shm-usage --use-angle=swiftshader-webgl --mute-audio --crashpad-handler-pid=4868 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/puppeteer_dev_chrome_profile-Hn10wG --subproc-heap-profiling --change-stack-guard-on-fork=enable --shared-files=network_parent_dirs_pipe:100,v8_context_snapshot_data:101 --field-trial-handle=3,i,18246290645788974899,12296277835725841144,262144 --enable-features=PdfOopif --disable-features=AcceptCHFrame,IsolateSandboxedIframes,MediaRouter,OptimizationHints,PaintHolding,ProcessPerSiteUpToMainFrameThreshold,RenderDocument,Translate --variations-seed-version (dns block)
    • Triggering command: /home/REDACTED/.cache/puppeteer/chrome/linux-140.0.7339.207/chrome-linux64/chrome /home/REDACTED/.cache/puppeteer/chrome/linux-140.0.7339.207/chrome-linux64/chrome --allow-pre-commit-input --disable-REDACTED-networking --disable-REDACTED-timer-throttling --disable-REDACTEDing-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-REDACTED-pages --disable-crash-reporter --disable-default-apps --disable-dev-shm-usage --disable-hang-monitor --disable-infobars --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-REDACTEDing --disable-search-engine-choice-screen --disable-sync --enable-automation (dns block)
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=network --no-sandbox --disable-dev-shm-usage --use-angle=swiftshader-webgl --mute-audio --crashpad-handler-pid=5168 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/puppeteer_dev_chrome_profile-0sAPug --subproc-heap-profiling --change-stack-guard-on-fork=enable --shared-files=network_parent_dirs_pipe:100,v8_context_snapshot_data:101 --field-trial-handle=3,i,16597834956456244022,13071562795515207010,262144 --enable-features=PdfOopif --disable-features=AcceptCHFrame,IsolateSandboxedIframes,MediaRouter,OptimizationHints,PaintHolding,ProcessPerSiteUpToMainFrameThreshold,RenderDocument,Translate --variations-seed-version (dns block)
  • android.clients.google.com
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=network --no-sandbox --disable-dev-shm-usage --use-angle=swiftshader-webgl --mute-audio --crashpad-handler-pid=4868 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/puppeteer_dev_chrome_profile-Hn10wG --subproc-heap-profiling --change-stack-guard-on-fork=enable --shared-files=network_parent_dirs_pipe:100,v8_context_snapshot_data:101 --field-trial-handle=3,i,18246290645788974899,12296277835725841144,262144 --enable-features=PdfOopif --disable-features=AcceptCHFrame,IsolateSandboxedIframes,MediaRouter,OptimizationHints,PaintHolding,ProcessPerSiteUpToMainFrameThreshold,RenderDocument,Translate --variations-seed-version (dns block)
    • Triggering command: /home/REDACTED/.cache/puppeteer/chrome/linux-140.0.7339.207/chrome-linux64/chrome /home/REDACTED/.cache/puppeteer/chrome/linux-140.0.7339.207/chrome-linux64/chrome --allow-pre-commit-input --disable-REDACTED-networking --disable-REDACTED-timer-throttling --disable-REDACTEDing-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-REDACTED-pages --disable-crash-reporter --disable-default-apps --disable-dev-shm-usage --disable-hang-monitor --disable-infobars --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-REDACTEDing --disable-search-engine-choice-screen --disable-sync --enable-automation (dns block)
  • clients2.google.com
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=network --no-sandbox --disable-dev-shm-usage --use-angle=swiftshader-webgl --mute-audio --crashpad-handler-pid=4868 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/puppeteer_dev_chrome_profile-Hn10wG --subproc-heap-profiling --change-stack-guard-on-fork=enable --shared-files=network_parent_dirs_pipe:100,v8_context_snapshot_data:101 --field-trial-handle=3,i,18246290645788974899,12296277835725841144,262144 --enable-features=PdfOopif --disable-features=AcceptCHFrame,IsolateSandboxedIframes,MediaRouter,OptimizationHints,PaintHolding,ProcessPerSiteUpToMainFrameThreshold,RenderDocument,Translate --variations-seed-version (dns block)
    • Triggering command: /home/REDACTED/.cache/puppeteer/chrome/linux-140.0.7339.207/chrome-linux64/chrome /home/REDACTED/.cache/puppeteer/chrome/linux-140.0.7339.207/chrome-linux64/chrome --allow-pre-commit-input --disable-REDACTED-networking --disable-REDACTED-timer-throttling --disable-REDACTEDing-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-REDACTED-pages --disable-crash-reporter --disable-default-apps --disable-dev-shm-usage --disable-hang-monitor --disable-infobars --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-REDACTEDing --disable-search-engine-choice-screen --disable-sync --enable-automation (dns block)
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=network --no-sandbox --disable-dev-shm-usage --use-angle=swiftshader-webgl --mute-audio --crashpad-handler-pid=5168 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/puppeteer_dev_chrome_profile-0sAPug --subproc-heap-profiling --change-stack-guard-on-fork=enable --shared-files=network_parent_dirs_pipe:100,v8_context_snapshot_data:101 --field-trial-handle=3,i,16597834956456244022,13071562795515207010,262144 --enable-features=PdfOopif --disable-features=AcceptCHFrame,IsolateSandboxedIframes,MediaRouter,OptimizationHints,PaintHolding,ProcessPerSiteUpToMainFrameThreshold,RenderDocument,Translate --variations-seed-version (dns block)
  • fonts.googleapis.com
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=network --no-sandbox --disable-dev-shm-usage --use-angle=swiftshader-webgl --mute-audio --crashpad-handler-pid=4868 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/puppeteer_dev_chrome_profile-Hn10wG --subproc-heap-profiling --change-stack-guard-on-fork=enable --shared-files=network_parent_dirs_pipe:100,v8_context_snapshot_data:101 --field-trial-handle=3,i,18246290645788974899,12296277835725841144,262144 --enable-features=PdfOopif --disable-features=AcceptCHFrame,IsolateSandboxedIframes,MediaRouter,OptimizationHints,PaintHolding,ProcessPerSiteUpToMainFrameThreshold,RenderDocument,Translate --variations-seed-version (dns block)
    • Triggering command: /home/REDACTED/.cache/puppeteer/chrome/linux-140.0.7339.207/chrome-linux64/chrome /home/REDACTED/.cache/puppeteer/chrome/linux-140.0.7339.207/chrome-linux64/chrome --allow-pre-commit-input --disable-REDACTED-networking --disable-REDACTED-timer-throttling --disable-REDACTEDing-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-REDACTED-pages --disable-crash-reporter --disable-default-apps --disable-dev-shm-usage --disable-hang-monitor --disable-infobars --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-REDACTEDing --disable-search-engine-choice-screen --disable-sync --enable-automation (dns block)
  • fonts.gstatic.com
    • Triggering command: /home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1194/chrome-linux/headless_shell /home/REDACTED/.cache/ms-playwright/chromium_headless_shell-1194/chrome-linux/headless_shell --disable-field-trial-config --disable-REDACTED-networking --disable-REDACTED-timer-throttling --disable-REDACTEDing-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-REDACTED-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=AcceptCHFrame,AvoidUnnecessaryBeforeUnloadCheckSync,DestroyProfileOnBrowserClose,DialMediaRouteProvider,GlobalMediaControls,HttpsUpgrades,LensOverlay,MediaRouter,PaintHolding,ThirdPartyStoragePartitioning,Translate,AutoDeElevate,RenderD /home/REDACTED/.config/composer/vendor/bin/git (dns block)
  • google.com
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=network --no-sandbox --disable-dev-shm-usage --use-angle=swiftshader-webgl --mute-audio --crashpad-handler-pid=4868 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/puppeteer_dev_chrome_profile-Hn10wG --subproc-heap-profiling --change-stack-guard-on-fork=enable --shared-files=network_parent_dirs_pipe:100,v8_context_snapshot_data:101 --field-trial-handle=3,i,18246290645788974899,12296277835725841144,262144 --enable-features=PdfOopif --disable-features=AcceptCHFrame,IsolateSandboxedIframes,MediaRouter,OptimizationHints,PaintHolding,ProcessPerSiteUpToMainFrameThreshold,RenderDocument,Translate --variations-seed-version (dns block)
  • hg5gsgv9te.execute-api.us-east-2.amazonaws.com
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=network --no-sandbox --disable-dev-shm-usage --use-angle=swiftshader-webgl --mute-audio --crashpad-handler-pid=4868 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/puppeteer_dev_chrome_profile-Hn10wG --subproc-heap-profiling --change-stack-guard-on-fork=enable --shared-files=network_parent_dirs_pipe:100,v8_context_snapshot_data:101 --field-trial-handle=3,i,18246290645788974899,12296277835725841144,262144 --enable-features=PdfOopif --disable-features=AcceptCHFrame,IsolateSandboxedIframes,MediaRouter,OptimizationHints,PaintHolding,ProcessPerSiteUpToMainFrameThreshold,RenderDocument,Translate --variations-seed-version (dns block)
    • Triggering command: /home/REDACTED/.cache/puppeteer/chrome/linux-140.0.7339.207/chrome-linux64/chrome /home/REDACTED/.cache/puppeteer/chrome/linux-140.0.7339.207/chrome-linux64/chrome --allow-pre-commit-input --disable-REDACTED-networking --disable-REDACTED-timer-throttling --disable-REDACTEDing-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-REDACTED-pages --disable-crash-reporter --disable-default-apps --disable-dev-shm-usage --disable-hang-monitor --disable-infobars --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-REDACTEDing --disable-search-engine-choice-screen --disable-sync --enable-automation (dns block)
  • update.googleapis.com
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=network --no-sandbox --disable-dev-shm-usage --use-angle=swiftshader-webgl --mute-audio --crashpad-handler-pid=4868 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/puppeteer_dev_chrome_profile-Hn10wG --subproc-heap-profiling --change-stack-guard-on-fork=enable --shared-files=network_parent_dirs_pipe:100,v8_context_snapshot_data:101 --field-trial-handle=3,i,18246290645788974899,12296277835725841144,262144 --enable-features=PdfOopif --disable-features=AcceptCHFrame,IsolateSandboxedIframes,MediaRouter,OptimizationHints,PaintHolding,ProcessPerSiteUpToMainFrameThreshold,RenderDocument,Translate --variations-seed-version (dns block)
    • Triggering command: /home/REDACTED/.cache/puppeteer/chrome/linux-140.0.7339.207/chrome-linux64/chrome /home/REDACTED/.cache/puppeteer/chrome/linux-140.0.7339.207/chrome-linux64/chrome --allow-pre-commit-input --disable-REDACTED-networking --disable-REDACTED-timer-throttling --disable-REDACTEDing-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-REDACTED-pages --disable-crash-reporter --disable-default-apps --disable-dev-shm-usage --disable-hang-monitor --disable-infobars --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-REDACTEDing --disable-search-engine-choice-screen --disable-sync --enable-automation (dns block)
  • www.google.com
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=network --no-sandbox --disable-dev-shm-usage --use-angle=swiftshader-webgl --mute-audio --crashpad-handler-pid=4868 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/puppeteer_dev_chrome_profile-Hn10wG --subproc-heap-profiling --change-stack-guard-on-fork=enable --shared-files=network_parent_dirs_pipe:100,v8_context_snapshot_data:101 --field-trial-handle=3,i,18246290645788974899,12296277835725841144,262144 --enable-features=PdfOopif --disable-features=AcceptCHFrame,IsolateSandboxedIframes,MediaRouter,OptimizationHints,PaintHolding,ProcessPerSiteUpToMainFrameThreshold,RenderDocument,Translate --variations-seed-version (dns block)
    • Triggering command: /home/REDACTED/.cache/puppeteer/chrome/linux-140.0.7339.207/chrome-linux64/chrome /home/REDACTED/.cache/puppeteer/chrome/linux-140.0.7339.207/chrome-linux64/chrome --allow-pre-commit-input --disable-REDACTED-networking --disable-REDACTED-timer-throttling --disable-REDACTEDing-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-REDACTED-pages --disable-crash-reporter --disable-default-apps --disable-dev-shm-usage --disable-hang-monitor --disable-infobars --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-REDACTEDing --disable-search-engine-choice-screen --disable-sync --enable-automation (dns block)
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=network --no-sandbox --disable-dev-shm-usage --use-angle=swiftshader-webgl --mute-audio --crashpad-handler-pid=5168 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/puppeteer_dev_chrome_profile-0sAPug --subproc-heap-profiling --change-stack-guard-on-fork=enable --shared-files=network_parent_dirs_pipe:100,v8_context_snapshot_data:101 --field-trial-handle=3,i,16597834956456244022,13071562795515207010,262144 --enable-features=PdfOopif --disable-features=AcceptCHFrame,IsolateSandboxedIframes,MediaRouter,OptimizationHints,PaintHolding,ProcessPerSiteUpToMainFrameThreshold,RenderDocument,Translate --variations-seed-version (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title Guard Code atom assembly traversal against undefined nodes in AssemblyMap Guard Code atom runtime paths against undefined values in AssemblyMap and nonReplicad handling Apr 15, 2026
@alzatin
Copy link
Copy Markdown
Collaborator

alzatin commented Apr 16, 2026

@BarbourSmith ok so i think the errrors you are seeing in the console are errors happening inside github molecules, like there could be an error in the console from a code atom that is failing inside a github molecule even if that atom is not even connected to your final output.

i think the problem seems to be that we excecute the code before all inputs are available or ready. I think switching to typescript checking and handling optional inputs in the code atom will get rid of these.

TBH is possible that i caused this issue a while back when i wanted the code atom to not be hung up in waiting for geometries that it didn't need even though they were defined as inputs. Is not a problem for the code atom if the geometries are null or undefined but when we run wrapped Abundance methods it triggers an error.

@alzatin
Copy link
Copy Markdown
Collaborator

alzatin commented Apr 16, 2026

Screenshot 2026-04-16 at 9 27 00 AM

So for example in your project, those errors are coming from molecules like this which are able to compute their output but might still have errors inside them. I don't know what your filletVerticles looks like but here for example, this molecule never shows as finished and throws console errors because of that random code on the side that is running because we had told the code atom to turn geometries that it couldn't find values for into null values to prevent the entire molecule from waiting if it didnt receive all the input geometry values

Screenshot 2026-04-16 at 9 33 46 AM

@BarbourSmith
Copy link
Copy Markdown
Owner

@tristan-huber I'm going to tag you here too because it seems like the real fix to this is to revamp the code atom which I know that you and Mo already have plans for and we should all discuss them at some point maybe next week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Address errors

3 participants