Unable to encrypt

98 views
Skip to first unread message

Jason Suttles

unread,
Dec 18, 2024, 2:13:56 PM12/18/24
to Chromium-dev
I get this error when running an nwjs (chromium-based) application as a Windows service. It seems to cause a crash which doesn't fully kill the application.
[9416:3580:1218/103717.913:ERROR:app_bound_encryption_provider_win.cc(81)] Unable to encrypt key. Result: Class not registered (0x80040154) GetLastError: 31
Any insight would be very helpful.






Will Harris

unread,
Dec 18, 2024, 2:39:26 PM12/18/24
to ja...@medicom.us, Chromium-dev
It appears nwjs is returning true to IsSystemInstall() but this does not seem like a normal system-level install, as it sounds like the service has not been installed. nwjs should create a InstallMode different from Chromium and put that in e.g. `chrome/install_static/chromium_install_modes.cc` or similar location, and signal that system level is not supported by flipping `.supports_system_level` to `false`.

This ERROR should not be causing a crash though, it's just failing to initialize app-bound encryption. Your crash is likely coming from somewhere else.

Will

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/b7ab6eec-71ff-4f11-9cc5-c92e227291efn%40chromium.org.

Will Harris

unread,
Dec 18, 2024, 4:25:38 PM12/18/24
to Jason Suttles, Chromium-dev
Perhaps you could consider running nwjs under a debugger and seeing where it crashes? There's some handy hints on doing this here -> https://www.chromium.org/developers/how-tos/debugging-on-windows/

Will

On Wed, Dec 18, 2024 at 1:18 PM Jason Suttles <ja...@medicom.us> wrote:
Thanks for the investigation. Is there anything else in the area that might help? This is the only log that seems to happen at the same time and does not occur independently of this "crash". 
Is this in any way related to localStorage?
Would this possibly be related to some kind of lack of resource error?

Jason Suttles

unread,
Dec 18, 2024, 5:49:50 PM12/18/24
to Chromium-dev, Will Harris, Chromium-dev, ja...@medicom.us
Thanks for the investigation. Is there anything else in the area that might help? This is the only log that seems to happen at the same time and does not occur independently of this "crash". 
Is this in any way related to localStorage?
Would this possibly be related to some kind of lack of resource error?
On Wednesday, December 18, 2024 at 2:39:26 PM UTC-5 Will Harris wrote:
Reply all
Reply to author
Forward
0 new messages