dwarfcorp icon indicating copy to clipboard operation
dwarfcorp copied to clipboard

failure to start dwarfcorp on alpine linux

Open sodomon2 opened this issue 4 years ago • 27 comments

Hello

I have a bug in the game launch, it seems to be a segmentation fault

my mono version is : 5.20.1.19

this is the mistake


=================================================================
	Native Crash Reporting
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================
/proc/self/maps:
411b1000-41201000 rwxp 00000000 00:00 0 
4123e000-4124e000 rwxp 00000000 00:00 0 
55b29e630000-55b29e65b000 r--p 00000000 08:02 1493434                    /usr/bin/mono-sgen
55b29e65b000-55b29e8a5000 r-xp 0002b000 08:02 1493434                    /usr/bin/mono-sgen
55b29e8a5000-55b29e9c8000 r--p 00275000 08:02 1493434                    /usr/bin/mono-sgen
55b29e9c9000-55b29e9d0000 r--p 00398000 08:02 1493434                    /usr/bin/mono-sgen
55b29e9d0000-55b29e9d5000 rw-p 0039f000 08:02 1493434                    /usr/bin/mono-sgen
55b29e9d5000-55b29e9ec000 rw-p 00000000 00:00 0 
55b29f17b000-55b29fac5000 rw-p 00000000 00:00 0                          [heap]
7f8a41f93000-7f8a45f93000 rw-s 00000000 00:05 3950840                    /memfd:pulseaudio (deleted)
7f8a45f93000-7f8a49f93000 rw-s 00000000 00:05 14375                      /memfd:pulseaudio (deleted)
7f8a49f93000-7f8a4df93000 rw-s 00000000 00:05 3950838                    /memfd:pulseaudio (deleted)
7f8a4df93000-7f8a51f93000 rw-s 00000000 00:05 3950838                    /memfd:pulseaudio (deleted)
7f8a51f93000-7f8a51f97000 rw-s 00000000 00:15 3950811                    /i915 (deleted)
7f8a51f97000-7f8a51f9c000 rw-s 00000000 00:15 3950823                    /i915 (deleted)
7f8a51f9c000-7f8a51fa0000 rw-s 00000000 00:15 3950815                    /i915 (deleted)
7f8a51fa0000-7f8a51fa4000 rw-s 00000000 00:15 3950813                    /i915 (deleted)
7f8a51fa4000-7f8a51fa9000 rw-s 00000000 00:15 3950812                    /i915 (deleted)
7f8a523d8000-7f8a52c2e000 rw-p 00000000 00:00 0 
7f8a52c2e000-7f8a52c30000 ---p 00000000 00:00 0 
7f8a52c30000-7f8a52e31000 rw-p 00000000 00:00 0 
7f8a52e31000-7f8a52e33000 ---p 00000000 00:00 0 
7f8a52e33000-7f8a52e48000 rw-p 00000000 00:00 0 
7f8a52e48000-7f8a52e5c000 r--p 00000000 08:02 1477861                    /usr/lib/libvorbisenc.so.2.0.11
7f8a52e5c000-7f8a52e5f000 r-xp 00014000 08:02 1477861                    /usr/lib/libvorbisenc.so.2.0.11

=================================================================
	Basic Fault Adddress Reporting
=================================================================
Memory around native instruction pointer (0xa356):0xa346  Segmentation fault

sodomon2 avatar May 30 '20 03:05 sodomon2

Okay I've fixed this bug but now I get a new bug which is this

IGLDevice: OpenGLDevice
OpenGL Device: Mesa DRI Intel(R) Sandybridge Mobile 
OpenGL Driver: 3.0 Mesa 18.1.7
OpenGL Vendor: Intel Open Source Technology Center
MojoShader Profile: glsl120
EXT_swap_control_tear unsupported. Fall back to standard VSync.
[ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: steam_api
  at DwarfCorp.Program.WriteExceptionLog (System.Exception exception) [0x00258] in <3a2e730fdfb1460391f423d534a291ff>:0 
  at DwarfCorp.Program.Main (System.String[] args) [0x00148] in <3a2e730fdfb1460391f423d534a291ff>:0

sodomon2 avatar May 30 '20 05:05 sodomon2

I have no means to actually test this on linux.

Looks like you need the steamapi dll. It's in the project, might need to be manually copied to your build directory.

Blecki avatar May 30 '20 19:05 Blecki

and compiled the mono-build version

in which directory is the steam_api dll located?

sodomon2 avatar May 30 '20 21:05 sodomon2

It's just in the project directory.

If you're building the mono csproj - it compiles (maybe) but does not work. All of the shaders need to be converted, for starters; and I'm sure plenty more. For Linux, try the FNA version.

Blecki avatar May 31 '20 21:05 Blecki

@Blecki the FNA version is the one I'm running

the binary it creates is DwarfCorpFNA.mono

sodomon2 avatar May 31 '20 22:05 sodomon2

Okay, that should work then if you have the dependencies right.

Blecki avatar May 31 '20 22:05 Blecki

What are the units? I just installed mono

sodomon2 avatar May 31 '20 22:05 sodomon2

Everything you need - including FNA - is in the repository.

Copy the contents of FNA_Libs\libs\ and FNA_Libs\mono\ to your output directory.

Blecki avatar May 31 '20 22:05 Blecki

mmm e past all the librearias that were in the

FNA_Libs/libs64/ and FNA_Libs/mono/ but I still get the steam_api error

sodomon2 avatar May 31 '20 22:05 sodomon2

Did you copy the steam dll too?

On Sun, May 31, 2020, 18:53 Victor Diego Alejandro Diaz Urbaneja < [email protected]> wrote:

mmm e past all the librearias that were in the

FNA_Libs/libs64/ and FNA_Libs/mono/ but I still get the steam_api error

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Blecki/dwarfcorp/issues/1047#issuecomment-636542701, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ4VLCSPJYUDRRJT6HW6STRULNVPANCNFSM4NOQOWAA .

Blecki avatar May 31 '20 23:05 Blecki

yes,copy steam_api.dll and libsteam_api.so

sodomon2 avatar May 31 '20 23:05 sodomon2

I don't know what this libsteam.so stuff is about.

On Sun, May 31, 2020, 19:28 Victor Diego Alejandro Diaz Urbaneja < [email protected]> wrote:

si,copie steam_api.dll y libsteam_api.so

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Blecki/dwarfcorp/issues/1047#issuecomment-636546937, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ4VLHXVJGSKELQXORJFRLRULRZTANCNFSM4NOQOWAA .

Blecki avatar May 31 '20 23:05 Blecki

@Blecki I still get the error, I think it might be because in linux the .dll extension doesn't work, it works is .so maybe that's why I don't run the game

sodomon2 avatar May 31 '20 23:05 sodomon2

Dlls work, maybe not on every flavor. Really don't know. You might be able to cut out the dependency entirely; steam is optional.

On Sun, May 31, 2020, 19:51 Victor Diego Alejandro Diaz Urbaneja < [email protected]> wrote:

@Blecki https://github.com/Blecki I still get the error, I think it might be because in linux the .dll extension doesn't work, it works is .so maybe that's why I don't run the game

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Blecki/dwarfcorp/issues/1047#issuecomment-636549707, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ4VLH4TH55CHAX3RTZY7TRULUO5ANCNFSM4NOQOWAA .

Blecki avatar May 31 '20 23:05 Blecki

@Blecki Okay, remove the steam libraries.

both steam_api.dll and libsteam_api.so

but I still get the error

sodomon2 avatar Jun 01 '20 00:06 sodomon2

I meant remove all references from the code.

On Sun, May 31, 2020, 20:41 Victor Diego Alejandro Diaz Urbaneja < [email protected]> wrote:

@Blecki https://github.com/Blecki Okay, remove the steam libraries.

both steam_api.dll and libsteam_api.so

but I still get the error

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Blecki/dwarfcorp/issues/1047#issuecomment-636557568, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ4VLFNM6GITD4HMSNTFV3RUL2MLANCNFSM4NOQOWAA .

Blecki avatar Jun 01 '20 00:06 Blecki

Okay, but where are these references in the code? 😅

sodomon2 avatar Jun 01 '20 00:06 sodomon2

That will take me a bit longer to tell you.

On Sun, May 31, 2020, 20:52 Victor Diego Alejandro Diaz Urbaneja < [email protected]> wrote:

Okay, but where are these references in the code? 😅

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Blecki/dwarfcorp/issues/1047#issuecomment-636559438, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ4VLEGDYYVGE2NIRQKTN3RUL3UVANCNFSM4NOQOWAA .

Blecki avatar Jun 01 '20 01:06 Blecki

ok,:c

sodomon2 avatar Jun 01 '20 01:06 sodomon2

Okay; so get rid of everything in gamestates/modmanagement/steam/ then you should be able to comment out everything that breaks.

Blecki avatar Jun 01 '20 02:06 Blecki

I don't understand, you want me to delete the directory gamestates/modmanagement/steam/ ?

sodomon2 avatar Jun 01 '20 04:06 sodomon2

Yes, and fix up the compilation errors that result. It's not required for the game to run, just to use the mod discovery and installation features.

Blecki avatar Jun 01 '20 18:06 Blecki

@Blecki ok I don't get the steam_api error anymore,but now I get another error,the error says it can't find xna_draw.xnb

sodomon2 avatar Jun 01 '20 20:06 sodomon2

Did you copy the content from the windows build?

On Mon, Jun 1, 2020, 16:55 Victor Diego Alejandro Diaz Urbaneja < [email protected]> wrote:

@Blecki https://github.com/Blecki ok I don't get the steam_api error anymore,but now I get another error,the error says it can't find xna_draw.xnb

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Blecki/dwarfcorp/issues/1047#issuecomment-637096814, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ4VLBXPXYVLNVEZTT2QM3RUQIULANCNFSM4NOQOWAA .

Blecki avatar Jun 01 '20 21:06 Blecki

no,copy the content of DwarfCorp/DwarfCorpContent

sodomon2 avatar Jun 02 '20 16:06 sodomon2

@Blecki

ok I already copied the xna_draw.xnb from the window content,but when I run I get another error,and this time it's with MojoShader

sodomon2 avatar Jun 12 '20 04:06 sodomon2

ok myself and compiled the libmojoshader.so

but when I run it I get an error which is this

EXT_swap_control_tear unsupported. Fall back to standard VSync.

[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
  at DwarfCorp.Program.WriteExceptionLog (System.Exception exception) [0x00258] in <65033c348ea04c2ca286d0069fbf4ba9>:0 
  at DwarfCorp.Program.Main (System.String[] args) [0x00148] in <65033c348ea04c2ca286d0069fbf4ba9>:0

1

sodomon2 avatar Jun 16 '20 05:06 sodomon2