Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: patchmatch failed to load or compile (/usr/lib64/libtiff.so.6: undefined symbol) #6356

Open
1 task done
ThisNekoGuy opened this issue May 12, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@ThisNekoGuy
Copy link

ThisNekoGuy commented May 12, 2024

Is there an existing issue for this problem?

  • I have searched the existing issues

Operating system

Linux

GPU vendor

AMD (ROCm)

GPU model

RX 7800 XT

GPU VRAM

16GB

Version number

4.2.0

Browser

LibreWolf 125.0.3-1 (Firefox-based Browser)

Python dependencies

{
  "accelerate": "0.29.2",
  "compel": "2.0.2",
  "cuda": null,
  "diffusers": "0.27.2",
  "numpy": "1.26.4",
  "opencv": "4.9.0.80",
  "onnx": "1.15.0",
  "pillow": "10.3.0",
  "python": "3.11.9",
  "torch": "2.2.2+rocm5.6",
  "torchvision": "0.17.2+rocm5.6",
  "transformers": "4.39.3",
  "xformers": null
}

What happened

For some reason I get a patchmatch error in my terminal about /usr/lib64/libtiff.so.6 having an undefined symbol preventing it from loading:

Generate images with a browser-based interface
>> patchmatch.patch_match: ERROR - patchmatch failed to load or compile (/usr/lib64/libtiff.so.6: undefined symbol: jpeg12_read_raw_data, version LIBJPEG_6.2).
>> patchmatch.patch_match: INFO - Refer to https://invoke-ai.github.io/InvokeAI/installation/060_INSTALL_PATCHMATCH/ for installation instructions.
[2024-05-12 13:08:57,141]::[InvokeAI]::INFO --> Patchmatch not loaded (nonfatal)
[2024-05-12 13:09:04,040]::[InvokeAI]::INFO --> Using torch device: AMD Radeon RX 7800 XT
[2024-05-12 13:09:04,256]::[InvokeAI]::INFO --> cuDNN version: 2020000
[2024-05-12 13:09:04,508]::[uvicorn.error]::INFO --> Started server process [5848]
[2024-05-12 13:09:04,508]::[uvicorn.error]::INFO --> Waiting for application startup.
[2024-05-12 13:09:04,508]::[InvokeAI]::INFO --> InvokeAI version 4.2.0
[2024-05-12 13:09:04,508]::[InvokeAI]::INFO --> Root directory = /mnt/chonker/InvokeAI/InstallDir
[2024-05-12 13:09:04,528]::[InvokeAI]::INFO --> Initializing database at /mnt/chonker/InvokeAI/InstallDir/databases/invokeai.db
[2024-05-12 13:09:06,138]::[uvicorn.error]::INFO --> Application startup complete.
[2024-05-12 13:09:06,138]::[uvicorn.error]::INFO --> Uvicorn running on http://127.0.0.1:9090 (Press CTRL+C to quit)

What you expected to happen

I expected no patchmatch error to occur.

How to reproduce the problem

  1. Install media-libs/tiff with jpeg image support
  2. Install opencv
  3. Symlink /usr/lib/pkgconfig/opencv4.pc to /usr/lib/pkgconfig/opencv.pc
  4. Install and set openblas as the blas implementation
  5. Install InvokeAI
  6. Launch the InvokeAI start script

Additional context

OS: Gentoo Linux (LLVM17-based)
System libtiff version: 4.6.0

Discord username

No response

@ThisNekoGuy ThisNekoGuy added the bug Something isn't working label May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant