Closed pixelzoom closed 1 year ago
This failure recently started in CT, and it's occurring on every cycle. There has been some conversion of Fourier to TypeScript, but no PhET-iO changes that I'm aware of. I can't diagnose this problem from the stack trace, and I don't really know where to begin.
@samreid @zepumph thoughts?
Looks like these items are in the "normal" getState but not in the "initial" state.
"fourierMakingWaves.discreteScreen.model.waveforms.sinusoid": null,
"fourierMakingWaves.discreteScreen.model.waveforms.triangle": null,
"fourierMakingWaves.discreteScreen.model.waveforms.square": null,
"fourierMakingWaves.discreteScreen.model.waveforms.sawtooth": null,
"fourierMakingWaves.discreteScreen.model.waveforms.wavePacket": null,
"fourierMakingWaves.discreteScreen.model.waveforms.custom": null,
I see that Waveform is marked as phetioState:false so it looks like a bug that this is bleeding into the state after startup.
Perhaps this fixes things?
Subject: [PATCH] supress assertion when not validating, https://github.com/phetsims/fourier-making-waves/issues/231
---
Index: js/discrete/model/Waveform.ts
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/js/discrete/model/Waveform.ts b/js/discrete/model/Waveform.ts
--- a/js/discrete/model/Waveform.ts (revision 25d19d09bc351ea8ae0b45a286968a0c9d2f8db1)
+++ b/js/discrete/model/Waveform.ts (date 1683147426369)
@@ -154,7 +154,7 @@
phetioState: false
}, providedOptions );
- super( providedOptions );
+ super( options );
this.getAmplitudes = options.getAmplitudes;
this.getInfiniteHarmonicsDataSet = options.getInfiniteHarmonicsDataSet;
Excellent thanks, I've applied that patch.
But how did you get from the reported stack trace to that diagnosis? I see no mention of any of those tandems in the stack trace.
I started by just trying to load the "phet-io-fuzz" test to reproduce locally. This is the "standalone" version of the the phet-io sim.
It produced the same error on startup, but the console showed this log:
So I was taken to Waveform
.
Thanks for the clarification @zepumph.
CT shows that that the problem has been resolved for 2 test cycles, so closing.