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

MaxIDE Crash when debugging array of Struct #77

Open
Scaremonger opened this issue Feb 8, 2023 · 3 comments
Open

MaxIDE Crash when debugging array of Struct #77

Scaremonger opened this issue Feb 8, 2023 · 3 comments

Comments

@Scaremonger
Copy link

Scaremonger commented Feb 8, 2023

Create a file containing this code and run it in debug mode:

SuperStrict

Type TOKEN
	Field ch:String
	Method New( ch:String )
		Self.ch = ch
	End Method
End Type

Local tokens:TOKEN[]

tokens :+ [ New TOKEN("A") ]
tokens :+ [ New TOKEN("B") ]

DebugStop

When you getto the debugstop:

  • Look in MaxIDE Debug Tab
  • Expand "Local tokens:TOKEN[]=$..."
  • Look at the two array values
  • Now change "Type TOKEN" into "Struct TOKEN"
  • Repeat the procedure

When it is an array of Struct, you get "Segmentation fault (core dumped)"

@GWRon
Copy link

GWRon commented Feb 8, 2023

As written on Discord already I cannot replicate the issue here. Have run a maxide.debug build from within my maxide and build your sample (adjusted to structs) in that debug version.

Debug pane has shown both struct entries without segfaulting

@Scaremonger
Copy link
Author

The issue only seems to occur on my system in the official Linux release, but not on the latest version.

@GWRon
Copy link

GWRon commented Feb 25, 2023

Maybe close the issue then :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants