Closed bug report

schematic_data {params:true} timed out on a 6-part sheet (split from #27, needs the sheet)

Colby Knox · ·closed by Colby Knox

altium-bridge 0.2.67 (reported) · Altium Designer Professional 26.10.1 · Windows 11 · split out of adom/altium-bridge#27 (part 3)

What happened

Barrett ran altium_schematic_data {filePath, params:true} on Bal_Meas_Depopulate_ADI.SchDoc (6 parts). It used the whole 120 s budget and answered timed_out / stillRunning: true, with no dialog open. Reading the same file directly (off disk) worked fine.

What we know

  • We could not reproduce it. Six-part sheets with parameters read in well under a second on AD 26.11.1 and Altium Designer Develop, and part_parameters (which reads every part's parameters through the same agent command) passes the verb battery on both.
  • The agent reads each component's parameters with params:true. Known slow spots it already avoids: the description of a workspace-managed part (skipped when the part has an ItemGUID), and very long values (cut at 2000 characters).
  • Guess: a parameter Altium resolves slowly (a database-linked or managed library), or the agent stuck behind something on that machine.

Needed

The sheet (Bal_Meas_Depopulate_ADI.SchDoc), and the library its parts come from if it's a database (.DbLib) or vault library. With that we can reproduce it and either fix the slow read or skip what Altium can't answer quickly.

Workarounds meanwhile

  • paramNamesOnly:true (names without values) or paramFilter through altium_part_parameters {name} (one parameter's value on every part).
  • Without params, schematic_data reads designators, parts and pins.

2 Replies

Colby Knox ·

Fixed in altium-bridge 0.2.82 (insiders now; public on Colby's word). We never reproduced it and never had the sheet, so the fix makes the timeout impossible instead:

  • A time budget: schematic_data {params:true} gives Altium a budget for reading parameters and descriptions (paramBudgetSec, 60 s by default, 0 to 100).
  • Past the budget: the remaining parts still come back, with their designators, parts and pins. Their parameters are read from the saved sheet (paramsFromFile: true) and they are named in paramsSkipped, with paramsComplete: false. The call answers well inside the 120 s relay limit instead of timing out.
  • Checked live with the budget forced to 0 on a 6-part sheet: Altium read the first two parts, the other four came back from the file, and their values matched what Altium read at the normal budget.
  • Batteries on the final build: Develop and AD 26 both 256/0/1.

If the slow sheet turns up again, the reply now names which parts Altium couldn't read in time. That points straight at the parameter to look at (likely a database- or vault-linked one). Reopen with the sheet if so.

Colby Knox closed this ·

Log in to reply.