Skip to content

Broken Add-in RepositoryΒ #1542

Closed
Closed

Description

@kousu

Description
When I try to install an add-in I get

Could not get information from repository: https://pintaproject.github.io/Pinta-Community-Addins/repository/Linux/main.mrep

I figured out that I could download addins from https://github.com/PintaProject/Pinta-Community-Addins/tree/gh-pages/repository/All and install them with the folder icon, and it's great that there's a fall-back!

Just in case it was somehow my network, I checked if I am able to open https://pintaproject.github.io/Pinta-Community-Addins/repository/Linux/main.mrep; I can:

main.mrep
<?xml version="1.0" encoding="utf-8"?>
<Repository xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Repository>
    <Url>root.mrep</Url>
    <LastModified>2025-05-05T02:16:05.9649189+00:00</LastModified>
  </Repository>
</Repository>

I am also able to download

root.mrep
<?xml version="1.0" encoding="utf-8"?>
<Repository xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Addin>
    <Url>WebP_0.2.1.mpack</Url>
    <Addin>
      <Id>WebP</Id>
      <Namespace />
      <Name>WebP</Name>
      <Version>0.2.1</Version>
      <BaseVersion />
      <Author>Pinta Project</Author>
      <Copyright />
      <Url>https://github.com/PintaProject/WebPAddin</Url>
      <Description>Provides support for the WebP image format.</Description>
      <Category>File Formats</Category>
      <Dependencies>
        <AddinDependency>
          <AddinId>Pinta</AddinId>
          <Version>1.5</Version>
        </AddinDependency>
      </Dependencies>
      <OptionalDependencies />
      <Properties>
        <Property name="Name">WebP</Property>
        <Property name="Description">Provides support for the WebP image format.</Property>
        <Property name="Author">Pinta Project</Property>
        <Property name="Url">https://github.com/PintaProject/WebPAddin</Property>
        <Property name="DownloadSize">5371</Property>
      </Properties>
    </Addin>
  </Addin>
</Repository>

so I don't think it's my network.

To Reproduce

  1. Open Pinta
  2. Click [Menu] > Add-ins > Add-in manager...

Additional Info

Image

$ pinta --debug

(pinta:44169): Gtk-WARNING **: 20:05:31.591: GtkBox 0x55aaf5564f20 (box) reported min width 504 and natural width 500 in measure() with for_size=664; natural size must be >= min size
Error: Could not get information from repository: http://pintaproject.github.io/Pinta-Community-Addins/repository/Linux/main.mrep
System.InvalidOperationException: Nullable object must have a value.
   at System.Nullable`1.get_Value()
   at Mono.Addins.Setup.HttpClientDownloadFileRequest.get_ContentLength() in /Users/runner/work/1/s/Mono.Addins.Setup/Mono.Addins.Setup/DownloadFileRequest.cs:line 77
   at Mono.Addins.Setup.AddinStore.DownloadFile(IProgressMonitor monitor, String url) in /Users/runner/work/1/s/Mono.Addins.Setup/Mono.Addins.Setup/AddinStore.cs:line 650
   at Mono.Addins.Setup.AddinStore.DownloadObject(IProgressMonitor monitor, String url, Type type) in /Users/runner/work/1/s/Mono.Addins.Setup/Mono.Addins.Setup/AddinStore.cs:line 577
   at Mono.Addins.Setup.MonoAddinsRepositoryProvider.DownloadRepository(IProgressMonitor monitor, Uri absUri, AddinRepository rr) in /Users/runner/work/1/s/Mono.Addins.Setup/Mono.Addins.Setup/MonoAddinsRepositoryProvider.cs:line 40
   at Mono.Addins.Setup.RepositoryRegistry.UpdateRepository(IProgressMonitor monitor, Uri baseUri, RepositoryRecord rr) in /Users/runner/work/1/s/Mono.Addins.Setup/Mono.Addins.Setup/RepositoryRegistry.cs:line 362
Error: Could not get information from repository: http://pintaproject.github.io/Pinta-Community-Addins/repository/All/main.mrep
System.InvalidOperationException: Nullable object must have a value.
   at System.Nullable`1.get_Value()
   at Mono.Addins.Setup.HttpClientDownloadFileRequest.get_ContentLength() in /Users/runner/work/1/s/Mono.Addins.Setup/Mono.Addins.Setup/DownloadFileRequest.cs:line 77
   at Mono.Addins.Setup.AddinStore.DownloadFile(IProgressMonitor monitor, String url) in /Users/runner/work/1/s/Mono.Addins.Setup/Mono.Addins.Setup/AddinStore.cs:line 650
   at Mono.Addins.Setup.AddinStore.DownloadObject(IProgressMonitor monitor, String url, Type type) in /Users/runner/work/1/s/Mono.Addins.Setup/Mono.Addins.Setup/AddinStore.cs:line 577
   at Mono.Addins.Setup.MonoAddinsRepositoryProvider.DownloadRepository(IProgressMonitor monitor, Uri absUri, AddinRepository rr) in /Users/runner/work/1/s/Mono.Addins.Setup/Mono.Addins.Setup/MonoAddinsRepositoryProvider.cs:line 40
   at Mono.Addins.Setup.RepositoryRegistry.UpdateRepository(IProgressMonitor monitor, Uri baseUri, RepositoryRecord rr) in /Users/runner/work/1/s/Mono.Addins.Setup/Mono.Addins.Setup/RepositoryRegistry.cs:line 362

Version

ArchLinux, and I built Pinta from https://aur.archlinux.org/packages/pinta-git:

$ pacman -Qi pinta
Name            : pinta
Version         : 3.0.1-1

So that means this was built off 0ff7f12. But I had the same error before I upgraded; the last time I built Pinta was at 3.0.0.

Activity

  1. added theissue type on Jun 14, 2025
  2. added this to the 3.1 milestone on Jun 14, 2025
  3. added
    addinsIssues related to Pinta's support for add-ins
    on Jun 14, 2025
  4. cameronwhite commented on Jun 14, 2025

    @cameronwhite
    Member

    Thanks for the report! I can reproduce as well - something must have changed on the add-in repository side of things, since it happens with the original 3.0 build as well (which definitely did work at the time of release)

  5. added a commit that references this issue on Jun 14, 2025
    d6d862d
  6. cameronwhite commented on Jun 14, 2025

    @cameronwhite
    Member

    Would you be able to test out PR #1547? It's working for me in my tests but would be good to get some additional confirmation

  7. kousu commented on Jun 15, 2025

    @kousu
    Author

    The quickest way for me to test was just to build from the Arch build script:

    1. Grabbed https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=pinta-git

    2. Patched the build to use the PR

      $ diff -u PKGBUILD.orig PKGBUILD
      --- PKGBUILD.orig	2025-06-14 20:09:05.014367156 -0400
      +++ PKGBUILD	2025-06-14 20:10:15.232867575 -0400
      @@ -13,7 +13,7 @@
       makedepends=(autoconf-archive git intltool dotnet-sdk)
       provides=(pinta)
       conflicts=(pinta)
      -source=("git+https://github.com/PintaProject/Pinta.git")
      +source=("git+https://github.com/PintaProject/Pinta.git#branch=fix/addin-download")
       sha256sums=('SKIP')
       
       pkgver() {
    3. makepkg -fsri to build. After a quick minute:

      :: pinta-git-r4358.d6d862d6-1 and pinta-3.0.1-1 are in conflict. Remove pinta? [y/N] y

    4. And then it works!

      Image

    Nice! I'm glad you were able to pinpoint the problem so easily πŸŽ‰

  8. cameronwhite commented on Jun 15, 2025

    @cameronwhite
    Member

    great, thank you for confirming!

  9. added a commit that references this issue on Jun 15, 2025
    d0442c1
  10. modified the milestones: 3.1, 3.0.2 on Jun 15, 2025
  11. added a commit that references this issue on Jun 15, 2025
    1b8c007
  12. marked Gallery not available #1556 as a duplicate of this issue on Jun 19, 2025
  13. added a commit that references this issue on Jul 6, 2025
    5ebcbf5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    addinsIssues related to Pinta's support for add-ins

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions