Linux small problem

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By kingto400
:warning: Old Version Published before Godot 3 was released.

Hello. I have a game that was exported to Linux or Ubuntu 17.04. When the game was exported from windows to Linux, open terminal, tried to open and says segmentation fault. Does anyone here knows how to prevent this or had problems with this?

Maybe a bit more information would help. What version of the engine are you using? Does the game run as intended on Windows?

Ertain | 2017-10-18 06:51

I’m using windows editor, and exported to linux. When I try to run the executable in terminal linux, it says segmentation fault.

kingto400 | 2017-10-18 13:20

No, I mean what version number of the Godot Engine are you using? And when you run your game on Windows, does it run without any errors? If it runs perfectly fine on Windows, then there may be something wrong with the Godot Engine version you’re using.

Ertain | 2017-10-18 16:07

im using 2.1.4. yes the game runs fine for windows with no errors

kingto400 | 2017-10-18 17:52

Then it looks like we’re going to have to dig a bit deeper into this problem and get our hands dirty.

Segmentation faults (or segfaults) under GNU/Linux are a bit harder to diagnose without doing some debugging. Let’s look at what files are linked against the binary.

In a command line session on Ubuntu 17.04, use a command like this: ldd your_binary.pck, where “your_binary.pck” is the file name of the binary pack file used to run the program. Paste the results here with the proper code mark-up (you can use the text editor on this site to help you). This will show which files are linked with the binary, including libraries which should probably not be linked with the binary.

If that doesn’t turn up much, we may have to break out the gdb utility, and do some proper debugging.

Ertain | 2017-10-18 20:14

Ok i think I figured it out now. I just had to copy the game(Linux game) to my local flashdrive. Then, On my Linux, I copied all files, to the Desktop folder. Then, Open terminal and launched the program. But now,it has no audio. Is that a bug?

kingto400 | 2017-10-19 00:36

AFAIK, the executable is linked against Pulseaudio, so it may have something to do with your Pulseaudio settings.

Ertain | 2017-10-19 01:45

Pulseaudio? Any idea how to fix?

kingto400 | 2017-10-19 01:55

You may have to mess around with the sound settings under the Ubuntu control center thingy. There’s that, or install pavucontrol, which can be used to directly change audio settings in Pulseaudio.

Yeah, Pulseaudio can be a royal pain in the neck sometimes.

Ertain | 2017-10-19 02:13

what else do I need to know?

kingto400 | 2017-10-19 03:29

I don’t think you need to know anything else. Like I said, it could be a problem with Pulseaudio. If you mess with the system sound, and mess with pavucontrol, yet still find that the sound isn’t working, then it could be with the exported binary. In that case, you’d have to file a bug report on the Github Godot Engine repository.

Ertain | 2017-10-19 03:40

well thanks for the help and some information

kingto400 | 2017-10-19 13:42