YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
22 stars 8 forks source link

Building Projects: [Ubuntu] Can't run or build an appimage if using Archlinux as the OS #6326

Open gm-bug-reporter[bot] opened 3 months ago

gm-bug-reporter[bot] commented 3 months ago

Description

i have installed latest linuxdeploy, but running it via gamemaker tools shows this error: This doesn't look like a squashfs image. Failed to open squashfs image

on the other hand building a zip works fine

Steps To Reproduce

  1. install linuxdeploy-appimage onto arch linux (there's an AUR package, which is latest), also install zip and unzip (in default pacman repositories)
  2. install latest gamemaker-beta from the actual, real download links we offer every release, not an unsupported third-party package repository
  3. grab a working project
  4. press Run (F5) and see it fail to build
  5. Build - Create Executable (F8) and create an AppImage Bundle - also fails
  6. Build - Create Executable (F8) and create a Compressed Application zip - that works, and you can run the game after unzipping

Which version of GameMaker are you reporting this issue for?

IDE v2024.600.0.576 Runtime v2024.600.0.602

Which operating system(s) are you seeing the problem on?

Linux Linux kernel 6.9.5.1

Which platform(s) are you seeing the problem on?

Ubuntu

6ccdf4cf-6c44-4e23-be79-73b01081e839

SunCatMC commented 3 months ago

here's my github btw, so you can ask me questions

SunCatMC commented 3 months ago

after reading the official guide for ubuntu i installed appimagetool, but that did nothing to remedy the issue

SunCatMC commented 3 months ago

sorry for bold test in the report, i didn't know my triple dashes would affect formatting this way

SunCatMC commented 3 months ago

checksfinder log.txt forgot to submit the compiler log

YYDan commented 3 months ago

Fixed your repo steps ;)

Note that Arch is not officially supported by us, so we're unlikely to repeat those steps anyway - however, if we can determine the cause then it will be fixed as per usual.

YYDan commented 3 months ago

Note that a duplicate/"part 2" issue was made, using the 605 runtime released yesterday. The info from that one is:

I updated gm, decided to compile my project on new version, but it failed

System.ArgumentException: Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.
   at System.Buffer.BlockCopy(Array src, Int32 srcOffset, Array dst, Int32 dstOffset, Int32 count)
   at System.IO.MemoryStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.StreamReader.ReadBuffer()
   at Igor.LinuxBuilder.plink_async(String command, Boolean fail_on_error)
   at Igor.LinuxBuilder.BuildAppImage(String work_dir, String exe_path, String assets_zip_path, String projectName, Boolean package)
   at Igor.LinuxBuilder.Package()
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Igor complete.

compiling as zip on the other hand is successful

8bcc9068-7572-45fe-ab26-0919d9d01d97

YYDan commented 3 months ago

Looking at the log in the package from the comment above, you must have resolved the original Squish error yourself, as I can see all of that stuff higher up the file and the build continues beyond that.

Will see what the newer error is.

Emc1923 commented 3 months ago

I can confirm I'm able to generate a working appimage file with that sample in Ubuntu 22.04/ 24.04 IDEs as of Beta IDE v2024.600.0.579 Beta Runtime v2024.600.0.605, here is my output log: Ubuntu24.04_log.txt

SunCatMC commented 11 hours ago

Sorry for disappearing for a bit.

The issue you linked def was happening for Ubuntu compiling and running on itself, no archlinux involved. But whatever the issue was, it doesn't happen on v2024.1100.0.634, so it doesn't matter. Will check if i have any issues with that version on archlinux soon

SunCatMC commented 5 hours ago

still getting squashfs error when compiling on archlinux @YYDan log.txt can't test appimage on its own 'cos i failed to get a working file in time before i got the crash on my ubuntu machine