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

Discord fails to open after installing in a standard sandbox and exiting Discord once (+ConsoleInit error at install) #2881

Open
axolul opened this issue May 2, 2023 · 2 comments
Labels
Confirmation pending Further confirmation is requested

Comments

@axolul
Copy link

axolul commented May 2, 2023

Describe what you noticed and did

Installation of latest DiscordSetup.exe inside a Standard Isolation Sandbox (through sandboxed Windows Explorer) works and Discord installs itself succesfully. During the installation, two error messages appear: "gpu_encored_helper.exe: SBIE2205 Service not implemented: ConsoleInit (C0000D4)". I don't know if this is relevant to the main problem. Picture attached:

discord_sandboxie_install_error

After installation, Discord opens itself automatically for the first time succesfully. After exiting Discord completely through the tray icon (confirmed through Sandboxie that all Discord processes are closed), any opening of the Discord application fails after like a second from clicking. Discord updater window shows and the updater process shows in the Sandboxie view. Then the updater window exits abruptly and updater processes close themselves.

Discord can't therefore open itself after exiting at least once, while installed completely inside the Standard Isolation Sandbox. Sandboxie blocks something during the opening update check of Discord.

I disabled Discord's hardware accelleration during the first open after install, but it doesn't seem to be the culprit. Discord's dll injection for screen sharing was also disabled before first exit.

This initially started with an established Discord installation, which probably means either something in the Discord Updater, or Sandboxie, changed recently (last month or so).

I also tried to switch to virtualization scheme v2, but it didn't help.

Trace log URL authentication:
username: troubleshooter
password: 8vuL82tZgzG4o5MfdXmn6xMNfN

How often did you encounter it so far?

Discord fails to open every time after the first exit of Discord.

Affected program

Discord Windows Desktop app, latest

Download link

https://discord.com/api/downloads/distributions/app/installers/latest?channel=stable&platform=win&arch=x86

Where is the program located?

The program is installed only inside a sandbox (NOT in the real system anyway).

Expected behavior

Discord should open normally after the first exit of Discord.

What is your Windows edition and version?

Windows 10 Pro 22H2 64-bit

In which Windows account you have this problem?

A local or Microsoft account without special changes.

Please mention any installed security software

Eset NOD32 Antivirus, Windows Firewall

What version of Sandboxie are you running?

Sandboxie Plus 1.9.2 64-bit

Is it a new installation of Sandboxie?

I recently did a new clean installation.

Is it a regression?

Bug appears in multiple versions.

In which sandbox type you have this problem?

In a standard isolation sandbox (yellow sandbox icon).

Can you reproduce this problem on a new empty sandbox?

I can confirm it also on a new empty sandbox.

Did you previously enable some security policy settings outside Sandboxie?

No relevant security policies are enabled.

Crash dump

No response

Trace log

https://axolul.kapsi.fi/tracelogsforsandboxie/

Sandboxie.ini configuration

#
# Sandboxie configuration file
#

[GlobalSettings]
NetworkEnableWFP=y
FileRootPath=\??\%SystemDrive%\Sandbox\%USER%\%SANDBOX%
KeyRootPath=\REGISTRY\USER\Sandbox_%USER%_%SANDBOX%
IpcRootPath=\Sandbox\%USER%\%SANDBOX%\Session_%SESSION%
Template=WindowsRasMan
Template=WindowsLive
Template=OfficeLicensing
Template=NOD32
Template=Edge_Fix
Template=7zipShellEx
DefaultBox=DefaultBox

[UserSettings_1D94034E]
SbieCtrl_AutoStartAgent=SandMan.exe
SbieCtrl_EnableAutoStart=y

[DefaultBox]
Enabled=y
BlockNetworkFiles=y
RecoverFolder=%{374DE290-123F-4565-9164-39C4925E467B}%
RecoverFolder=%Personal%
RecoverFolder=%Desktop%
BorderColor=#00FFFF,ttl
Template=OpenBluetooth
Template=SkipHook
Template=FileCopy
Template=qWave
Template=BlockPorts
Template=LingerPrograms
Template=AutoRecoverIgnore
ConfigLevel=10

[UserSettings_085401A3]
SbieCtrl_AutoStartAgent=SandMan.exe
SbieCtrl_EnableAutoStart=y
BoxGrouping=:DefaultBox,Firefox,Discord

[Firefox]
Enabled=y
BlockNetworkFiles=y
RecoverFolder=%{374DE290-123F-4565-9164-39C4925E467B}%
RecoverFolder=%Personal%
RecoverFolder=%Desktop%
BorderColor=#0077ff,off,6
Template=OpenBluetooth
Template=SkipHook
Template=FileCopy
Template=qWave
Template=BlockPorts
Template=LingerPrograms
Template=AutoRecoverIgnore
ConfigLevel=10
AutoRecover=y
UseSecurityMode=y
BoxNameTitle=n
CopyLimitKb=-1
AllowNetworkAccess=<BlockNetAccess>,n
ClosedFilePath=<BlockNetDevices>,InternetAccessDevices
DropAdminRights=y
FakeAdminRights=n
ForceFolder=C:\Program Files\Mozilla Firefox

[Discord]
Enabled=y
BlockNetworkFiles=y
RecoverFolder=%{374DE290-123F-4565-9164-39C4925E467B}%
RecoverFolder=%Personal%
RecoverFolder=%Desktop%
BorderColor=#02f6f6,off,6
Template=OpenBluetooth
Template=SkipHook
Template=FileCopy
Template=qWave
Template=BlockPorts
Template=LingerPrograms
Template=AutoRecoverIgnore
ConfigLevel=10
AutoRecover=y
BoxNameTitle=n
CopyLimitKb=-1
ClosePrintSpooler=y
UseFileDeleteV2=y
UseRegDeleteV2=y
@axolul axolul added the Confirmation pending Further confirmation is requested label May 2, 2023
@J-Wildfire-T
Copy link

I have been using a discord portable in Sandboxie-Plus for almost a year now without issue.
https://portapps.io/app/discord-portable/

I use a standard isolation box with these settings

Enabled=y
BorderColor=#00ffff,off,1
Template=SkipHook
Template=BlockPorts
Template=LingerPrograms
BoxNameTitle=n
CopyLimitKb=51200
ClosePrintSpooler=y
BlockNetworkFiles=y
ConfigLevel=10
ShowForRunIn=n
ClosedFilePath=,InternetAccessDevices
DisableResourceMonitor=y
ClosedIpcPath=,*
CopyBlockDenyWrite=y

@axolul
Copy link
Author

axolul commented Nov 7, 2023

I have been using a discord portable in Sandboxie-Plus for almost a year now without issue. https://portapps.io/app/discord-portable/

I use a standard isolation box with these settings

Enabled=y BorderColor=#00ffff,off,1 Template=SkipHook Template=BlockPorts Template=LingerPrograms BoxNameTitle=n CopyLimitKb=51200 ClosePrintSpooler=y BlockNetworkFiles=y ConfigLevel=10 ShowForRunIn=n ClosedFilePath=,InternetAccessDevices DisableResourceMonitor=y ClosedIpcPath=,* CopyBlockDenyWrite=y

Thank you for the suggestion! However, this issue is related to the official, non-portable Discord version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Confirmation pending Further confirmation is requested
Projects
None yet
Development

No branches or pull requests

2 participants