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

Menu freezes upon opening mounted games list. #86

Closed
Jookia opened this issue Jun 10, 2013 · 191 comments

Comments

Projects
None yet
@Jookia
Copy link

commented Jun 10, 2013

Clicking the mounted games list in the menu makes the GUI unresponsive, but still active.

@d10sfan

This comment has been minimized.

Copy link

commented Jun 10, 2013

Also seeing this

@nmirthes

This comment has been minimized.

Copy link

commented Jun 10, 2013

Same. It's also happening with the drop down list for multi or single player on the upper right after clicking 'Start New Game'.

@TheHybrid

This comment has been minimized.

Copy link

commented Jun 10, 2013

Same here on Linux Mint 14 32 MATE.

@bkacjios

This comment has been minimized.

Copy link

commented Jun 10, 2013

Same issue on Linux Mint 15 Cinnamon

@NCSwitch

This comment has been minimized.

Copy link

commented Jun 11, 2013

Same Linux mint 14 x64 MATE

@garrynewman

This comment has been minimized.

Copy link
Contributor

commented Jun 11, 2013

This is a head scratcher. Since it only does it on Linux it's probably an awesomium bug. It seems like the awesomium process is crashing. I will have to add checks for when it crashes and at least add a console message when it does.

@Uradamus

This comment has been minimized.

Copy link

commented Jun 12, 2013

This is happening to me too. I am on Kubuntu 13.04 64-bit. Decided to launch Steam via console to see if anything came up when this occurs, the most relevant line seems to be this:

[0611/210744:FATAL:resource_bundle.cc(111)] Check failed: g_shared_instance_ != NULL.

Here is a console dump of the portions pertaining to GMod: http://pastebin.com/ZVrUp760

I had to use alt+f4 to close out the program since the ui got unresponsive as soon as I tried to hit the controller icon. The line I mentioned above is at 152, the rest after it showed up after the alt+f4.

@mutcianm

This comment has been minimized.

Copy link

commented Jun 12, 2013

Confirm, this is awesomium's fault. This also happens if you try to change player count when creating new game.
I got the stacktrace: https://gist.github.com/dedoz/5767040
But it's not really informative without debugging symbols. Windows version is shipped with a .pdb file for that purpose.

@fridtjof

This comment has been minimized.

Copy link

commented Jun 14, 2013

Anyone found a solution yet?

@mutcianm

This comment has been minimized.

Copy link

commented Jun 14, 2013

Judging by what I've found, crash happens in calls to gfx::NativeThemeBase::PaintCheckbox(...) and a couple of other function that issue calls to ui::ResourceBundle::GetSharedInstance().
It doesn't pass check CHECK(g_shared_instance_ != NULL); and aborts.
See
http://src.chromium.org/svn/branches/1025/src/ui/gfx/native_theme_base.cc
https://code.google.com/p/chromium/codesearch#chromium/src/ui/base/resource/resource_bundle.cc&l=177
These Paint calls require additional theme resources, such as bitmaps for checkbox and radio, which ResourceBundle class provides. By the time PaintCheckbox is called, ResourceBundle has either failed to initialize(which is unlikely, because according to chromium sources it would log it), or hasn't been initialized at all.
I'm not really familiar with chromium\awesomium architecture, so I can only guess. Moreover there are some bug reports concerning ResourceBundle and gpu driver, so this issue could be not as trivial.
By the time, I can't verify resource loading because I haven't yet figured out how to attach gdb to awsomium's child process right after it starts, if anyone can help it would be great.
Temporary solution would be to remove checkboxes from layout and to see if it still crashes.
P.S. I've been able to prevent the crash by forcing process to return from PaintCheckbox immediately. Everything works except checkboxes aren't drawn.

@fridtjof

This comment has been minimized.

Copy link

commented Jun 15, 2013

"P.S. I've been able to prevent the crash by forcing process to return from PaintCheckbox immediately. Everything works except checkboxes aren't drawn."

How do you exactly do this?

@mutcianm

This comment has been minimized.

Copy link

commented Jun 15, 2013

  • Attach gdb to awesomuim_process gdb awesomium_process [pid of awesomium child process]
  • set breakpoint on PaintCheckbox b gfx::NativeThemeBase::PaintCheckbox
  • click the control which causes gmod to crash, watch for gdb to reach breakpoint
  • issue "return" command in gdb shell return

You may need to return multiple times, as PaintCheckbox is called each time a checkbox is drawn.

@NCSwitch

This comment has been minimized.

Copy link

commented Jun 15, 2013

ok, so can we edit what we want to mount manually in a .txt?

@garrynewman

This comment has been minimized.

Copy link
Contributor

commented Jun 18, 2013

So it's missing something, or can't find something?

It seems to affect Linux only, and only when opening this certain popup. Why would that be? The checkboxes maybe?

@fridtjof

This comment has been minimized.

Copy link

commented Jun 18, 2013

I think it's the checkboxes, as dedoz stated.

@nmirthes

This comment has been minimized.

Copy link

commented Jun 23, 2013

@garrynewman I've noticed awesomium_process is called with some flags; in particular, '--enable-logging --log-level=0'. Could you increase the log-level?

Update 1

awesomium_process spawns a child process, which crashes with:

write(2, "[0623/155144:FATAL:resource_bundle.cc(111)] Check failed: g_shared_instance_ != NULL. \n", 87) = 87
write(10, "[0623/155144:FATAL:resource_bundle.cc(111)] Check failed: g_shared_instance_ != NULL. \n", 87) = 87
open("/proc/self/status", O_RDONLY|O_LARGEFILE) = 19
read(19, "Name:\tawesomium_proce\nState:\tR (running)\nTgid:\t2849\nPid:\t2849\nPPid:\t2831\nTracerPid:\t2859\nUid:\t1000\t1000\t1000\t1000\nGid:\t1000\t1000\t1000\t1000\nFDSize:\t64\nGroups:\t4 24 27 30 46 108 124 1000 \nVmPeak:\t  186464 kB\nVmSize:\t  183912 kB\nVmLck:\t       0 kB\nVmPin:\t    "..., 1024) = 836
close(19)                               = 0
--- SIGABRT (Aborted) @ 0 (0) ---

Same as elsewhere in this bug.

I stumbled on a lua panic while mucking with this. Steps to reproduce:

  1. Choose 'Find Multiplayer Game' from the left-hand menu.
  2. Choose 'Back to Main Menu'
  3. Click the gamepad button to mount/unmount resources
  4. Observe white screen.
  5. Bring up console and note console [HTML} spew. 'UncaughtReferenceError:AddServer is not defined'
  6. Do menu_reload in console.
  7. Observe lua panic message. 'attempt to index a nil value'

Ubuntu 13.04 Garry's Mod 13.06.20 (Dev)

gmod_lua_panic

@portaloffreedom

This comment has been minimized.

Copy link

commented Jul 5, 2013

Me too experiencing this bug.
http://img843.imageshack.us/img843/2138/vft.png
It freezes when the TF2 (the only game I can mount) checkbox should appear.

I'm using ArchLinux on x64

@mcl21014

This comment has been minimized.

Copy link

commented Jul 13, 2013

Well, I don't know if it's the same bug but my Gmod screen goes completely white after clicking the white gamepad in the bottom right corner of the screen. Very irritating.

@mmirate

This comment has been minimized.

Copy link

commented Jul 17, 2013

@mcl21014 That gamepad is the button for the mounted games list; so, yes, that is the same bug.

@auggy

This comment has been minimized.

Copy link

commented Jul 19, 2013

I get this too. Xubuntu 12.04 32 bit

@torincb

This comment has been minimized.

Copy link

commented Jul 23, 2013

Exact same thing here. Arch Linux 64-bit.

@AshleighAdams

This comment has been minimized.

Copy link

commented Jul 28, 2013

Same on Debian Sid, 64-bit.

http://www.youtube.com/watch?v=cm5aZFam5-k (shows the player count menu doing it too).

@a1batross

This comment has been minimized.

Copy link

commented Jul 30, 2013

Any solutions?

@NCSwitch

This comment has been minimized.

Copy link

commented Jul 31, 2013

Soooooo, hey! Have you guys giving up? I mean, it doesn't even have nothing to do with the actual mounting of games if I understand it right? It has to do with some third party drawing call or something, so can't we have a work around, say manualy mount games in a txt file?

Or something? I'm getting old here

@NCSwitch

This comment has been minimized.

Copy link

commented Jul 31, 2013

Also, I got that awesomium beta native for linux, 1.7.0b http://awesomium.com/download/ ain't that what we are waiting for?

@auggy

This comment has been minimized.

Copy link

commented Aug 2, 2013

If you can't add configuring mounts in a text file, can you have It auto mount the rest of the Source games? It somehow mounts HL, CSS, and TF2 without going into that menu. Anyway... If this menu did work, where would Awesomium store the settings?

@343V

This comment has been minimized.

Copy link

commented Aug 9, 2013

same on ubuntu 13.04

@Simon311

This comment has been minimized.

Copy link

commented May 9, 2015

Good to know it is getting fixed soon :)

@toxxik

This comment has been minimized.

Copy link

commented May 9, 2015

@jackwilsdon Do you know when the issue is going to be fixed?

@Xalalau

This comment has been minimized.

Copy link

commented Jun 5, 2015

So here we are... 1.7.5 was already lauched for OSX ... 2015, June... Any news?

@Bo98

This comment has been minimized.

Copy link

commented Jun 5, 2015

Very little happened last month as the last GMod update was about ready to ship. This finally happened on June 1st. That is why it wasn't looked at last month. No idea of the plans going forward though.

@Pernath

This comment has been minimized.

Copy link

commented Jun 29, 2015

For the people who are still interested in a temporary solution to the multiplayer freeze in GMod.
Scroll down in control.NewGame.js (usually located in /home/user/.steam/steam/steamapps/common/GarrysMod/garrysmod/html/js/menu/) near the line 130 (something), inside the curly braces of $scope.StartGame = function() { ... } and replace the second parameter of the RunConsoleCommand( ) function call:
lua.Run( 'RunConsoleCommand( "maxplayers", "'+yourVariable+'" )' ), where yourVariable holds the number of players. It would look something like this var yourVariable = 4;, or any other integer (positive) number you might need for your server. Remember to place the variable line inside the curly braces of the main function I mentioned and, of course, not after the edited line. Finally repeat the change inside this function call inside the main function: setTimeout( function() { ... }, 200 );, where you will find the same line to edit as before with your preferences. Save the changes, and restart GMod. By the time you start a SinglePlayer game it should now allow 3 more players if you chose number four as the value of your variable in the JavaScript file. No need to use the boxes that freezes the game.
Hope it works for you, it did for me.
Ps. Wooo, this thread is really old.

@meepen

This comment has been minimized.

Copy link

commented Jul 24, 2015

appears to be related to ng-click

@meepen

This comment has been minimized.

@CrypticScyther

This comment has been minimized.

Copy link

commented Aug 4, 2015

i still have this problem also on ElementaryOS Freya linux

@therealfarfetchd

This comment has been minimized.

Copy link

commented Aug 12, 2015

Yep, same problem. Arch Linux x64, latest dev version of gmod
As soon as I scroll down to games I have it freezes,

@ghost

This comment has been minimized.

Copy link

commented Aug 16, 2015

Same here. Fedora 22 x64

@MaxKotlan

This comment has been minimized.

Copy link

commented Sep 3, 2015

same here on ubuntu 15.04. Sad to see this isn't resolved yet.

@QuantumSlag

This comment has been minimized.

Copy link

commented Sep 9, 2015

Christ. I would expect it to be resolved by now. Dose anybody know a way to manually mount them. I’m not sure if you noticed but if i have no source games downloaded it doesn’t crash. And if a source game is installed it doesn’t crash unless you scroll down to it.

@portaloffreedom

This comment has been minimized.

Copy link

commented Sep 9, 2015

Maybe is possible to just update the webkit library inside the folder to
the newest version and it should work. The library is called libawesonium.
Update us if this works

@Bo98

This comment has been minimized.

Copy link

commented Oct 2, 2015

Can someone test the dev branch and see if it works? It should have Awesomium 1.7.5.1 now.

@robotboy655

This comment has been minimized.

Copy link
Contributor

commented Oct 2, 2015

Pretty sure it's fixed. ( I have been told )

@robotboy655 robotboy655 closed this Oct 2, 2015

@sonnydog830

This comment has been minimized.

Copy link

commented Oct 25, 2015

@mmirate
can you show me the whole lua.js(just copy paste) sorry it broke my game before that DX

@coreybruce

This comment has been minimized.

Copy link

commented Nov 2, 2015

Thanks for the fix but I have one issue with it which is after applying the patch the map images on the menu when selecting a map are all set to the grey image when a map has no screenshot and removes the map names so you cannot tell what map is what also the workshop button no longer works but I can just press shift tap and open browser and access the workshop webpage and get multiple tabs instead of being stuck on one when I need more so that's not a huge deal.

EDIT I think from testing I have done it is newgame.html coursing the freezing when selecting to do multiplayer game, I have fixed the icon bug now I need to fix the map name text and hopefully the workshop bug.

@julo42

This comment has been minimized.

Copy link

commented Nov 2, 2015

Hi Gameslayer,

I fixed the grey map bug and cleaned up the html.zip workaround. It's way simpler now. I attached the new html.zip, but I had to rename it to html.zip.png for github to let me attach it.

Enjoy!

html zip

@coreybruce

This comment has been minimized.

Copy link

commented Nov 3, 2015

the image link is broken and where is the link to the zip?

@julo42

This comment has been minimized.

Copy link

commented Nov 3, 2015

Actually, the image is fake: it is the zip renamed as a png. So, to download it, just right-click on the image link and "save link target as...". Then name the file "html.zip".

@julo42

This comment has been minimized.

Copy link

commented Nov 3, 2015

OK, even simpler: just get it from there: http://julien.olivier.free.fr/html.zip

@coreybruce

This comment has been minimized.

Copy link

commented Nov 3, 2015

The one you did broke my menu so I will try the other one you suggested, thanks anyways.

@slice

This comment has been minimized.

Copy link

commented Nov 21, 2015

This is still not fixed for me.

@Bo98

This comment has been minimized.

Copy link

commented Nov 21, 2015

It's only fixed on the dev branch because the update hasn't been released yet.

@slice

This comment has been minimized.

Copy link

commented Dec 5, 2015

Ah, okay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.