dank074 / Discord-video-stream

Experiment for making video streaming work for discord selfbots.
180 stars 32 forks source link

Failed to launch the browser process! #64

Closed Fede14it closed 7 months ago

Fede14it commented 7 months ago

I tryed to run the example puppeteer-stream but i receive an undefined error:

--- qualcuno133 is ready --- Attempting to join voice channel 8883753120129/8883753124659 C:\Sviluppo\DiscordStreamBot\node_modules\@puppeteer\browsers\lib\cjs\launch.js:262 reject(new Error([ ^

Error: Failed to launch the browser process! undefined [20460:45724:0211/132607.107:ERROR:chrome_browser_cloud_management_controller.cc(162)] Cloud management controller initialization aborted as CBCM is not enabled. [20460:45724:0211/132607.117:FATAL:chrome_content_browser_client.cc(2903)] "whitelisted-extension-id" switch is deprecated, please use "allowlisted-extension-id" instead Backtrace: IsSandboxedProcess [0x00007FFAA7211062+998194] IsSandboxedProcess [0x00007FFAA7FA8402+15249106] IsSandboxedProcess [0x00007FFAA72A11D2+1588386] IsSandboxedProcess [0x00007FFAA71BA0AD+641917] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA59C12DD+6233437] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA5F2FA4D+11928781] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA5E67460+11108064] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA5E67106+11107206] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA5F12518+11808664] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA5F0F83D+11797181] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA5F0F5EE+11796590] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA5AE0A2A+7410858] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA5AE09AB+7410731] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA5AE0698+7409944] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA5AE04EA+7409514] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA5F07C65+11765477] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA5F16CFA+11827066] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA59C3DA9+6244393] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA59C4032+6245042] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA6AFFCD8+24315736] IsSandboxedProcess [0x00007FFAA7BA979B+11059819] IsSandboxedProcess [0x00007FFAA7BA96E5+11059637] IsSandboxedProcess [0x00007FFAA7648D62+5421106] sqlite3_dbdata_init [0x00007FFAA9110A1A+10276058] IsSandboxedProcess [0x00007FFAA7BA979B+11059819] IsSandboxedProcess [0x00007FFAA7BA96E5+11059637] IsSandboxedProcess [0x00007FFAA7648D62+5421106] GetHandleVerifier [0x00007FFAA8477A30+3665744] IsSandboxedProcess [0x00007FFAA7BA9936+11060230] IsSandboxedProcess [0x00007FFAA804CE12+15923426] IsSandboxedProcess [0x00007FFAA804AE62+15915314] IsSandboxedProcess [0x00007FFAA804A0D5+15911845] IsSandboxedProcess [0x00007FFAA8049B83+15910483] IsSandboxedProcess [0x00007FFAA71A57CC+557724] IsSandboxedProcess [0x00007FFAA71A2EE8+547256] IsSandboxedProcess [0x00007FFAA71A25D0+544928] sqlite3_dbdata_init [0x00007FFAA90F6EAE+10170734] RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00007FFAA8075929+10777] RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00007FFAA80747E7+6359] RelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00007FFAA8073FC7+4279] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA59DB9A1+6341665] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA5F06464+11759332] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA59DB551+6340561] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA59DE4B9+6352697] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA59D9BA6+6333990] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA6B6B79A+24756762] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA6B6C95D+24761309] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA6B6C764+24760804] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA6B6AF5F+24754655] CrashForExceptionInNonABICompliantCodeRange [0x00007FFAA6B6B21E+24755358] ChromeMain [0x00007FFAA396133F+671] GetPakFileHashes [0x00007FF652C329FF+6655] GetPakFileHashes [0x00007FF652C31A96+2710] GetHandleVerifier [0x00007FF652DA35B2+1030434] BaseThreadInitThunk [0x00007FFBC2D3257D+29] RtlUserThreadStart [0x00007FFBC502AA58+40] Crash keys: "breadcrumbs" = "0:00:00 Startup " "io_scheduler_async_stack" = "0x7FFAA764BA5D 0x0" "is-enterprise-managed" = "no" "reentry_guard_tls_slot" = "unused" "gwp-asan-partitionalloc" = "535000230400" "variations" = "db59f83a-3f4a17df,8bccc03b-3f4a17df,fabf21f1-3f4a17df,272b4158-3f4a17df,2510663e-73703436,9f476f76-3f4a17df,5349039a-3f4a17df,f3ed486d-3f4a17df,da493d3c-3f4a17df,5c783e42-8f8fa88f,4cc28303-3f4a17df,36d5ee52-3f4a17df,65570806-377be55a,ade3efeb-e1cc0f14,5e3a236d-59e286d0,3fd33f16-27b09c4c,3095b8fe-3f4a17df,4ff8f5b5-caf7a452,17b84626-3f4a17df,5f36436a-f799c15e,92d2eb18-fa10226e,4852ec7f-3f4a17df,baee3c29-3f4a17df,9fe21c85-3f4a17df,250dda8b-3f4a17df,b6c668dd-3f4a17df,255dfea8-cf12f279,36c2f983-3f4a17df,7c2504d0-3f4a17df,741e95d4-3f4a17df,ee9c60c1-3d47f4f4,b357b792-3f4a17df,"
"num-experiments" = "32" "switch-32" = "about:blank" "switch-31" = "--user-data-dir=C:\Users\fedef\AppData\Local\Temp\puppeteerdev" "switch-30" = "--remote-debugging-port=0" "switch-29" = "--window-size=1280x720" "switch-28" = "--whitelisted-extension-id=jjndjgheafjngoipoacpjgeicjeomjli" "switch-27" = "--disable-extensions-except=C:\Sviluppo\DiscordStreamBot\node_mo" "switch-26" = "--load-extension=C:\Sviluppo\DiscordStreamBot\node_modules\puppe" "switch-25" = "--use-mock-keychain" "switch-24" = "--password-store=basic" "switch-23" = "--no-first-run" "switch-22" = "--metrics-recording-only" "switch-21" = "--force-color-profile=srgb" "switch-20" = "--export-tagged-pdf" "switch-19" = "--enable-blink-features=IdleDetection" "switch-18" = "--enable-automation" "switch-17" = "--disable-sync" "switch-16" = "--disable-renderer-backgrounding" "switch-15" = "--disable-prompt-on-repost" "switch-14" = "--disable-popup-blocking" "switch-13" = "--disable-ipc-flooding-protection" "switch-12" = "--disable-hang-monitor" "switch-11" = "--disable-extensions" "switch-10" = "--disable-dev-shm-usage" "switch-9" = "--disable-default-apps" "switch-8" = "--disable-component-update" "switch-7" = "--disable-component-extensions-with-background-pages" "switch-6" = "--disable-client-side-phishing-detection" "switch-5" = "--disable-breakpad" "switch-4" = "--disable-backgrounding-occluded-windows" "switch-3" = "--disable-background-timer-throttling" "switch-2" = "--disable-background-networking" "switch-1" = "--allow-pre-commit-input" "num-switches" = "36" "commandline-disabled-feature-5" = "OptimizationHints" "commandline-disabled-feature-4" = "MediaRouter" "commandline-disabled-feature-3" = "AcceptCHFrame" "commandline-disabled-feature-2" = "BackForwardCache" "commandline-disabled-feature-1" = "Translate" "commandline-enabled-feature-1" = "NetworkServiceInProcess2"

TROUBLESHOOTING: https://pptr.dev/troubleshooting

at ChildProcess.onClose (C:\Sviluppo\DiscordStreamBot\node_modules\@puppeteer\browsers\lib\cjs\launch.js:262:24)
at ChildProcess.emit (node:events:526:35)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)
Fede14it commented 7 months ago

Resolved: const browser = await launch({ defaultViewport: { width: streamOpts.width, height: streamOpts.height, }, channel: 'chrome', });