SyncTrayzor icon indicating copy to clipboard operation
SyncTrayzor copied to clipboard

SyncTrayzor silently died after starting in Windows 11

Open nengxu opened this issue 3 years ago • 3 comments

SyncTrayzor 1.1.29 with Syncthing 1.18.5 running in portable mode.

I installed a customized Windows 11. SyncTrayzor worked fine for a while. Today I removed many fonts. Now when I start SyncTrayzor, its icon seems to be busy for short time. Then nothing come out. Neither SyncTrayzor.exe or syncthing.exe is running. I cleared all related log and tried again. Only SyncTrayzor.log has this:

2022-01-05 21:00:51.5702 #1520 [Info] SyncTrayzor.Bootstrapper: SyncTrazor version 1.1.29.0 (Amd64) started at D:\green\SyncTrayzorPortable\SyncTrayzor.exe (.NET version: Unknown (528449)) 2022-01-05 21:00:51.6483 #1520 [Debug] SyncTrayzor.Services.Config.ApplicationPathsProvider: LogFilePath: D:\green\SyncTrayzorPortable\logs 2022-01-05 21:00:51.6483 #1520 [Debug] SyncTrayzor.Services.Config.ApplicationPathsProvider: SyncthingBackupPath: D:\green\SyncTrayzorPortable\syncthing.exe 2022-01-05 21:00:51.6483 #1520 [Debug] SyncTrayzor.Services.Config.ApplicationPathsProvider: ConfigurationFilePath: D:\green\SyncTrayzorPortable\data\config.xml 2022-01-05 21:00:51.6483 #1520 [Debug] SyncTrayzor.Services.Config.ApplicationPathsProvider: ConfigurationFileBackupPath: D:\green\SyncTrayzorPortable\data\config-backups 2022-01-05 21:00:51.6483 #1520 [Debug] SyncTrayzor.Services.Config.ApplicationPathsProvider: CefCachePath: D:\green\SyncTrayzorPortable\data\cef\cache 2022-01-05 21:00:51.6639 #1520 [Debug] SyncTrayzor.Services.Config.ApplicationPathsProvider: DefaultSyncthingPath: D:\green\SyncTrayzorPortable\data\syncthing.exe 2022-01-05 21:00:51.6639 #1520 [Debug] SyncTrayzor.Services.Config.ApplicationPathsProvider: DefaultSyncthingHomePath: D:\green\SyncTrayzorPortable\data\syncthing 2022-01-05 21:00:51.6639 #1520 [Debug] SyncTrayzor.Services.Ipc.IpcCommsClientFactory: Checking for other SyncTrayzor processes 2022-01-05 21:00:51.6639 #1520 [Debug] SyncTrayzor.Services.Ipc.IpcCommsClientFactory: Did not find any other processes, or they all responded with an error 2022-01-05 21:00:51.6952 #1520 [Info] SyncTrayzor.Services.Config.ConfigurationProvider: Loaded default configuration: <Configuration ShowTrayIconOnlyOnClose=False MinimizeToTray=False CloseToTray=True ShowDeviceConnectivityBalloons=False ShowDeviceOrFolderRejectedBalloons=True SyncthingAddress=localhost:8384 StartSyncthingAutomatically=True SyncthingCommandLineFlags=[] SyncthingEnvironmentalVariables=[] SyncthingDenyUpgrade=False SyncthingPriorityLevel=Normal Folders=[] NotifyOfNewVersions=True LatestNotifiedVersion= ObfuscateDeviceIDs=True UseComputerCulture=True SyncthingConsoleHeight=100 WindowPlacement= SyncthingWebBrowserZoomLevel=0 LastSeenInstallCount=0 SyncthingCustomPath= SyncthingCustomHomePath= ShowSynchronizedBalloonEvenIfNothingDownloaded=False DisableHardwareRendering=False HideIntelXeWarningMessage=False EnableFailedTransferAlerts=True EnableConflictFileMonitoring=True ConflictResolverDeletesToRecycleBin=True PauseDevicesOnMeteredNetworks=True HaveDonated=False IconAnimationMode=DataTransferring OpenFolderCommand=explorer.exe "{0}" ShowFileInFolderCommand=explorer.exe /select, "{0}"LogLevel=Info> 2022-01-05 21:00:51.7264 #1520 [Debug] SyncTrayzor.Services.Config.ConfigurationProvider: Found existing configuration at D:\green\SyncTrayzorPortable\data\config.xml 2022-01-05 21:00:51.8380 #1520 [Debug] SyncTrayzor.Services.AutostartProvider: Have read/write access to the registry 2022-01-05 21:00:52.9735 #1520 [Debug] SyncTrayzor.Services.Conflicts.ConflictFileWatcher: Refreshing conflicted files. Found 0 from 0 options

As I just changed fonts, so my guess is SyncTrayzor is depending on certain fonts or icons. Or it depends on certain version of .NET? Of course, @canton7 you are the expert.

nengxu avatar Jan 06 '22 05:01 nengxu

Something must have killed it hard. Open the Event Viewer -> Windows Logs -> Application, and look for Error entries. There are normally 2 for a .NET application crash.

canton7 avatar Jan 06 '22 08:01 canton7

I have not used Event Viewer. On a normal computer, I can't find the Error entries. On the failer computer, the windows search crashed. So it seems that my font change affected other things too.

nengxu avatar Jan 06 '22 18:01 nengxu

After further investigation, SyncTrayzor seems to have the font Consolas hard coded. The FontSubstitutes mechanism of Windows is not obeyed. Could you please modify this behavior so when a font is not found, it will be replaced by font specified in Windows registry?

nengxu avatar Jan 08 '22 05:01 nengxu