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

Runtime Error: Invalid Memory Address or Nil Pointer Dereference #989

Open
3 tasks done
Magpie720 opened this issue Aug 14, 2024 · 0 comments
Open
3 tasks done

Runtime Error: Invalid Memory Address or Nil Pointer Dereference #989

Magpie720 opened this issue Aug 14, 2024 · 0 comments
Labels
os: windows Specific to Windows operating system topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Milestone

Comments

@Magpie720
Copy link

Magpie720 commented Aug 14, 2024

Describe the problem

I encountered a runtime error when trying to install and run the Arduino Cloud Agent. after running Arduino_Cloud_Agent.exe, icon does not appear in the system tray, no error window, just nothing happens. need to enter command in the PowerShell to check for the error.
Below is error output:

Arduino_Cloud_Agent.exe : panic: runtime error: invalid memory address or nil pointer dereference
위치 줄:1 문자:1
+ & "C:\Users\KJH\AppData\Roaming\ArduinoCloudAgent\Arduino_Cloud_Agent ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (panic: runtime ...ter dereference:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

[signal 0xc0000005 code=0x1 addr=0x20 pc=0x1505918]

goroutine 7 [running]:
fyne.io/systray.(*winTray).setIcon(0x1cf38e0, {0xc0006a0060?, 0x1aa93?})
        C:/Users/runneradmin/go/pkg/mod/fyne.io/[email protected]/systray_windows.go:238 +0xb8
fyne.io/systray.SetIcon({0x1c95d80?, 0x0?, 0x0?})
        C:/Users/runneradmin/go/pkg/mod/fyne.io/[email protected]/systray_windows.go:901 +0xbe
fyne.io/systray.SetTemplateIcon(...)
        C:/Users/runneradmin/go/pkg/mod/fyne.io/[email protected]/systray_windows.go:912
github.com/arduino/arduino-create-agent/systray.(*Systray).start(0x1cf3380)
        D:/a/arduino-create-agent/arduino-create-agent/systray/systray_real.go:53 +0x34
fyne.io/systray.Register.func2()
        C:/Users/runneradmin/go/pkg/mod/fyne.io/[email protected]/systray.go:98 +0x2f
created by fyne.io/systray.Register in goroutine 1
        C:/Users/runneradmin/go/pkg/mod/fyne.io/[email protected]/systray.go:96 +0xb1

To reproduce

Attempt to run the Arduino Cloud Agent using the following command on PowerShell
& "C:\Users\KJH\AppData\Roaming\ArduinoCloudAgent\Arduino_Cloud_Agent.exe" 2>&1 | Out-String -Stream
The error appears immediately upon execution.

Expected behavior

Agent should run

Arduino Create Agent version

ArduinoCloudAgent-1.6.1-windows-amd64

Operating system

Windows

Operating system version

Win11 23H2

Browser

Chrome

Browser version

127.0.6533.100

Additional context

I have tried various versions of the Arduino Cloud Agent, from 1.6.1 to 1.3.9. Before each reinstallation, I deleted the ArduinoCloudAgent and ArduinoCreateAgent folders. The same error occurs across all versions.

The issue occurs with both the amd64 and i386 versions.

I modified the config.ini file setting crashreport = true, but no crash report was generated.

I disabled both the firewall and antivirus software, and I ran the agent with administrator privileges, but same problem happens.

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest version
  • My report contains all necessary details
@Magpie720 Magpie720 added the type: imperfection Perceived defect in any part of project label Aug 14, 2024
@per1234 per1234 added the topic: code Related to content of the project itself label Aug 14, 2024
@umbynos umbynos added the os: windows Specific to Windows operating system label Aug 14, 2024
@Xayton Xayton added this to the next milestone Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os: windows Specific to Windows operating system topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

4 participants