{"record":{"id":"129533e9daf2fd66","repo":"rocksdanister/lively","slug":"oops-looks-like-something-went-wrong-in-orde","errorCode":null,"errorMessage":"Oops... Looks like something went wrong :(\nIn order to better understand this error and fix the issue, share the log file with the developer.\nInstructions for sharing log file:\nhttps://github.com/rocksdanister/lively/wiki","messagePattern":"Oops\\.\\.\\. Looks like something went wrong :\\(\nIn order to better understand this error and fix the issue, share the log file with the developer\\.\nInstructions for sharing log file:\nhttps://github\\.com/rocksdanister/lively/wiki","errorType":"exception","errorClass":"InvalidOperationException","httpStatus":null,"severity":"error","filePath":"src/Lively/Lively/Core/Wallpapers/ExtPrograms.cs","lineNumber":156,"sourceCode":"                */\n            }\n        }\n\n        public async Task ShowAsync()\n        {\n            if (process is null)\n                return;\n\n            try\n            {\n                process.Exited += Proc_Exited;\n                process.Start();\n                Pid = process.Id;\n                processWaitTask = process.WaitForProcessOrGameWindow(Category, timeOut, ctsProcessWait.Token, true);\n                this.Handle = await processWaitTask;\n                if (Handle.Equals(IntPtr.Zero))\n                {\n                    throw new InvalidOperationException(Properties.Resources.LivelyExceptionGeneral);\n                }\n                else\n                {\n                    //Program ready!\n                    //TaskView crash fix\n                    WindowUtil.BorderlessWinStyle(Handle);\n                    WindowUtil.RemoveWindowFromTaskbar(Handle);\n                }\n                Loaded?.Invoke(this, EventArgs.Empty);\n            }\n            catch (Exception)\n            {\n                Terminate();\n\n                throw;\n            }\n        }\n","sourceCodeStart":138,"sourceCodeEnd":174,"githubUrl":"https://github.com/rocksdanister/lively/blob/c1036feb664960722e34bf4309042c247d6a909d/src/Lively/Lively/Core/Wallpapers/ExtPrograms.cs#L138-L174","documentation":"Thrown by ExtPrograms (external-program wallpaper host) when the spawned process's window handle is IntPtr.Zero after WaitForProcessOrGameWindow times out — the process started but never produced a usable window. The message is the generic localized 'something went wrong, share logs' string.","triggerScenarios":"Launching an external-program wallpaper (e.g. a game/Unity/Godot bundle as wallpaper); process.Start() succeeds but no window handle appears within timeOut, so Handle stays zero and the throw fires.","commonSituations":"Required runtime missing (e.g. the program needs a specific .NET/VC++/Java); the program crashed silently on start; antivirus/EDR blocked window creation; the program is already running single-instance; timeout too short for a slow-loading app.","solutions":["Run the same external program standalone and confirm a window appears — fix crashes/missing runtimes there first.","Whitelist the program in antivirus/EDR and ensure it is not already running.","Increase timeOut if the program is legitimately slow to render its window.","Inspect the lively log (share link in the message) for the underlying process exit code."],"exampleFix":"// before\nif (Handle.Equals(IntPtr.Zero))\n    throw new InvalidOperationException(Properties.Resources.LivelyExceptionGeneral);\n\n// after — include the process name and exit code for diagnosability\nif (Handle.Equals(IntPtr.Zero))\n    throw new InvalidOperationException(\n        $\"{Properties.Resources.LivelyExceptionGeneral} (process={process.ProcessName}, exit={process.ExitCode})\");","handlingStrategy":"validation","validationCode":"// pre-flight: ensure the program runs standalone before assigning as wallpaper\nvar psi = new ProcessStartInfo(programPath) { UseShellExecute = false };\nusing var test = Process.Start(psi);\nif (test == null || test.WaitForExit(timeoutMs)) { /* do not use as wallpaper */ }","typeGuard":"static bool CanHostExternally(string programPath)\n    => File.Exists(programPath) && HasRequiredRuntime(programPath);","tryCatchPattern":"try { await wallpaper.StartAsync(); }\ncatch (InvalidOperationException ex) when (ex.Message == Properties.Resources.LivelyExceptionGeneral)\n{ Log.Error($\"External wallpaper '{programPath}' produced no window.\"); ShowErrorShareLogs(); }","preventionTips":["Verify required runtimes (VC++/.NET/Java) are installed before enabling external-program wallpapers.","Whitelist the program in antivirus/EDR.","Ensure the program is not already running single-instance."],"tags":["process","wallpaper-player","native","timeout","window-handle"],"backgroundTag":null,"analyzedSha":"c1036feb664960722e34bf4309042c247d6a909d","analyzedAt":"2026-08-13T13:03:12.648Z","schemaVersion":2},"datasetVersion":"2026-08-13T14:17:21.547Z"}