Stencyl 3.4.0 is now out. Get it now!

Bug Issue: [linux] Uncaught exception - std@module_read after loading


Pages: 1

dhruvio

  • Junior Stencyler
April 13, 2017, 07:34:54 pm
I'm working my way through the crash course, but I am not able to build the game for Linux (I am on NixOS); I get the following error. Note that I have all of the dependencies listed on the linux install instructions, my ELF interpreters are correct, and the dependency + embedded shared libraries are in the relevant RPATHs and LD_LIBRARY_PATH variables.

Any ideas on what is happening?

Code: [Select]
2017-04-13 19:30:55,119 DEBUG [pool-1-thread-1] stencyl.sw.util.FileHelper: Trying to delete file that does not exist: /home/dd/stencyl/stencylworks/games-generated/Crash Course Game/Export/cpp/linux/bin/Crash Course Game
2017-04-13 19:30:55,123 DEBUG [pool-1-thread-1] stencyl.sw.util.Util: Running command: [/nix/store/swf9p7zz81ynyw9vx7004yrm6khpcq27-stencyl-1.2.0/share/plaf/haxe/haxelib, run, openfl, -verbose, test, -release, project.xml, linux]
2017-04-13 19:30:55,129 DEBUG [pool-1-thread-1] stencyl.sw.util.Util: Process 'haxelib' exited with code: 1
2017-04-13 19:30:55,132 INFO  [Thread-10] stencyl.sw.util.StreamGobbler: [haxelib] Uncaught exception - std@module_read
2017-04-13 19:30:55,133 ERROR [pool-1-thread-1] stencyl.sw.io.write.resource.HXWriter: Failed: Running Standalone (linux). (Return code: 1)
2017-04-13 19:30:55,138 ERROR [pool-1-thread-1] stencyl.sw.util.dg.MessageDialog: Encountered errors while building your game.: Check your logs and post them to the forums.  - Please describe what you have been doing. Be as specific as possible.


dhruvio

  • Junior Stencyler
April 13, 2017, 07:43:41 pm
Here is the relevant part of the strace output for haxelib:

Code: [Select]
open("/nix/store/xfw79hg5a9dbfb4vchj5dlc8lhcn9gs3-stencyl-3.4.0/share/plaf/haxe/lib/lime/lime/templates/neko/ndll/linux64/std.ndll", O_RDONLY|O_CLOEXEC) = 4
read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320H\1\0\0\0\0\0"..., 832) = 832
fstat(4, {st_mode=S_IFREG|0555, st_size=264853, ...}) = 0
mmap(NULL, 2327320, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x7fd531eeb000
mprotect(0x7fd531f18000, 2097152, PROT_NONE) = 0
mmap(0x7fd532118000, 49152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x2d000) = 0x7fd532118000
close(4)                                = 0
open("/run/opengl-driver/lib/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/run/opengl-driver-32/lib/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/nix/store/vn6fkjnfps37wa82ri4mwszwvnnan6sk-glibc-2.25/lib/librt.so.1", O_RDONLY|O_CLOEXEC) = 4
read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\37\0\0\0\0\0\0"..., 832) = 832
fstat(4, {st_mode=S_IFREG|0555, st_size=41752, ...}) = 0
mmap(NULL, 2128384, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x7fd531ce3000
mprotect(0x7fd531cea000, 2093056, PROT_NONE) = 0
mmap(0x7fd531ee9000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x6000) = 0x7fd531ee9000
close(4)                                = 0
mprotect(0x7fd531ee9000, 4096, PROT_READ) = 0
mprotect(0x7fd532118000, 20480, PROT_READ) = 0
close(3)                                = 0
write(2, "Uncaught exception - std@module_"..., 37Uncaught exception - std@module_read
) = 37
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
exit_group(1)                           = ?
+++ exited with 1 +++
« Last Edit: April 13, 2017, 07:47:09 pm by dhruvio »


danielle53

  • Subscriber - Stencyl Indie
  • *
April 20, 2017, 02:24:51 am
apparently, you don't have the library

Code: [Select]
/run/opengl-driver/lib/librt.so.1


Issue updated by rob1221 - Yesterday at 08:05:58 am
  • Status changed from New to Need Info


Justin

  • Master Stencyler
  • *
Yesterday at 12:42:10 pm
Just putting these here to keep track of linked discussions. Presumably, it would help if we have better support for external haxe/neko/java installs, but correct me if I'm wrong.

https://github.com/NixOS/nixpkgs/issues/24487
https://github.com/NixOS/nixpkgs/pull/24881
« Last Edit: Yesterday at 12:42:24 pm by Justin »


Pages: 1

Details

  • Reported
    April 13, 2017, 07:34:54 pm
  • Updated
    Yesterday at 12:42:10 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Need Info
  • Priority
    Normal
  • Version
    Stencyl 3.4
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Updating Stencyl

Tags