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

Mod Crashes on Linux #54

Closed
RoY7x opened this issue Nov 24, 2024 · 7 comments
Closed

Mod Crashes on Linux #54

RoY7x opened this issue Nov 24, 2024 · 7 comments

Comments

@RoY7x
Copy link

RoY7x commented Nov 24, 2024

Got an issue when I first downloaded this with it crashing on startup.

I am using arch linux with SMAPI 4.1.7 with Stardew Valley 1.6.14 build 24317 on Unix 6.11.7.1

I get the following error message at launch

[Rich Presence] Mod crashed on entry and might not work correctly. Technical details:
System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'xdg-mime' with working directory '/home/roy/.local/share/Steam/steamapps/common/Stardew Valley'. No such file or directory
   at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at DiscordRPC.Registry.UnixUriSchemeCreator.RegisterMime(String appid)
   at DiscordRPC.Registry.UnixUriSchemeCreator.RegisterUriScheme(UriSchemeRegister register)
   at DiscordRPC.Registry.UriSchemeRegister.RegisterUriScheme()
   at DiscordRPC.DiscordRpcClient.RegisterUriScheme(String steamAppID, String executable)
   at SVRichPresence.RichPresenceMod.Entry(IModHelper helper) in E:\dev\myprojs\SVRichPresence\RichPresenceMod.cs:line 35
   at StardewModdingAPI.Framework.SCore.LoadMods(IModMetadata[] mods, JsonHelper jsonHelper, ContentCoordinator contentCore, ModDatabase modDatabase) in /home/pathoschild/git/SMAPI/src/SMAPI/Framework/SCore.cs:line 1860

@RuiNtD
Copy link
Owner

RuiNtD commented Nov 25, 2024

Hello. Unfortunately, Linux is untested and unsupported, but it looks like it's trying to call xdg-mime, which is missing from your system. According to Google, that should be in the xdg-mime package. Make sure that's installed.

EDIT: Also, in the future, make sure to pass your logs through the SMAPI log parser before sending it.

@42willow
Copy link

This mod was working for me on Linux previously... what happened to #5 (comment) ?

@RuiNtD
Copy link
Owner

RuiNtD commented Dec 13, 2024

what happened to #5 (comment) ?

That comment is from 3 years ago. Linux is hard for me to test, so I've just been hoping it doesn't break. 😅
Since your issue is likely something different, can you post your log in a new ticket?

EDIT: wait what am i saying i literally have a steam deck LMAO

@RuiNtD
Copy link
Owner

RuiNtD commented Dec 13, 2024

@RoY7x I'm closing this ticket as stale. If you're still having issues, feel free to comment.

@RuiNtD RuiNtD closed this as not planned Won't fix, can't repro, duplicate, stale Dec 13, 2024
@42willow
Copy link

I am getting the same error message 😅

@RuiNtD RuiNtD reopened this Dec 13, 2024
@RuiNtD
Copy link
Owner

RuiNtD commented Dec 13, 2024

...I just realized exactly what's going on here...

@RuiNtD RuiNtD changed the title Mod Crashes at Startup Mod Crashes on Steam Deck Dec 13, 2024
@RuiNtD RuiNtD changed the title Mod Crashes on Steam Deck Mod Crashes on Linux Dec 13, 2024
@RuiNtD
Copy link
Owner

RuiNtD commented Dec 13, 2024

Hello. I just uploaded 3.0.3 which should hopefully fix this particular crash. Keep in mind SVRP is still untested on Linux. Also, Steam Deck is unsupported due to the inability to install Discord as a native package, which is required for RPC.

@RuiNtD RuiNtD closed this as completed Dec 14, 2024
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

3 participants