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

select menu choices #5106

Open
2 tasks done
lorypelli opened this issue Sep 2, 2024 · 11 comments
Open
2 tasks done

select menu choices #5106

lorypelli opened this issue Sep 2, 2024 · 11 comments
Labels
information-needed Further information is requested unverified A bug that has been reported but not verified

Comments

@lorypelli
Copy link

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

it causes the app to crash

How to reproduce

create an app with a select menu

Screenshots

No response

Example code

idk what to send, it's just an issue with select menus I wasn't having in the old 2.4.3 version

Fyne version

2.5.1

Go compiler version

1.23.0

Operating system and version

Windows 11

Additional Information

No response

@lorypelli lorypelli added the unverified A bug that has been reported but not verified label Sep 2, 2024
@andydotxyz
Copy link
Member

It is not clear what a "select menu" is, there is no widget with that name. Do you mean a Select widget or a Menu ?

Please provide the code you are using, as you might guess plenty of apps are running successfully using both of those widgets.

@lorypelli
Copy link
Author

It is not clear what a "select menu" is, there is no widget with that name. Do you mean a Select widget or a Menu ?

Please provide the code you are using, as you might guess plenty of apps are running successfully using both of those widgets.

the problem is that I can't run the app because Windows AntiVirus flags it

@andydotxyz
Copy link
Member

In addition even if you could not determine what code to attach a crash report should have the stack trace that is printed to the console.
Otherwise we are just guessing.

@andydotxyz
Copy link
Member

It is not clear what a "select menu" is, there is no widget with that name. Do you mean a Select widget or a Menu ?

Please provide the code you are using, as you might guess plenty of apps are running successfully using both of those widgets.

the problem is that I can't run the app because Windows AntiVirus flags it

On, so it's not crashing at all?

It is a known issue that some antivirus is "default positive" for compiled applications. Either tell it to ignore your app or you'll need to set up signing for the windows binaries with a Microsoft developer account.

@lorypelli
Copy link
Author

lorypelli commented Sep 3, 2024

How can I make it to ignore my app since the build path it's always different (that's how both go run and go build works)

@lorypelli
Copy link
Author

But that's not related to the select menu issue, before 2.5.0 was working, I downgraded to 2.4.5

@andydotxyz
Copy link
Member

But that's not related to the select menu issue, before 2.5.0 was working, I downgraded to 2.4.5

To progress the original isseu please do reply to my questions, namely:

Please provide the code you are using, as you might guess plenty of apps are running successfully using both of those widgets.

For the crash please attach a crash report should have the stack trace that is printed to the console.

@andydotxyz andydotxyz added the information-needed Further information is requested label Sep 4, 2024
@lorypelli
Copy link
Author

lorypelli commented Sep 4, 2024

@andydotxyz

actions := widget.NewSelect([]string{"Write a message", "Edit a message", "Pin a message", "Create a channel", "Edit a channel", "Create a thread", "Delete a channel", "Delete a message", "Unpin a message", "Kick a user", "Ban a user", "Unban a user", "Create a role", "Edit a role", "Delete a role", "Add a role to a member", "Remove a role from a member"}, nil)
actions.OnChanged = func(s string) { /* code here... */ }

@andydotxyz
Copy link
Member

I'm going to say that it's 99% likely that the crash is inside the "/* code here... */" that you have missed out.
That is why a crash log is so helpful.

@lorypelli
Copy link
Author

I'm going to say that it's 99% likely that the crash is inside the "/* code here... */" that you have missed out. That is why a crash log is so helpful.

it works before 2.5.0

@andydotxyz
Copy link
Member

I did not suggest that it didn't. But without your code OR the crash log there is literally nothing we can do as it cannot be replicated or investigated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
information-needed Further information is requested unverified A bug that has been reported but not verified
Projects
None yet
Development

No branches or pull requests

2 participants