Skip to content

Crash during upload with serial monitor open #566

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

Closed
umbynos opened this issue Nov 6, 2020 · 12 comments
Closed

Crash during upload with serial monitor open #566

umbynos opened this issue Nov 6, 2020 · 12 comments
Labels
status: waiting for information More information must be provided before work can proceed type: imperfection Perceived defect in any part of project

Comments

@umbynos
Copy link
Contributor

umbynos commented Nov 6, 2020

Bug Report

Describe the bug

crash

To Reproduce

Upload with serial monitor open sometimes causes a crash

Expected behavior

no crash

Environment (please complete the following information):

  • OS [e.g. Windows]: Ubuntu
  • OS version: 20.04.1 LTS
  • Browser [e.g. chrome, safari]: Chrome
  • Browser Version: 86.0.4240.111
  • Agent Version [e.g. 1.0.0]: 1.1.251

Additional context

INFO[1211] {"uploadStatus": "Killed"}                   
panic: send on closed channel
goroutine 4051 [running]:
main.(*BufferflowTimed).Close(0xc0001b4ac0)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/bufferflow_timed.go:110 +0x54
main.spCloseReal(0xc000290ba0)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/serialport.go:364 +0x34
main.spHandlerClose(...)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/serialport.go:360
main.spClose(0xc000146166, 0xc)
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/serial.go:241 +0x117
created by main.checkCmd
	/home/jenkins/workspace/Create_agent_master/src/github.com/arduino/arduino-create-agent/hub.go:146 +0x7f2
@Webbeh
Copy link

Webbeh commented Dec 1, 2020

I do have the same all the time.
Windows 10 Pro, and the plugin doesn't crash when serial monitor is off.

Furthermore, after crashing and re-opening the agent, compilations/uploads take a really long time unless you also refresh the arduino create webpage.

@Rhragnarok
Copy link

I need this fixed asap. Is there any info on when it might be fixed? Kinda makes it hard to work.

@umbynos
Copy link
Contributor Author

umbynos commented Jan 18, 2021

👋 We just released 1.2.0 Could you please try that version?

@Webbeh
Copy link

Webbeh commented Jan 18, 2021

I had the same issue on 1.2.0-rc3 45a2de6. Is there any change between the release and the RC3 ?

@BallscrewBob
Copy link

It crashed out here too mid install.

@Webbeh
Copy link

Webbeh commented Jan 18, 2021

The only behaviour that I am absolutely sure of, for both 1.2.0 and the versions before 75865e6, the crashes only happen if we have the serial monitor tab open, or if we switched from/to the monitor tab a few seconds before sending the program. It never crashed on sessions where I didn't use the serial monitor.

@umbynos
Copy link
Contributor Author

umbynos commented Jan 18, 2021

Thanks for the feedback, I'll try to solve that issue as soon as possible.

Could you please provide some context on the environment used?

OS [e.g. Windows]:
OS version:
Browser [e.g. chrome, safari]:
Browser Version:
Agent Version [e.g. 1.0.0]:

@umbynos
Copy link
Contributor Author

umbynos commented Jan 18, 2021

We implemented a crashreport functionality to better address these problems. Please enable it and include the reports in the PR to help us 😄
https://github.com/arduino/arduino-create-agent/wiki/How-to-use-crashreport-functionality

@Rhragnarok
Copy link

I just updated to 1.2.0 and it still crashes.

Windows 10
Chrome 87.0.4280.141
Agent 1.2.0

All I am doing is adding these 2 lines to my void loop() at the beginning and then opening the monitor and sending to my board and it crashes.
Serial.begin(9600);
Serial.println("hello");

@umbynos
Copy link
Contributor Author

umbynos commented Jan 29, 2021

Hi guys, A user reported a similar bug here #609
It should be fixed. Could you please try 1.2.1-rc1? Let me know if it's working for you

@umbynos umbynos added the status: waiting for information More information must be provided before work can proceed label Jan 29, 2021
@Webbeh
Copy link

Webbeh commented Jan 30, 2021

Seems to have resolved the issue for me so far, after ~25 uploads.

@umbynos
Copy link
Contributor Author

umbynos commented Feb 1, 2021

Perfect! 👾 Closing as the issue seems to be solved. Feel free to reopen

@umbynos umbynos closed this as completed Feb 1, 2021
@rsora rsora added the type: imperfection Perceived defect in any part of project label Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting for information More information must be provided before work can proceed type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

5 participants