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

Package Manager: [Mac/Ubu IDE] "GMPM Failure code 126" dialog shown when downloading Prefab/GMRT packages #8345

Closed
1 of 2 tasks
yerumaku opened this issue Nov 8, 2024 · 22 comments
Assignees
Labels
ide-bug Bugs with the GameMaker IDE
Milestone

Comments

@yerumaku
Copy link

yerumaku commented Nov 8, 2024

Description

I see an error message when I try to download Prefab.

This error generally applies to all GMPM resources!

Image

This error started as soon as GMPM appeared.

Installing Packages
installing 'Release' packages
/usr/bin/env bash -c "'/Users/yerumaku/Library/Application Support/GameMakerStudio2-Beta/yerumaku_2180665/node/node/bin/node' '/Users/yerumaku/Library/Application Support/GameMakerStudio2-Beta/yerumaku_2180665/node/node/lib/node_modules/npm/bin/npm-cli.js' install --registry https://gmpm.gamemaker.io/ --loglevel verbose"
bash: /Users/yerumaku/Library/Application Support/GameMakerStudio2-Beta/yerumaku_2180665/node/node/bin/node: Permission denied
potential issue when fetching packages, npm returned non-zero exit code
GMPM install completed with exit code: 126


Additional Screen - when I drag one GMPM or scroll it, sometimes the filter display gets lost.
(see video in comments)
Image

Expected Change

No response

Steps To Reproduce

  1. Start GameMaker
  2. Open project
  3. Open GMPM
  4. Select Prefabs filter (or other)
  5. Select Prefab
  6. Click Install button
  7. See the issue

How reliably can you recreate this issue using your steps above?

Always

Which version of GameMaker are you reporting this issue for?

2024.1100 (Betas)

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

macOS Sequoia, Ubuntu 24.04

Are you running GameMaker from inside your Steam library?

No

Sample Package Attached?

  • I have attached my bug package

Sample Project Added?

  • I have included a small sample project
@yerumaku yerumaku added the ide-bug Bugs with the GameMaker IDE label Nov 8, 2024
@YYDan YYDan changed the title GMPM: Not work on macOS Package Manager: [Mac IDE] "GMPM Failure code 126" dialog shown when downloading Prefab/GMRT packages Nov 8, 2024
@yerumaku
Copy link
Author

yerumaku commented Nov 8, 2024

This problem applies to all packages. If anything, I have nvm and nodejs installed on my Mac.

@yerumaku
Copy link
Author

yerumaku commented Nov 8, 2024

There is an inconsistency in getting lists, if another filter is installed, after loading the list of the second selected filter, the first one is loaded late and replaces the selected current one.

2024-11-08.19.31.02.mov

@yerumaku
Copy link
Author

yerumaku commented Nov 8, 2024

I wrote about the error in discord, trying to draw attention to the problem, since this error appeared back in the canary build 2024/10/23 immediately after GMPM appeared on macOS, and I could not create an appeal here until the official Beta version is released.

https://discord.com/channels/262834612932182025/702916509550379008/1298554151722287167

@yerumaku
Copy link
Author

yerumaku commented Nov 9, 2024

I can browse resources (without VPN), but...
Image

Endless loading when trying to download something.
https://github.com/user-attachments/assets/a68522e5-99fb-48da-b262-c4b6623e6ffb

@stuckie stuckie moved this from Triage to Todo in Team Workload Nov 11, 2024
@stuckie stuckie added this to the 2024.11 milestone Nov 11, 2024
@yerumaku
Copy link
Author

I checked the error on another Mac with an older system, the results are the same.

@Emc1923
Copy link

Emc1923 commented Nov 12, 2024

Can confirm I'm having the same issue and the prefabs that were correctly installed previously won't load in the Prefab Library. It also happens in Ubuntu.

@YYDan
Copy link
Collaborator

YYDan commented Nov 12, 2024

I wrote about the error in discord, trying to draw attention to the problem, since this error appeared back in the canary build 2024/10/23 immediately after GMPM appeared on macOS, and I could not create an appeal here until the official Beta version is released.

https://discord.com/channels/262834612932182025/702916509550379008/1298554151722287167

Discord is not a bug report. Always draw attention here (as you have now done, so thanks) ;)

@yerumaku
Copy link
Author

Can confirm I'm having the same issue and the prefabs that were correctly installed previously won't load in the Prefab Library. It also happens in Ubuntu.

At what steps do you have GMPM not working on Linux? Basically, nothing loads on my macOS.

@yerumaku
Copy link
Author

yerumaku commented Nov 12, 2024

Discord is not a bug report. Always draw attention here

Unfortunately, attracting attention is not the key to solving the problem in the near future 🥹

There are always more important things, and it is possible, given that now only the 2nd phase of the 4th.

#4681 (comment)

And as far as I understood from GMPM, is it designed to work only on Windows OS?

#3199

@Emc1923
Copy link

Emc1923 commented Nov 13, 2024

At what steps do you have GMPM not working on Linux? Basically, nothing loads on my macOS.

@yerumaku macOS and Linux fail at the same stage

@Emc1923 Emc1923 changed the title Package Manager: [Mac IDE] "GMPM Failure code 126" dialog shown when downloading Prefab/GMRT packages Package Manager: [Mac/Ubu IDE] "GMPM Failure code 126" dialog shown when downloading Prefab/GMRT packages Nov 13, 2024
@yerumaku
Copy link
Author

Beta 4 - IDE 659/Runtime 685 Changes (Oct 29, 2024)

New Windows IDE Updater

Now, you won’t actually see the evidence of this one until the next Beta we release (as there is no newer version to update to), but be aware that this release does include the new in-IDE updater for Windows IDEs (not Mac or Ubuntu!)

It seems that the GMPM plugins and the IDE update via GMPM are connected, so the announced lack of the ability to update the IDE via GMPM on Mac/Linux, and this was not in the near future (which is also in discord), and I conclude that the Prefab Library will not appear on Mac/Linux in November (in working order).

@stuckie, do I understand correctly that the problem will be transferred to the next Milestone 2024.1100 -> 2025 ?

@stuckie
Copy link

stuckie commented Nov 13, 2024

If this had been broken for you for a while, you really should have logged a ticket in so we could have investigated sooner.
It is as simple as that.
As mentioned, this is the bug database; we do not always check discord, forums, reddit, twitter/x, mastodon, bluesky, threads, facebook, or any other social media network to try and pull bugs together. There are literally thousands here to deal with, that people have logged with us properly, without us going out of our way to find more!
In future, if you find a bug, please report it through the proper channels so that we have a good amount of time to address it.

Griping aside, we have not had the time to look into this issue yet to see what it is to be able to give you an answer, it has only been assigned for two days.
Any updates will be on this ticket and no, the Windows IDE update has nothing to do with GMPM, Plugins, or anything else.

@stuckie stuckie self-assigned this Nov 13, 2024
@stuckie stuckie moved this from Todo to In Progress in Team Workload Nov 13, 2024
@stuckie
Copy link

stuckie commented Nov 13, 2024

So, somewhat thanks to @gnysek on the other ticket that you started linking back to here, I realised this was a permissions issue and is now fixed.
However in future, please don't do that either - keep related discussions to issues in the ticket that has been created for it so it is easier to follow.

If you need to fix it now, you just need to set the executable bit on your node install.
Ubuntu: chmod +x /home/<YOUR_UBUNTU_USER>/.config/GameMakerStudio2-Beta/<YOUR_GM_USER>/node/node/bin/node
macOS: chmod +x /Users/<YOUR_MACOS_USER>/Library/Application\ Support/GameMakerStudio2-Beta/<YOUR_GM_USER>/node/node/bin/node

@stuckie stuckie closed this as completed Nov 13, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in Team Workload Nov 13, 2024
@yerumaku
Copy link
Author

@stuckie
In the original issue message, I attached the console log, it was written about access/permission:

.../node/node/bin/node: Permission denied

Thank you, it helped me:

macOS: chmod +x /Users/<YOUR_MACOS_USER>/Library/Application\ Support/GameMakerStudio2-Beta/<YOUR_GM_USER>/node/node/bin/node

Log after click install.

Installing Packages
installing 'Release' packages
/usr/bin/env bash -c "'/Users/<YOUR_MACOS_USER>/Library/Application Support/GameMakerStudio2-Beta/<YOUR_GM_USER>/node/node/bin/node' '/Users/<YOUR_MACOS_USER>/Library/Application Support/GameMakerStudio2-Beta/<YOUR_GM_USER>/node/node/lib/node_modules/npm/bin/npm-cli.js' install --registry https://gmpm.gamemaker.io/ --loglevel verbose"
npm verb cli /Users/<YOUR_MACOS_USER>/Library/Application Support/GameMakerStudio2-Beta/<YOUR_GM_USER>/node/node/bin/node /Users/<YOUR_MACOS_USER>/Library/Application Support/GameMakerStudio2-Beta/<YOUR_GM_USER>/node/node/lib/node_modules/npm/bin/npm-cli.js
npm info using [email protected]
npm info using [email protected]
npm verb title npm install
npm verb argv "install" "--registry" "https://gmpm.gamemaker.io/" "--loglevel" "verbose"
npm verb logfile logs-max:10 dir:/Users/<YOUR_MACOS_USER>/.npm/_logs/2024-11-14T05_01_15_296Z-
npm verb logfile /Users/<YOUR_MACOS_USER>/.npm/_logs/2024-11-14T05_01_15_296Z-debug-0.log
npm http fetch GET 200 https://gmpm.gamemaker.io/@gm-prefabs%2fMusicTracksNaturalWorld 458ms (cache miss)
npm http fetch POST 200 https://gmpm.gamemaker.io/-/npm/v1/security/advisories/bulk 522ms
npm http fetch GET 200 https://gmpm.gamemaker.io/@gm-prefabs/MusicTracksNaturalWorld/-/MusicTracksNaturalWorld-1.0.0.tgz 4000ms (cache miss)
added 1 package, and audited 2 packages in 5s
found 0 vulnerabilities
npm verb exit 0
npm info ok
reformatting 'Release' package modules
/usr/bin/env bash -c "'/Users/<YOUR_MACOS_USER>/Library/Application Support/GameMakerStudio2-Beta/<YOUR_GM_USER>/node/node/bin/node' -p ""require('./package.json').gm.destination"""
gm-prefabs/MusicTracksNaturalWorld

/usr/bin/env bash -c "'/Users/<YOUR_MACOS_USER>/Library/Application Support/GameMakerStudio2-Beta/<YOUR_GM_USER>/node/node/bin/node' -p ""require('./package.json').version"""
1.0.0

/usr/bin/env bash -c "'/Users/<YOUR_MACOS_USER>/Library/Application Support/GameMakerStudio2-Beta/<YOUR_GM_USER>/node/node/bin/node' -p ""require('./package.json').name"""
@gm-prefabs/MusicTracksNaturalWorld

tidying workspace
GMPM install completed with exit code: 0

Image

@yerumaku
Copy link
Author

Will the access problem be solved in the IDE itself, or should each user grant permissions on their own?

If on your own, can a more understandable hint be added in the log to fix the problem?

@gnysek
Copy link
Contributor

gnysek commented Nov 14, 2024

@yerumaku

I realised this was a permissions issue and is now fixed.

If it's fixed, should be in next beta IMO.

Giving tons of comments, especially those not related exactly to issue isn't helping. As Stuckie said, they just assigned ticket, doesn't mean it was even checked against issues, so they could not yet read everything (or not checked logs), as assignment doesn't mean it's already in progress, but in queue. You don't need to point everything out, especially that they known what could be issue without checking it.

@yerumaku
Copy link
Author

@gnysek

If it's fixed, should be in next beta IMO.

Giving tons of comments, especially those not related exactly to issue isn't helping.

I have set permissions on one of the laptops, I will leave everything as it is on the other, and if I have a problem, others may have it.

I also tried to register the paths to NodeJS and to NPM inside the IDE, I don't know how much this also affected, but the error did not go away until the directory permissions were granted (previously I forgot about escaping the space).

I do not know what to do if the error is not resolved on the laptop without the +x permission, and whether I need to wait for this correction to be marked in the version log in order to rediscover the problem while saving the permission error on the laptop without the permissions granted.

@gnysek
Copy link
Contributor

gnysek commented Nov 14, 2024

others may have it

Then they can report a bug about it then. Simple as that. Stuckie wrote that this is fixed, so I believe it will be OK with next release. If not - report new bug.

@stuckie
Copy link

stuckie commented Nov 14, 2024

You copied a fragment of the log, yes, but there was no full bug package to see if it was anything else, and at first glance it looks like a general file permission error as the surrounding lines do indicate that something ran - so it could have been lack of permissions to write to a directory or anything else. At that point, it was not obvious.
The other ticket showed that that is specifically an executable and that it should have the executable bit set; as it is called in a specialised manner, it is not immediately obvious that it needed that, nor is it obvious how it lost it in the first place.
I was then able to confirm that what you were seeing was the outcome of that by taking the executable bit off of my install and getting the same errors.
Thus, I was able to get the IDE to perform a check that it can run that executable, and set the executable bit if it is missing.
That was the extra piece of information that I was calling out that led to this being fixed quickly, as it was not reproducible on my end.

The commands given were to allow you to verify that it was the correct fix in your circumstances now, without waiting on another beta release. The IDE will fix it itself if it has to.

So yes, either set the execute bit yourself if you need to get on with things now, or wait for the next IDE beta. Either way will do the same thing.
If you still have an issue, then please submit another ticket with a full bug report package so we have more context as to what is going on.

Thanks.

@yerumaku
Copy link
Author

Thank you for clarifying the situation regarding the correction of the flag affixing.

But I still didn't understand what to add to the requests (logs, error playback descriptions, screenshots, videos, description of my system), because it seemed to me that the information from the log piece was enough, I apologize for that.

Thanks also for the quick fix!

@yerumaku
Copy link
Author

others may have it

Then they can report a bug about it then. Simple as that. Stuckie wrote that this is fixed, so I believe it will be OK with next release. If not - report new bug.

Yes, I still don't understand how everything works here, because the task may be in the TODO state, but it is already being solved. If there was some kind of support that the problem was taken to work, I think I would not be afraid that macOS users would be left without downloadable resources.

This problem has really existed for quite a long time (since the advent of GMPM) and I am glad that it has been resolved. But it also means that there are quite a few people with this problem if no one has written about it before.

@YYBartT YYBartT moved this from Done to Ready for QA in Team Workload Nov 14, 2024
@Emc1923
Copy link

Emc1923 commented Nov 18, 2024

Verified fixed as of IDE v2024.1100.0.687 Runtime v2024.1100.0.708.

@Emc1923 Emc1923 moved this from Ready for QA to Verified in Team Workload Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ide-bug Bugs with the GameMaker IDE
Projects
Status: Verified
Development

No branches or pull requests

6 participants