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

Segmentation fault when opening a binary? #10

Closed
766F6964 opened this issue May 16, 2019 · 18 comments
Closed

Segmentation fault when opening a binary? #10

766F6964 opened this issue May 16, 2019 · 18 comments
Assignees
Labels
issue-bug Something isn't working

Comments

@766F6964
Copy link

766F6964 commented May 16, 2019

I compiled the project from source on Manjaro 64-Bit.
After successfully building the project I tried running the Ubuntu and the Debian build, since there is no dedicated build for arch-distros. I was able to start the application and I saw the UI etc, however when clicking on "Open..." to load a binary the application crashes with a segmentation fault without any further information.
crash

@jeffreye
Copy link
Member

The open menu would invoke the system file dialog. Would you mind to give more details of your OS?
This is possibly a bug from X11 or Avalonia, can you try any of apps from here https://github.com/AvaloniaUI/Avalonia/wiki/Projects-that-are-using-Avalonia ?

@766F6964
Copy link
Author

OS: Linux Manjaro
Architecture: 64-Bit
Kernel: 4.19.42-1-MANJARO
Desktopmanager: Gnome

I tried several other applications that are based on Avalonia and I couldn't reproduce the bug. I was told by a friend that he has the exact same problem, on a system with the same configuration.

@766F6964
Copy link
Author

Maybe setting up a VM with the same settings could help to recreate this issue.

@efernandesng
Copy link

I have the same issue on Arch Linux.. It's normal, the build is for Ubuntu/Debian.
The workaround is pass the target by parameter ./ILSpy target.exe

@SecT0uch
Copy link

SecT0uch commented Jun 6, 2019

Same here, under Manjaro Cinnamon

@jeffreye jeffreye self-assigned this Jun 6, 2019
@jeffreye jeffreye added the issue-bug Something isn't working label Jun 6, 2019
@jeffreye
Copy link
Member

jeffreye commented Jun 7, 2019

@766F6964 I have set up a VM for this bug. Both ubuntu and debian version work on my VM.
image

@SecT0uch
Copy link

SecT0uch commented Jun 7, 2019

The issue seems to occur with Arch-based distributions only, when clicking on "Open..."

@766F6964
Copy link
Author

766F6964 commented Jun 7, 2019

Is your VM a Manjaro VM? Try opening an assembly by using the "Open..." context menu.

I have the same issue on Arch Linux.. It's normal, the build is for Ubuntu/Debian.
The workaround is pass the target by parameter ./ILSpy target.exe

I was not able to pass a target as command line parameter.

@jeffreye
Copy link
Member

jeffreye commented Jun 8, 2019 via email

@SecT0uch
Copy link

SecT0uch commented Jun 9, 2019

I bypassed the issue the same way. The binaries sure, but building from the sources produces the same issue.

@Washi1337
Copy link

Washi1337 commented Jun 10, 2019

I seem to have the same issue as OP. I am running Manjaro Gnome on this machine and tried running the precompiled binaries for ubuntu, as well as building the source myself. Both result for me in a segfault.

@bkaraceylan
Copy link

Same issue on 5.1.9 kernel Arch linux running Gnome 3.32.2.

@jeffreye
Copy link
Member

jeffreye commented Jul 4, 2019

I am still unable to reproduce it. It'd be better if you can send me a .iso image file.
Jul-04-2019 13-36-13

@thives
Copy link

thives commented Aug 17, 2019

It is caused by this mono/SkiaSharp#927

@jeffreye
Copy link
Member

jeffreye commented Aug 17, 2019 via email

@evaleries
Copy link

Same here for Kali Linux 2019.4

@Washi1337
Copy link

Washi1337 commented Jan 18, 2020

A workaround for this issue is to add a call to UseManagedSystemDialogs() in Program.BuildAvaloniaApp, as well as upgrading to Avalonia 0.9.1 in Directory.Build.props, and then build the solution using the build.sh script. Not ideal, but at least makes the application not segfault.

@jeffreye
Copy link
Member

jeffreye commented Jan 20, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue-bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants