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 change profile from command line #76

Closed
cyberconan opened this issue Oct 27, 2020 · 7 comments · Fixed by #198
Closed

Segmentation Fault when change profile from command line #76

cyberconan opened this issue Oct 27, 2020 · 7 comments · Fixed by #198
Assignees
Labels
bug Something isn't working

Comments

@cyberconan
Copy link

cyberconan commented Oct 27, 2020

Describe the bug
When change profile from command line, always return a seg fault.

To Reproduce
[karl@CyberPortatil ~]$ antimicrox --profile ~/Software/configs/antimicro/DOS.gamecontroller.amgp
Segmentation fault (core dumped)
[karl@CyberPortatil ~]$ antimicrox --profile ~/Software/configs/antimicro/WIN.gamecontroller.amgp
Segmentation fault (core dumped)

In dmesg I see a lot of lines like (appear always when change antimicrox profile from my .sh files)
[11887.666820] antimicrox[203273]: segfault at c ip 00007f1867ea08d2 sp 00007fffc38dafc0 error 4 cpu 7 in libQt5Widgets.so.5.15.1[7f1867e64000+3b0000]
[11910.791616] antimicrox[203350]: segfault at c ip 00007f9d0724b8d2 sp 00007ffddbaa71e0 error 4 cpu 6 in libQt5Widgets.so.5.15.1[7f9d0720f000+3b0000]

Expected behavior
No errors in console or dmesg.

Configuration
I'm using antimicrox 3.1.2 compiled from AUR in Archlinux.

Additional context
This is not a critical issue, is only a low problem because antimicrox do well the change from a profile to another one from command line, but always returns the error commented.

@cyberconan cyberconan added the bug Something isn't working label Oct 27, 2020
@gombosg
Copy link
Collaborator

gombosg commented Nov 15, 2020

I can't repro this on Fedora with the same 3.1.2 version, same QT 5.15.1.

  • Do you have this issue when you have the file in a different location e.g. home folder?
  • Do you have this issue when loading the same profile from the GUI?
  • Do you have this issue when building a binary for yourself and trying with that?

@cyberconan
Copy link
Author

Hi!

  • Yes, same error changing profile from /home folder:
  • No, no errors changing profile from GUI.
  • I recompiled today with 3.1.3 version from AUR, but same error.

@gombosg
Copy link
Collaborator

gombosg commented Nov 21, 2020

Really strange. @pktiuk or @AriaMoradi , chance of a repro?

@pktiuk
Copy link
Member

pktiuk commented Nov 21, 2020

I have reproduced it

$ antimicrox --profile ./konfig2.gamecontroller.amgp  --log-level warn
Segmentation fault (core cumped)

But as @cyberconan told, it is a low priority issue, because this bug doesn't affect functionality of app.

@AriaMoradi
Copy link
Contributor

AriaMoradi commented Nov 22, 2020

A seg fualt usually terminates a process. maybe it's a sub-processes that wont make the app crash and burn.

@jrd
Copy link

jrd commented Apr 18, 2021

I cannot load or unload a profile from command line because of this crash.
I need it to manage antimicrox from scripts.

@pktiuk pktiuk self-assigned this Aug 18, 2021
@pktiuk
Copy link
Member

pktiuk commented Aug 18, 2021

This issue seems to be caused by problems with deleting some objects (probably multiple times).

@pktiuk pktiuk mentioned this issue Sep 6, 2021
Gallxz pushed a commit to Gallxz/antimicrox that referenced this issue Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants