sandboxie-plus / Sandboxie

Sandboxie Plus & Classic
https://Sandboxie-Plus.com
GNU General Public License v3.0
13.95k stars 1.55k forks source link

Can't open Typora #310

Closed silvestron closed 3 years ago

silvestron commented 3 years ago

The same issue reported in #215 is still present in v5.45.2 even though it is labeled as fixed in the next built.

DavidXanatos commented 3 years ago

When I was testing it I could install and open Typora in a sandbox on windows 20H2 please post your sandboxie ini and a log from the resource monitor using the latest build Also please try if it makes a difference where Typora is installed in our out side the box.

silvestron commented 3 years ago

Typora is installed inside its own sandbox but I just tried to launch VS Code which is installed outside the sandbox and it has the same issue. Still, not all electron apps seem to have the problem. I was able to successfully launch Mark Text, which is another app similar to Typora in terms of functionality.

However I'm running Windows 10 1909, I haven't upgraded to 20H2 yet.

Here's my sandvoxie.ini, I've edited out the settings of the other sandboxes:

[GlobalSettings]

ActivationPrompt=n
AutoRecover=n
BlockNetworkFiles=y
BorderColor=#00FFFF,off
BoxNameTitle=y
ClosedFilePath=C:\Program*\brave.exe
ClosedFilePath=C:\Program*\chrome.exe
ClosedFilePath=C:\Program*\firefox.exe
ClosedFilePath=C:\Program*\iexplore.exe
FileRootPath=C:\Sandboxie\%SANDBOX%
NotifyInternetAccessDenied=y
NotifyStartRunAccessDenied=y
Template=Windows10CoreUI
Template=FireFix_for_Win7
Template=WindowsRasMan
Template=WindowsLive
Template=OfficeLicensing
Template=7zipShellEx
Template=AutoRecoverIgnore
Template=BlockPorts
Template=LingerPrograms
Template=WindowsDefender

[Notes]

Enabled=y
ConfigLevel=7
CopyLimitKb=100000
DropAdminRights=y
NeverDelete=y

Here's the resource monitor log. By the way, as soon as I clicked on copy content to clipboard and close window I got a SBIE2301 message, and the message had no actual text, just the code.

MarcelFine commented 3 years ago

Starting VS Code with "code.exe --disable-gpu" solved the issue for me.

silvestron commented 3 years ago

I just tested it and can confirm that worked with Typora too.

Regarding the issue itself, I upgraded to Windows 20H2 and the problem is still persistent. The bug has been introduced in version 5.45.0 (if not earlier, I might have missed some updates) because this problem wasn't present before.

DavidXanatos commented 3 years ago

could you please test with which build the issue was introduced exactly

silvestron commented 3 years ago

I tested a bunch of builds, these are the results:

DavidXanatos commented 3 years ago

I don't get it why it does not fail for me, could you try the plus UI and send me the resource access log from there, there its mroe verbose also send the message log in case there were any.

Also can you zip and upload the exact typora instalation you have someware I tested with version 0.9.98.0

silvestron commented 3 years ago

I am using version 0.9.96, however I just tried 0.9.98 in a new sandbox and it has the same issue.

I was thinking, since disabling GPU acceleration seems to circumvent the problem, could the the issue be related to hardware or graphics drivers? I am using Intel integrated graphics, according to Intel ARK, Intel HD Graphics 630.

DavidXanatos commented 3 years ago

I was thinking, since disabling GPU acceleration seems to circumvent the problem, could the the issue be related to hardware or graphics drivers? I am using Intel integrated graphics, according to Intel ARK, Intel HD Graphics 630.

Possibly... I ever only tested it in a VM which may not have all the fancy acceleration features a real system has, I'll test it on my host machine lets see if that changes anything.

DavidXanatos commented 3 years ago

could you pelase try the workaround in https://github.com/sandboxie-plus/Sandboxie/issues/440 does it help here to?

silvestron commented 3 years ago

I tried it and with hardware acceleration enabled the transparent/empty window issue is still there. However when I tried Typora with hardware acceleration disabled I saw some improvements. Launching the app was very fast. Without OpenWinClass=# the app used to be a little slow, either at launch or during use.