Create Agent Crashes trying to Use

My Create Agent seems to crash everytime I try to do anything with it, trying to Set up a device on a Thing, or trying to acess any of its settings/Configuration, the icon just disapears

Hi @niko_term. Arduino Create Agent has a "crash report" mode where it generates a log file. I'm going to ask you to enable this "crash report" feature and then post the log file that is produced by Arduino Create Agent when you experience this problem.


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

Enable "Crash Report" Feature

  1. If Arduino Create Agent is running, terminate it by clicking the Arduino icon in the Windows "notification area" and then selecting "Quit Agent" from the menu.
  2. Use any text editor to open the Arduino Create Agent configuration file at this path:
    C:\Users\<username>\AppData\Roaming\ArduinoCreateAgent\config.ini
    
    :exclamation: If looking for it with your file manager or command line, note that the AppData folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".
  3. Change this line in the file:
    crashreport = false # enable crashreport logging
    
    to this:
    crashreport = true # enable crashreport logging
    
  4. Save the file.

Gather Logs

  1. Start Arduino Create Agent as usual.
  2. Perform the actions that create the problem, just as you did before.
  3. Attach the .log file from the folder at the following path to a reply here on this forum thread:
    C:\Users\<username>\AppData\Roaming\ArduinoCreateAgent\logs\
    
    You can do this by drag and dropping the file onto a reply, copy/pasting the file, or by clicking the upward pointing arrow icon ("Upload") on the post composer toolbar.

Please let me know if you have any questions or problems while following those instructions.

I changed the config.ini file as you said,
No Log folder was made after the crash nor a .log

I apologize for the confusion. I discovered the developers recently moved the logs to a new location which made the precomposed instructions I provided in my previous reply outdated.

The logs are now located here:

C:\Users\<username>\.arduino-create\logs\

(where <username> is your Windows username)

Please attach the file from that folder to a reply here.

Also Empty

Has Arduino Create Agent crashed since the time you made that change to the config.ini file?

It crashes everytime I try to access the configuration from the icon on the taskbar

I'm not sure what you mean by "access the configuration from the icon". But let's try something different. I'm going to ask you to run Arduino Create Agent from the command line, then post the output in a reply here.


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. If Arduino Create Agent is running, terminate it by clicking the Arduino icon in the Windows "notification area" and then selecting "Quit Agent" from the menu.
  2. Right click the Windows "Start" button.
    A context menu will open.
  3. Select "Search" from the context menu.
    The Windows "Start" menu will open with a search field selected.
  4. Type windows powershell ise in the search field.
  5. Select "Windows PowerShell ISE" from the search results.
    A "Windows PowerShell ISE" window will open.
  6. Type the following command:
    & "$Env:APPDATA\ArduinoCreateAgent\Arduino_Create_Agent.exe" 2>&1 | Out-String -Stream
    
  7. Press the Enter key.
  8. Now use Arduino Cloud, just as you did before, until you see Arduino Create Agent crash again.
  9. Switch back to the "Windows PowerShell ISE" window.
  10. Select Edit > Select All from the Windows PowerShell ISE menus.
    All the text in the terminal panel of the window will be selected.
  11. Select Edit > Copy from the Windows PowerShell ISE menus.
    This will copy the selected text to the clipboard.
  12. Open a forum reply here by clicking the "Reply" button.
  13. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code tags icon on toolbar
  14. Press Ctrl+V.
    This will paste the output into the code block.
  15. Move the cursor outside of the code block markup before you add any additional text to your reply.
  16. Click the "Reply" button to post the output.

Please let me know if you have any questions or problems while following those instructions.

Arduino_Create_Agent.exe : 2023/11/24 09:00:31 cannot download index: Get 
"https://downloads.arduino.cc/packages/package_staging_index.json": dial tcp 104.18.32.201:443: 
i/o timeout
At line:1 char:1
+ & "$Env:APPDATA\ArduinoCreateAgent\Arduino_Create_Agent.exe" 2>&1 | O ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (2023/11/24 09:0...43: i/o timeout:String) [], 
RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 

Thats all I got

1
The create Agent runs
2
I try to do anything with it
3
It dissapears

The crash is caused by Arduino Create Agent not being able to download this file from the Internet.

This problem might be caused by your firewall or some other network security system (e.g., proxy or VPN) interfering with Arduino Create Agent's ability to access the Internet.

Are you aware of anything special about the configuration of the network you connect to the Internet through that might interfere with Arduino Create Agent's access to the Internet?

I see. That menu item was not available at the time I wrote those instructions. That is certainly a more convenient method for opening the configuration file and I will be sure to suggest that approach in the future.

As you learned, in some cases it will not be possible for the user to access this menu item. In that case the approach of opening the config.ini file directly from Windows File Explorer as I described in post #2 will still be useful.

In the Firewall I have allowed acess to the Agent, and I have added the proxxy to the config.ini under #httpProxy (?)

#httpProxy = xx.xx.x.x:zzzz # Proxy server for HTTP requests

Did you remove the # from the start of the httpProxy proxy line in config.ini? If not, please do that and then try starting Arduino Create Agent again.

The # at the start of the line makes that line a comment, which causes it to not have any effect on Arduino Create Agent even after you add you proxy server data.

The line must have this form in order to have an effect on Arduino Create Agent:

httpProxy = xx.xx.x.x:zzzz # Proxy server for HTTP requests

By the way, I submitted a report to the Arduino Create Agent developers about the behavior of it crashing silently on startup when it is unable to access the Internet:

Hopefully the behavior can eventually be changed so that future users won't experience this unfriendly behavior from Arduino Create Agent under these conditions.

1 Like

I removed the # but it still crashes
I tried attaching an IoT Arduino board again to a Thing, but the Agent still crashes during the setup

Please run Arduino Create Agent from the command line and post the output as you did before, following the instructions I provided earlier in post #8:

PS C:\Users\m.loetzsch> & "$Env:APPDATA\ArduinoCreateAgent\Arduino_Create_Agent.exe" 2>&1 | Out-String -Stream
Arduino_Create_Agent.exe : 2023/11/27 08:47:31 cannot download index: Get 
"https://downloads.arduino.cc/packages/package_staging_index.json": dial tcp 104.18.32.201:443: i/o timeout
At line:1 char:1
+ & "$Env:APPDATA\ArduinoCreateAgent\Arduino_Create_Agent.exe" 2>&1 | O ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (2023/11/27 08:4...43: i/o timeout:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

I see that an httpsProxy key in the configuration file is also supported.

Please add another line to the config.ini file, with the same configuration as the line for the httpProxy key, but this line has the key name httpsProxy instead of httpProxy (note the addition of the "s").

Something like this:

gc = std  # Type of garbage collection. std = Normal garbage collection allowing system to decide (this has been known to cause a stop the world in the middle of a CNC job which can cause lost responses from the CNC controller and thus stalled jobs. use max instead to solve.), off = let memory grow unbounded (you have to send in the gc command manually to garbage collect or you will run out of RAM eventually), max = Force garbage collection on each recv or send on a serial port (this minimizes stop the world events and thus lost serial responses, but increases CPU usage)
hostname = unknown-hostname  # Override the hostname we get from the OS
regex = usb|acm|com  # Regular expression to filter serial port list
v = true  # show debug logging
appName = CreateAgent/Stable
updateUrl = https://downloads.arduino.cc/
origins = https://local.arduino.cc:8000
httpProxy = xx.xx.x.x:zzzz # Proxy server for HTTP requests
httpsProxy = xx.xx.x.x:zzzz # Proxy server for HTTPS requests
crashreport = true # enable crashreport logging
autostartMacOS = true # the Arduino Create Agent is able to start automatically after login on macOS (launchd agent)

(except with the xx.xx.x.x:zzzz part replaced with the configuration for your proxy server)

Hi, I got the same issue, has this been solved ?

Regards.

Hi @loosepipe. I'm sorry about the problem with Arduino Create Agent.

Please add a forum reply here to tell us which operating system you are using (e.g., "Windows")?

I ask because I would like to give you the appropriate instructions for your operating system.