microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
23.41k stars 1.46k forks source link

winget install -e --id Gyan.FFmpeg #4016

Closed zed1-del closed 11 months ago

zed1-del commented 11 months ago

Brief description of your issue

I cannot install ffmpeg

MagicAndre1981 commented 11 months ago

For me winget crashes while Gyan.FFmpeg is installed as dependency from yt-dlp.yt-dlp

image

denelon commented 11 months ago

Can you share the output from winget --info?

It would also help if you shared the log file if one was generated.

MagicAndre1981 commented 11 months ago

Can you share the output from winget --info?

2023-12-28 15:14:46.363 [CORE] WinGet, version [1.6.3482]
2023-12-28 15:14:46.364 [CORE] OS: Windows.Desktop v10.0.19045.3803
2023-12-28 15:14:46.364 [CORE] Command line Args: winget  upgrade yt-dlp.yt-dlp --verbose-logs
2023-12-28 15:14:46.364 [CORE] Package: Microsoft.DesktopAppInstaller v1.21.3482.0

It would also help if you shared the log file if one was generated.

log shows no error:

2023-12-28 15:14:50.616 [REPO] Downloading manifest
2023-12-28 15:14:50.617 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/manifests/g/Gyan/FFmpeg/6.1/2297
2023-12-28 15:14:51.140 [CORE] Download request status success.
2023-12-28 15:14:51.140 [CORE] Download size: 3201
2023-12-28 15:14:51.141 [CORE] Download hash: 10c920aab7265ab60c282398a896fbb303fbf17ca6573f965083e496e8bc272c
2023-12-28 15:14:51.141 [CORE] Download completed.
2023-12-28 15:14:51.141 [REPO] Manifest contents: Author: Gyan Doshi

Copyright: Copyright (c) 2000-2023 the FFmpeg developers

Description: 'FFmpeg is a widely-used cross-platform multimedia framework which can

  process almost all common and many uncommon media formats.

  It has over 1000 internal components to capture, decode, encode, modify, combine,

  stream media, and it can make use of dozens of external libraries to provide more

  capabilities.'

Documentations:

- DocumentLabel: Documentation

  DocumentUrl: https://ffmpeg.org/documentation.html

InstallerType: zip

Installers:

- Architecture: x64

  InstallerSha256: B39C5A040AECB343E079E6E33AB0360832B9F0C8369C82DC4B7C825E558DFE24

  InstallerUrl: https://github.com/GyanD/codexffmpeg/releases/download/6.1/ffmpeg-6.1-full_build.zip

  NestedInstallerFiles:

  - PortableCommandAlias: ffmpeg

    RelativeFilePath: ffmpeg-6.1-full_build\bin\ffmpeg.exe

  - PortableCommandAlias: ffplay

    RelativeFilePath: ffmpeg-6.1-full_build\bin\ffplay.exe

  - PortableCommandAlias: ffprobe

    RelativeFilePath: ffmpeg-6.1-full_build\bin\ffprobe.exe

  NestedInstallerType: portable

License: GPL-3.0

LicenseUrl: https://www.gnu.org/licenses/gpl-3.0.html

Localization:

- Author: Gyan Doshi

  Copyright: Copyright (c) 2000-2023 the FFmpeg developers

  Description: "FFmpeg \u662F\u4E00\u4E2A\u5E7F\u6CDB\u4F7F\u7528\u7684\u8DE8\u5E73\u53F0\u591A\u5A92\u4F53\u6846\u67B6\uFF0C\u53EF\u4EE5\u5904\u7406\u51E0\u4E4E\u6240\u6709\u5E38\u89C1\u7684\u548C\u8BB8\u591A\u4E0D\u5E38\u89C1\u7684\u5A92\u4F53\u683C\u5F0F\u3002\u5176\u62E5\u6709\u8D85\u8FC7

    1000 \u4E2A\u5185\u90E8\u7EC4\u4EF6\u6765\u8FDB\u884C\u5A92\u4F53\u6355\u83B7\u3001\u89E3\u7801\u3001\u7F16\u7801\u3001\u4FEE\u6539\u3001\u5408\u5E76\u548C\u63A8\u6D41\uFF0C\u540C\u65F6\u8FD8\u53EF\u4EE5\u5229\u7528\u6570\u5341\u4E2A\u5916\u90E8\u5E93\u63D0\u4F9B\u66F4\u591A\u7684\u529F\u80FD\u3002"

  Documentations:

  - DocumentLabel: "\u6587\u6863"

    DocumentUrl: https://ffmpeg.org/documentation.html

  License: GPL-3.0

  LicenseUrl: https://www.gnu.org/licenses/gpl-3.0.html

  PackageLocale: zh-CN

  PackageName: FFmpeg

  PackageUrl: https://www.gyan.dev/ffmpeg/builds

  Publisher: Gyan

  PublisherSupportUrl: https://www.gyan.dev/ffmpeg/builds/#discussion

  PublisherUrl: https://www.gyan.dev

  ReleaseNotesUrl: https://www.gyan.dev/ffmpeg/builds/#changelog

  ShortDescription: "\u6765\u81EA www.gyan.dev \u7684 FFmpeg 64 \u4F4D\u9759\u6001

    Windows \u6784\u5EFA"

  Tags:

  - ffmpeg

  - "\u591A\u5A92\u4F53"

  - "\u5A92\u4F53"

  - "\u63A8\u6D41"

  - "\u6D41\u5A92\u4F53"

  - "\u89C6\u9891"

  - "\u97F3\u89C6\u9891"

  - "\u97F3\u9891"

ManifestType: merged

ManifestVersion: 1.5.0

Moniker: ffmpeg

PackageIdentifier: Gyan.FFmpeg

PackageLocale: en-US

PackageName: FFmpeg

PackageUrl: https://www.gyan.dev/ffmpeg/builds

PackageVersion: 6.1

Publisher: Gyan

PublisherSupportUrl: https://www.gyan.dev/ffmpeg/builds/#discussion

PublisherUrl: https://www.gyan.dev

ReleaseDate: 2023-11-11

ReleaseNotesUrl: https://www.gyan.dev/ffmpeg/builds/#changelog

ShortDescription: FFmpeg 64-bit static Windows build from www.gyan.dev

Tags:

- audio

- ffmpeg

- media

- multimedia

- streaming

- video

2023-12-28 15:14:51.141 [YAML] Detected UTF-8
2023-12-28 15:14:51.143 [CLI ] Market Filter created with market: DE
2023-12-28 15:14:51.143 [CLI ] Locale Comparator created with Required Locales: [] , Preferred Locales: [de-DE] , IsInstalledLocale: 0
2023-12-28 15:14:51.143 [CLI ] Architecture Comparator created with allowed architectures: [X64, X86, Neutral]
2023-12-28 15:14:51.143 [CLI ] Starting installer selection.
2023-12-28 15:14:51.143 [CLI ] Installer [X64,portable,Unknown,] is current best choice
2023-12-28 15:14:51.143 [CLI ] Completed installer selection.
2023-12-28 15:14:51.143 [CLI ] Selected installer Architecture: 2
2023-12-28 15:14:51.143 [CLI ] Selected installer URL: https://github.com/GyanD/codexffmpeg/releases/download/6.1/ffmpeg-6.1-full_build.zip
2023-12-28 15:14:51.143 [CLI ] Selected installer InstallerType: portable
2023-12-28 15:14:51.143 [CLI ] Selected installer Scope: Unknown
2023-12-28 15:14:51.143 [CLI ] Selected installer Language: 
2023-12-28 15:14:51.143 [CLI ] Manifest fields: Name [FFmpeg], Version [6.1]
2023-12-28 15:14:51.168 [CLI ] Found existing installer file at 'C:\Users\USERNAME\AppData\Local\Temp\WinGet\Gyan.FFmpeg.6.1\ffmpeg-6.1-full_build.zip'. Verifying file hash.
2023-12-28 15:14:51.645 [CLI ] Existing installer file hash matches. Will use existing installer.
2023-12-28 15:14:51.645 [CLI ] Installer hash verified
2023-12-28 15:14:51.645 [CORE] Started applying motw to C:\Users\USERNAME\AppData\Local\Temp\WinGet\Gyan.FFmpeg.6.1\ffmpeg-6.1-full_build.zip with zone: 2
2023-12-28 15:14:51.652 [CORE] Finished applying motw
2023-12-28 15:14:51.767 [CLI ] Extracting archive to: C:\Users\USERNAME\AppData\Local\Temp\WinGet\Gyan.FFmpeg.6.1\extracted
2023-12-28 15:15:00.265 [CLI ] Successfully extracted archive
Trenly commented 11 months ago

Do you see the same error if you use the Pre-Release version of winget from https://aka.ms/getwingetpreview

MagicAndre1981 commented 11 months ago

Do you see the same error if you use the Pre-Release version of winget from https://aka.ms/getwingetpreview

no, can I safely downgrade to stable 1.6?

Trenly commented 11 months ago

Do you see the same error if you use the Pre-Release version of winget from https://aka.ms/getwingetpreview

no, can I safely downgrade to stable 1.6?

Yes

MagicAndre1981 commented 11 months ago

Do you see the same error if you use the Pre-Release version of winget from https://aka.ms/getwingetpreview

no, can I safely downgrade to stable 1.6?

Yes

dependeny to ffmpeg is removed in https://github.com/microsoft/winget-pkgs/pull/131401 so I can't repro the issue any longer. If I would add --force the upgrade from my 2023.10.13.0 to latest 2023.12.30.0 would work fine now.

MagicAndre1981 commented 11 months ago

winget install -e --id Gyan.FFmpeg works with 1.7 preview, but I noticed that package ws also update to 6.1.1, so maybe 6.1 had an issue.

MagicAndre1981 commented 5 months ago

I get the crash again while updating yt-dlp.yt-dlp again because of dependeny to Gyan.FFmpeg:

# Call Site
00 ntdll!NtWaitForMultipleObjects
01 KERNELBASE!WaitForMultipleObjectsEx
02 KERNELBASE!WaitForMultipleObjects
03 kernel32!WerpReportFaultInternal
04 kernel32!WerpReportFault
05 KERNELBASE!UnhandledExceptionFilter
06 ntdll!RtlUserThreadStart$filt$0
07 ntdll!_C_specific_handler
08 ntdll!RtlpExecuteHandlerForException
09 ntdll!RtlDispatchException
0a ntdll!KiUserExceptionDispatch
0b WindowsPackageManager!WindowsPackageManagerConfigurationCompleteOutOfProcessFactoryInitialization
0c WindowsPackageManager!WindowsPackageManagerConfigurationCompleteOutOfProcessFactoryInitialization
0d WindowsPackageManager!WindowsPackageManagerConfigurationCompleteOutOfProcessFactoryInitialization
0e WindowsPackageManager!WindowsPackageManagerConfigurationCompleteOutOfProcessFactoryInitialization
0f WindowsPackageManager!WindowsPackageManagerConfigurationCompleteOutOfProcessFactoryInitialization
10 WindowsPackageManager!WindowsPackageManagerConfigurationCompleteOutOfProcessFactoryInitialization
11 WindowsPackageManager!WindowsPackageManagerConfigurationCompleteOutOfProcessFactoryInitialization
12 WindowsPackageManager!WindowsPackageManagerConfigurationCompleteOutOfProcessFactoryInitialization
13 WindowsPackageManager!WindowsPackageManagerConfigurationCompleteOutOfProcessFactoryInitialization
14 WindowsPackageManager!WindowsPackageManagerConfigurationCompleteOutOfProcessFactoryInitialization
15 WindowsPackageManager!WindowsPackageManagerConfigurationCompleteOutOfProcessFactoryInitialization
16 WindowsPackageManager!WindowsPackageManagerConfigurationCompleteOutOfProcessFactoryInitialization
17 WindowsPackageManager!WindowsPackageManagerConfigurationCompleteOutOfProcessFactoryInitialization
18 WindowsPackageManager!WindowsPackageManagerConfigurationCompleteOutOfProcessFactoryInitialization
19 WindowsPackageManager!WindowsPackageManagerConfigurationCompleteOutOfProcessFactoryInitialization
1a WindowsPackageManager!WindowsPackageManagerConfigurationCompleteOutOfProcessFactoryInitialization
1b WindowsPackageManager!WindowsPackageManagerConfigurationCompleteOutOfProcessFactoryInitialization
1c WindowsPackageManager!WindowsPackageManagerConfigurationCompleteOutOfProcessFactoryInitialization
1d WindowsPackageManager!WindowsPackageManagerCLIMain
1e winget
1f kernel32!BaseThreadInitThunk
20 ntdll!RtlUserThreadStart

Here is the log:

2024-07-07 09:26:37.626 [REPO] Opened Pinning Index with version [1.0], last write [2024-05-18 15:08:29.000]
2024-07-07 09:26:37.627 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/manifests/y/yt-dlp/yt-dlp/2024.07.02/2ed4
2024-07-07 09:26:38.185 [CORE] Download hash: a4a956cd5d5df3995f7a3a2f482c13e2aa1ac3d2154436b80fac894446f05043
2024-07-07 09:26:38.185 [CORE] Download completed.
2024-07-07 09:26:38.188 [CLI ] Manifest fields: Name [yt-dlp], Version [2024.07.02]
2024-07-07 09:26:38.312 [REPO] Opening database for ReadWrite at 'C:\Users\USERNAME\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db'
2024-07-07 09:26:38.313 [REPO] Opened SQLite Index with version [1.5], last write [2024-07-07 09:26:25.000]
2024-07-07 09:26:38.415 [CORE] WinINet downloading from url: https://cdn.winget.microsoft.com/cache/manifests/g/Gyan/FFmpeg/7.0.1/3c33
2024-07-07 09:26:38.914 [CORE] Download hash: 89d42afce845e89e11fa3604a5b2b3f4fd96f98aba1e58aa91c2940820bafc6c
2024-07-07 09:26:38.914 [CORE] Download completed.
2024-07-07 09:26:38.916 [CLI ] Manifest fields: Name [FFmpeg], Version [7.0.1]
2024-07-07 09:26:38.993 [CLI ] Found existing installer file at 'C:\Users\USERNAME\AppData\Local\Temp\WinGet\Gyan.FFmpeg.7.0.1\ffmpeg-7.0.1-full_build.zip'. Verifying file hash.
2024-07-07 09:26:39.261 [CLI ] Existing installer file hash matches. Will use existing installer.
2024-07-07 09:26:39.261 [CLI ] Installer hash verified
2024-07-07 09:26:39.261 [CORE] Started applying motw to C:\Users\USERNAME\AppData\Local\Temp\WinGet\Gyan.FFmpeg.7.0.1\ffmpeg-7.0.1-full_build.zip with zone: 2
2024-07-07 09:26:39.265 [CORE] Finished applying motw
2024-07-07 09:26:39.367 [CLI ] Extracting archive to: C:\Users\USERNAME\AppData\Local\Temp\WinGet\Gyan.FFmpeg.7.0.1\extracted
2024-07-07 09:26:48.457 [CLI ] Successfully extracted archive

But without PDBs I can't give any details.