Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scenarios failing on Windows #3037

Closed
adamsitnik opened this issue May 23, 2023 · 2 comments · Fixed by #3040
Closed

Scenarios failing on Windows #3037

adamsitnik opened this issue May 23, 2023 · 2 comments · Fixed by #3040
Labels
pipeline blocker issue blocks perf pipeline stays green. This be considered high priority.

Comments

@adamsitnik
Copy link
Member

The scenarios started failing and are blocking the new microbenchmarks PRs (nothing urgent, just creating issue so it's not missed).

From a sample log file

C:\h\w\A8A2098D\w\B976099E\e>py -3 test.py startup --scenario-name "Startup - WinForms Large - FDD Publish" 
[2023/05/23 06:58:59][INFO] ----------------------------------------------
[2023/05/23 06:58:59][INFO] Initializing logger 2023-05-23 06:58:59.607474
[2023/05/23 06:58:59][INFO] ----------------------------------------------
[2023/05/23 06:58:59][INFO] $ C:\h\w\A8A2098D\p\startup\Startup.exe --app-exe pub\WinformsNetCorePerfApp1.exe --metric-type GenericStartup --trace-name "Startup - WinForms Large - FDD Publish_startup" --gui-app true --process-will-exit false --iterations 1 --timeout 30 --warmup true --working-dir C:\h\w\A8A2098D\w\B976099E\e --report-json-path traces\perf-lab-report.json --trace-directory traces --scenario-name "Startup - WinForms Large - FDD Publish" --measurement-delay 6 --run-without-exit false
[2023/05/23 06:59:00][INFO] Running pub\WinformsNetCorePerfApp1.exe (args: "")
[2023/05/23 06:59:00][INFO] Working Directory: C:\h\w\A8A2098D\w\B976099E\e
[2023/05/23 06:59:00][INFO] Iteration set up:  (args: )
[2023/05/23 06:59:00][INFO] Iteration clean up:  (args: )
[2023/05/23 06:59:00][INFO] =============== Warm up ================
[2023/05/23 06:59:00][INFO] ***Test***
[2023/05/23 06:59:14][INFO] Process 8352 failed to run. Result: CloseFailed
[2023/05/23 06:59:14][ERROR] Process exited with status 4294967295
[2023/05/23 06:59:14][INFO] Run failure registered
Traceback (most recent call last):
  File "C:\h\w\A8A2098D\w\B976099E\e\test.py", line 22, in <module>
    main()
  File "C:\h\w\A8A2098D\w\B976099E\e\test.py", line 18, in main
    runner.run()
  File "C:\h\w\A8A2098D\p\shared\runner.py", line 261, in run
    startup.runtests(self.traits)
  File "C:\h\w\A8A2098D\p\shared\startup.py", line 152, in runtests
    RunCommand(startup_args, verbose=True).run()
  File "C:\h\w\A8A2098D\p\scripts\performance\common.py", line 280, in run
    raise CalledProcessError(
subprocess.CalledProcessError: Command '$ C:\h\w\A8A2098D\p\startup\Startup.exe --app-exe pub\WinformsNetCorePerfApp1.exe --metric-type GenericStartup --trace-name "Startup - WinForms Large - FDD Publish_startup" --gui-app true --process-will-exit false --iterations 1 --timeout 30 --warmup true --working-dir C:\h\w\A8A2098D\w\B976099E\e --report-json-path traces\perf-lab-report.json --trace-directory traces --scenario-name "Startup - WinForms Large - FDD Publish" --measurement-delay 6 --run-without-exit false' returned non-zero exit status 4294967295.
@adamsitnik adamsitnik added the pipeline blocker issue blocks perf pipeline stays green. This be considered high priority. label May 23, 2023
@LoopedBard3
Copy link
Member

LoopedBard3 commented May 23, 2023

I took a look into this locally and am getting a popup that expands on the error:

System.NotSupportedException: BinaryFormatter serialization and deserialization are disabled within this application. See https://aka.ms/binaryformatter for more information.
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream)
   at System.Resources.Extensions.DeserializingResourceReader.DeserializeObject(Int32 typeIndex)
   at System.Resources.Extensions.DeserializingResourceReader._LoadObjectV2(Int32 pos, ResourceTypeCode& typeCode)
   at System.Resources.Extensions.DeserializingResourceReader.LoadObjectV2(Int32 pos, ResourceTypeCode& typeCode)
   at System.Resources.Extensions.DeserializingResourceReader.LoadObject(Int32 pos, ResourceTypeCode& typeCode)
   at System.Resources.Extensions.RuntimeResourceSet.ReadValue(DeserializingResourceReader reader, Int32 dataPos, Boolean isString, ResourceLocator& locator)
   at System.Resources.Extensions.RuntimeResourceSet.GetObject(String key, Boolean ignoreCase, Boolean isString)
   at System.Resources.ResourceManager.GetObject(String name, CultureInfo culture, Boolean wrapUnmanagedMemStream)
   at WinformsNetCorePerfApp1.Form3.InitializeComponent() in C:\Users\parkerbibus\Desktop\performance\src\scenarios\windowsformslarge\app\Form3.Designer.cs:line 263
   at WinformsNetCorePerfApp1.Form3..ctor() in C:\Users\parkerbibus\Desktop\performance\src\scenarios\windowsformslarge\app\Form3.cs:line 15
   at WinformsNetCorePerfApp1.WinformsNetCorePerfApp1.WinformsNetCorePerfApp1_Load(Object sender, EventArgs e) in C:\Users\parkerbibus\Desktop\performance\src\scenarios\windowsformslarge\app\WinformsNetCorePerfApp1.cs:line 33
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Control.CreateControl(Boolean ignoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(HWND hWnd, WM msg, WPARAM wparam, LPARAM lparam)

Commenting out anything referencing the imageList1 in Form3.Designer.cs appears to fix the issue.

@LoopedBard3
Copy link
Member

Found issues in the winforms repos already tracking this and like issues: dotnet/winforms#9110 and dotnet/winforms#6267

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pipeline blocker issue blocks perf pipeline stays green. This be considered high priority.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants