-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Bus Error #2457
Comments
This looks like a technical issue to me but I'll see if I can reproduce. |
I don't believe this issue is related to ASF, bus error indicates a problem with the OS and/or files corruption, we couldn't reproduce this on linux-arm with raspbian included, and I don't have any indicator based on which there is anything to improve in regards to this in the auto-update functionality. I recommend to downloaded latest pre-release (if you want to use it) and transfer |
As a sidenote, because that information is not included in the screenshot: I tried running all those combinations both as |
Thanks for taking a look at this. I did upgrade it from Raspbian 10 to 11 with the same error. Reformatted and reinstalled it with the same error. The only way I did not get this error was by reverting back to the 5.1.5.2 version. Which it boots up tries to update again and then returns back to the Bus Error. So not sure what OS or machine error it would be with a reinstall and two different machines, but an older version working. Right now I do have it working if I use 5.1.5.2 and turn off auto-updates. |
@Lucetia this is a valuable information, I might be able to pinpoint which change exactly causes that and add a hack in ASF to override calling faulty method which should again make it working for you. I'll provide you with some testing builds in a second so you can verify if possible. |
@Lucetia I've compiled two test builds for you, download them from here: https://yko.im/TmTa.zip Once you extract the zip file, there will be two folders, Both are debug builds, do not use them for anything else than testing. They don't have auto-update functionality. |
@JustArchi Alright, so I tested the link you gave me and it's acting odd based on your description. #1 - You said is the original code, but this one when I loaded it up and dropped my config folder in it worked perfectly fine. So I went back to the release page I went to ArchiSteamFarm V5.2.0.7 marked as Pre-Release but stable. When I downloaded the I then went back through and tested a few different releases using the Version 5.1.5.2 worked. What is more interesting is that both #1 and #2 that you linked worked fine. Though you mention #1 shouldn't work since it is suppose to be based on the 5.2.0.7 code. I'm not sure if any of that helps you or not and if you need anymore information let me know. |
OK, this would hint that a problem is with single file or trimming, because I used neither in my zip file for additional compatribility, I'll have 3 new builds for you in a second to test. |
@Lucetia I have 4 new zips for you. https://yko.im/MVvk.zip - this one is original, the expectation it that it will just work because it's effectively the first one you tested above. We verify requirements didn't change. https://yko.im/7u9N.zip - this one has single file publish. https://yko.im/m8fR.zip - this one has trimming. https://yko.im/KGPM.zip - this one has both single file publish and trimming. This is effectively official release setup. Let me know which one works and which one doesn't. |
Sorry it took me a bit longer to get back. Got swamped the last few days. I ran all four versions and this was the outcome: Worked:
Both versions started up and let me know it was the first time running it and started initializing correctly. Did Not Work:
Looks like it is narrowed down to the changes made in the single file publish. Hopefully that helps and if you need anymore testing let me know! |
@Lucetia Thanks for your feedback. This looks like a bug in .NET runtime, can you set those environment variables:
Then launch single file publish (version 2) build again, and attach output of (hopefully generated) |
^ The above is the important part, but in addition to that I also have 3 more test builds for you (that I consider as a workaround if they work): https://yko.im/3e1z.zip - this is original one that shouldn't work, once again we just test the requirements didn't change. https://yko.im/VL79.zip - this one forces native libs to self-extract prior to running. https://yko.im/vkKv.zip - this one forces all libs to self-extract prior to running. You can consider giving those few a try to see if it helped anyhow @Lucetia. |
Here's the information it gave me in the host.txt file. I'll run the three additional builds tomorrow as it is late here, but I wanted to post at least this. The file has the same as what I pasted, but just in case the file helps make it easier I added it. I didn't see anything that might be on my end, but it is possible? If there's something I'm missing just let me know.
|
I was able to test those last 3 you listed. Running all three results in the Going back through some searches and logs on the day I first got it I did notice when I went to run apt update / upgrade I did get the following message:
Not that it should have anything to do with it. The I just created a new VirtualBox image using the latest Raspbian image from their website and then followed the guide to installing ASF. I installed each of the libraries and they all said After doing that I then get Which suggested to install Not sure if any of that helps, makes it worse or if there is something I goofed up on and didn't see it. |
You shouldn't install Doesn't change the fact that the bug with Until the above issue is resolved, I suggest the following:
Running generic variant of ASF involves installing .NET Core runtime through https://dot.net/v1/dotnet-install.sh script. Simply execute The above is a workaround, In any case thanks a lot for your help @Lucetia, I'll let you know if I'll have any additional questions or stuff to test, I'd appreciate if you could keep the affected machine with the problem for at least a bit longer in case .NET guys would like additional debugging output. As of me I don't have anything else to suggest, as I pretty much exhausted my options for now (maybe I'll have something new when .NET guys suggest another workaround). I'll keep the issue open. If by any chance you're a new visitor reading this issue and having the same problem, let us know. |
@Lucetia .NET guys would appreciate a core dump of this issue, can you add me through some more dynamic channel like Steam or Discord so I could help you in generating one? Unless you're confident with Linux environment in which case you could provide one on your own, thanks. |
Sorry @JustArchi I've been swamped with things in real life and haven't had a chance to check back on this thread. Is there a preference you have on Discord or Steam (I can do either). Just with holidays coming up you or I might send a response and it takes me a bit to get back. |
@Lucetia Add me on discord in this case: |
I tried adding you just now and it says If it helps my name is `` . I didn't want to post in the help channel letting you know and spam that up. |
Ah right, I don't accept invites normally due to spam, thanks, added you. |
Thanks to @janvorli and @VSadov help working on the upstream .NET issue, I have available workaround for people affected by this issue in ASF. After evaluation, the issue seems to affect only arm32 machines with a very specific kernel CPU alignment setting. You can verify if you're affected with
Values of Therefore, to enable a workaround, try:
Or directly from root console without
Launching ASF after setting the value above should now succeed without any further issues. As the fix is being worked upon in upstream issue, and considering I don't have any possibility to somehow work it around directly in the ASF code, I'll close this issue. Thank you a lot @Lucetia for aiding me in debugging, especially for core dump that helped tackle this one down. |
Checklist
ASF version
Latest stable release
ASF variant
linux-arm
Bug description
I went to load ArchSteamFarm and when I opened it up it did the usual auto-update. It then updated from version 5.1.5.2 to 5.2.0.6. After showing 100% progress and it went to restart it now gives met he error "Bus error".
Here is what the update process shows:
2021-11-24 15:03:44|ArchiSteamFarm-16115|INFO|ASF|Update() Downloading new version: 5.2.0.6 (21 MB)... While waiting, consider donating if you appreciate the work being done! :)
2021-11-24 15:03:46|ArchiSteamFarm-16115|DEBUG|ASF|OnProgressChanged() 0%...
2021-11-24 15:03:48|ArchiSteamFarm-16115|DEBUG|ASF|OnProgressChanged() 10%...
2021-11-24 15:03:49|ArchiSteamFarm-16115|DEBUG|ASF|OnProgressChanged() 20%...
2021-11-24 15:03:51|ArchiSteamFarm-16115|DEBUG|ASF|OnProgressChanged() 30%...
2021-11-24 15:03:52|ArchiSteamFarm-16115|DEBUG|ASF|OnProgressChanged() 40%...
2021-11-24 15:03:53|ArchiSteamFarm-16115|DEBUG|ASF|OnProgressChanged() 50%...
2021-11-24 15:03:55|ArchiSteamFarm-16115|DEBUG|ASF|OnProgressChanged() 60%...
2021-11-24 15:03:56|ArchiSteamFarm-16115|DEBUG|ASF|OnProgressChanged() 70%...
2021-11-24 15:03:57|ArchiSteamFarm-16115|DEBUG|ASF|OnProgressChanged() 80%...
2021-11-24 15:03:59|ArchiSteamFarm-16115|DEBUG|ASF|OnProgressChanged() 90%...
2021-11-24 15:04:00|ArchiSteamFarm-16115|DEBUG|ASF|OnProgressChanged() 100%...
2021-11-24 15:04:01|ArchiSteamFarm-16115|INFO|ASF|Update() Update process finished!
2021-11-24 15:04:01|ArchiSteamFarm-16115|INFO|ASF|RestartOrExit() Restarting...
Expected behavior
Once the update restarted then ArchiSteamFarm resumes normal process and runs through update check again and then idles.
Actual behavior
Gives the error
Bus error
and then returns back to the prompt.Steps to reproduce
Updated to newest version.
Possible reason/solution
No response
Can you help us with this bug report?
No, I don't have time, skills or willings for any of that
Full log.txt recorded during reproducing the problem
Global ASF.json config file
No response
BotName.json config of all affected bot instances
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: