protonscr

steamwebhelper: TypeError: Cannot read properties of undefined (reading 'RegisterForComputerActiveStateChange')

steamclosed Steam clientDistro Family: DebianWeb Component
ValveSoftware/steam-for-linux#10813 · opened 2024-04-22 by ipr · updated 2025-07-28 · 18 comments · github
Iipr 2024-04-22 github

Your system information

  • Steam client version (build number or date): Steam beta 1713317598 Client build date 17.4., Web build date 15.4., also in stable version
  • Distribution (e.g. Ubuntu): Debian
  • Opted into Steam client beta?: Yes (also in stable)
  • Have you checked for system updates?: Yes
  • Steam Logs: [generate by running this command in a terminal tar -zcvf ~/Desktop/steam-logs.tar.gz ~/.steam/steam/logs]
  • GPU: AMD

Please describe your issue in as much detail as possible:

Steamwebhelper crashes during starting Steam-client. This happens only on first time, after exiting client and starting again crash does not occur. (Dialog window about crash).

In the steamwebhelper.log you can find following line that is not there when starting successfully:

[0421/032815.223212:INFO:CONSOLE(1)] "Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'RegisterForComputerActiveStateChange')", source: https://steamloopback.host/libraries/libraries~2dcc5aaf7.js?contenthash=70f7a0ba36a9cc2fc8ba (1)

Soon after TypeError line there are further errors which might be caused by it:

[0421/032833.419463:WARNING:connection.cc(41)] X error received.  Request: Shm::PutImageRequest, Error: DrawableError{.sequence = 1184, .bad_value = 31457287, .minor_opcode = 3, .major_opcode = 130}
[0421/032833.421516:WARNING:connection.cc(41)] X error received.  Request: SendEventRequest, Error: WindowError{.sequence = 2278, .bad_value = 31457339, .minor_opcode = 0, .major_opcode = 25}

Steps for reproducing this issue:

  1. Reboot computer
  2. Start Steam-client
  3. Observe crash dialog

steamwebhelper.log

Logs from stable:
steamwebhelper.log-stable.txt

Iipr 2024-04-28 github

Another bit from system logs that might be related (since TypeError points to a script):

huhti 28 12:24:40 Amaranthea plasmashell[9502]: src/steamUI/steamuisharedjscontroller.cpp (545) : Failed creating offscreen shared JS context
huhti 28 12:24:40 Amaranthea plasmashell[9502]: src/steamUI/steamuisharedjscontroller.cpp (545) : Failed creating offscreen shared JS context
Iipr 2024-04-28 github

Logs from current beta version:
Steam Beta Branch: Steam Beta Update
Steam Version: 1714160074
Steam Client Build Date: Fri, Apr 26 22:10 UTC -08:00
Steam Web Build Date: Fri, Apr 26 22:13 UTC -08:00
Steam API Version: SteamClient021

cef_log.txt

steamwebhelper.log

Iipr 2024-05-07 github

Problem still there, no change.

Steam Beta Branch: Steam Beta Update
Steam Version: 1714854927
Steam Client Build Date: Sat, May 4 02:11 UTC -08:00
Steam Web Build Date: Sat, May 4 23:14 UTC -08:00
Steam API Version: SteamClient021

Iipr 2024-06-01 github

Is there a way to determine/force which runtime Steam client is using? (soldier/sniper.. etc.) I noticed that the launcher will try to start something in parallel (steam-runtime-launcher-service --alongside-steam) so if there is difference in initialization that would certainly lead to observed crashes.

Iipr 2024-06-16 github

interesting: first time in a long while starting Steam did not crash the steamwebhelper.

There was upgrade to libc6 and some other components which I don't belive matters here.

One other thing is that I started one program that uses XWayland (old version of Firefox) before starting Steam, so possibly that caused loading things earlier so that client does not have to wait for it to be loaded.

Current version of Steam client:
Steam Beta Branch: Stable Client
Steam Version: 1718305227
Steam Client Build Date: Thu, Jun 13 21:39 UTC -08:00
Steam Web Build Date: Thu, Jun 13 19:50 UTC -08:00
Steam API Version: SteamClient021

Iipr 2024-06-18 github

Addition to previous: Steam still crashes if I don't start something else first.

Steam Beta Branch: Stable Client
Steam Version: 1718305227
Steam Client Build Date: Thu, Jun 13 21:39 UTC -08:00
Steam Web Build Date: Thu, Jun 13 19:50 UTC -08:00
Steam API Version: SteamClient021

Iipr 2024-06-27 github

And even that workaround has stopped working and I'm getting the crash again regardless of it.

Steam Beta Branch: Stable Client
Steam Version: 1718904662
Steam Client Build Date: Thu, Jun 20 20:14 UTC -08:00
Steam Web Build Date: Thu, Jun 20 03:04 UTC -08:00
Steam API Version: SteamClient021

Iipr 2024-07-17 github

Problem still exists with new beta.

Steam Beta Branch: Steam Beta Update
Steam Version: 1721173529
Steam Client Build Date: Wed, Jul 17 02:16 UTC -08:00
Steam Web Build Date: Wed, Jul 17 00:10 UTC -08:00
Steam API Version: SteamClient021

webhelper-linux.txt
cef_log.txt
webhelper.txt

Iipr 2024-07-17 github

Interesting parts in the logs:

[2024-07-17 16:22:46] SharedJSContext-'SharedJSCo': ERROR: https://steamloopback.host/chunk~2dcc5aaf7.js?contenthash=ade57050917176487885:1: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'GetSignIntoFriendsOnStart')
...
[2024-07-17 16:22:57] SharedJSContext-'SharedJSCo': ERROR: https://steamloopback.host/chunk~2dcc5aaf7.js?contenthash=ade57050917176487885:1: SteamApp Init - After Login - Stage 1 - FriendsChatStore - Startup - ERROR Error: WHEN_TIMEOUT
[2024-07-17 16:22:57] SharedJSContext-'SharedJSCo': ERROR: https://steamloopback.host/chunk~2dcc5aaf7.js?contenthash=ade57050917176487885:1: SteamApp Init - After Login - Friend Store - FriendStore - ERROR TypeError: Cannot read properties of undefined (reading 'AddPersonaStateChangedCallback')

Also:

[0615/051000.695190:INFO:CONSOLE(1)] "Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'GetPlayer')", source: https://steamloopback.host/chunk~2dcc5aaf7.js?contenthash=cac462073ffc47be1c98 (1)

The option "Sign in to friends when Steam starts" is NOT selected in Steam settings yet client seems to expect it is?

Iipr 2024-08-15 github

Still crashing on start.

Steam Beta Branch: Steam Beta Update
Steam Version: 1723601482
Steam Client Build Date: Wed, Aug 14 04:51 UTC -08:00
Steam Web Build Date: Tue, Aug 13 23:35 UTC -08:00
Steam API Version: SteamClient021

Changelog said something about fixen one crash but obviously did not fix this one.

cef_log.txt
webhelper.txt
webhelper-linux.txt

Iipr 2024-08-15 github

Some error messages from log:

[2024-08-15 03:48:10] SP Shared JS Context-'SharedJSCo': ERROR: https://steamloopback.host/chunk~2dcc5aaf7.js?contenthash=092e95310aaeebc99634:1: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'GetSignIntoFriendsOnStart')
[2024-08-15 03:48:21] SP Shared JS Context-'SharedJSCo': ERROR: https://steamloopback.host/chunk~2dcc5aaf7.js?contenthash=092e95310aaeebc99634:1: SteamApp Init - After Login - Stage 1 - FriendsChatStore - Startup - ERROR Error: WHEN_TIMEOUT
[2024-08-15 03:48:21] SP Shared JS Context-'SharedJSCo': ERROR: https://steamloopback.host/chunk~2dcc5aaf7.js?contenthash=092e95310aaeebc99634:1: SteamApp Init - After Login - Friend Store - FriendStore - ERROR TypeError: Cannot read properties of undefined (reading 'AddPersonaStateChangedCallback')
[2024-08-15 03:48:22] SP Shared JS Context-'SharedJSCo': ERROR: https://steamloopback.host/chunk~2dcc5aaf7.js?contenthash=092e95310aaeebc99634:1: TypeError: Cannot read properties of undefined (reading 'GetPlayer')
[2024-08-15 03:48:22] SP Shared JS Context-'SharedJSCo': ERROR: https://steamloopback.host/chunk~2dcc5aaf7.js?contenthash=092e95310aaeebc99634:1: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'GetPlayer')

Something about javascript context not working, so initialization order is not correct?

Iipr 2024-08-17 github

So I bit the bullet, completely wiped out old Steam install (in case something was left over from past versions and causing problem). I even started Steam without yet adding games library to it. And it still crashes on start.

Steam Beta Branch: Stable Client
Steam Version: 1721173382
Steam Client Build Date: Wed, Jul 17 2:22 AM UTC -08:00
Steam Web Build Date: Mon, Jun 24 10:16 PM UTC -08:00
Steam API Version: SteamClient021

steamlogs-20240817.tar.gz

Iipr 2024-08-17 github

Same crash with current beta without games yet installed.

Steam Beta Branch: Steam Beta Update
Steam Version: 1723685248
Steam Client Build Date: Thu, Aug 15 3:57 AM UTC -08:00
Steam Web Build Date: Tue, Aug 13 11:35 PM UTC -08:00
Steam API Version: SteamClient021

steamlogs-20240817-beta.tar.gz

Iipr 2024-08-17 github

Parts from log:
``
[2024-08-17 05:39:02] SharedJSContext-'SharedJSCo': ERROR: https://steamloopback.host/chunk~2dcc5aaf7.js?contenthash=092e95310aaeebc99634:1: SteamApp Init - After Login - Stage 1 - FriendsChatStore - Startup - ERROR Error: WHEN_TIMEOUT
[2024-08-17 05:39:02] SharedJSContext-'SharedJSCo': ERROR: https://steamloopback.host/chunk~2dcc5aaf7.js?contenthash=092e95310aaeebc99634:1: SteamApp Init - After Login - Friend Store - FriendStore - ERROR TypeError: Cannot read properties of undefined (reading 'AddPersonaStateChangedCallback')
[2024-08-17 05:39:03] SharedJSContext-'SharedJSCo': ERROR: https://steamloopback.host/chunk~2dcc5aaf7.js?contenthash=092e95310aaeebc99634:1: TypeError: Cannot read properties of undefined (reading 'GetPlayer')

Iipr 2025-03-05 github

Just to say that problem is still there..

Steam Beta Branch: Stable Client
Steam Version: 1738026274
Steam Client Build Date: Tue, Jan 28 02:50 UTC -08:00
Steam Web Build Date: Tue, Jan 28 02:44 UTC -08:00
Steam API Version: SteamClient021

Iipr 2025-03-12 github

Good news! Latest stable version has started succesfully!

Steam Beta Branch: Stable Client
Steam Version: 1741737356
Steam Client Build Date: Tue, Mar 11 22:39 UTC -08:00
Steam Web Build Date: Wed, Mar 12 01:45 UTC -08:00
Steam API Version: SteamClient021

Let's hope this continues to be the case.

Edit: Nope. False hope. Still crashes. Odd fluke that one time then..

Iipr 2025-04-29 github

Ok, finally started succesfully first time.

Steam Beta Branch: Stable Client
Steam Version: 1745876290
Steam Client Build Date: Tue, Apr 29 00:09 UTC -08:00
Steam Web Build Date: Sat, Apr 26 00:04 UTC -08:00
Steam API Version: SteamClient022

Looks like the increased timeout (mentioned in patch notes) is enough.

Iipr 2025-07-28 github

Update: there is now another problem during starting that is described in #9164

Nothing extracted yet.