You are not logged in.

#1 2024-05-01 07:51:45

b42
Member
Registered: 2023-07-20
Posts: 189

[SOLVED] ctpv does not work after the last upgrade

ctpv prieview does not work for lf anymore after the last upgrade, it does not show any previews anymore.

What could be the issue?

Last edited by b42 (2024-05-22 10:49:37)

Offline

#2 2024-05-01 11:16:56

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,970

Re: [SOLVED] ctpv does not work after the last upgrade

Are you using ctpv or ctpv-git ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2024-05-02 15:38:52

b42
Member
Registered: 2023-07-20
Posts: 189

Re: [SOLVED] ctpv does not work after the last upgrade

I guess I am talking about this one:

https://aur.archlinux.org/packages/ctpv

since the version is 1.1

but I have all the files on my device and I install it using

sudo make install

what is the difference between the two you mentioned though?

Last edited by b42 (2024-05-02 21:52:52)

Offline

#4 2024-05-03 09:49:44

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,970

Re: [SOLVED] ctpv does not work after the last upgrade

You're using configure/make/install instead of pacman/makepkg to install cptv and this causes all kinds of issues.

You should use PKGBUILDs to create binary packages that will be managed with pacman .

Search for pacman, makepkg, pkgbuild and especially AUR in the arch wiki.

cptv-git builds the development version while cptv builds a released version.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2024-05-03 10:28:41

b42
Member
Registered: 2023-07-20
Posts: 189

Re: [SOLVED] ctpv does not work after the last upgrade

and what is wrong with having source code on my device and compiling it myself? smile

just tried both of those packages in AUR and both did not work.

I suspect there has been some change in the system after the upgrade because I am getting something like this while compiling the package:

  src/ctpv.c:175:5: warning: ‘MD5’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  175 |     MD5((const unsigned char *)s, strlen(s), out);
      |     ^~~
 
 /usr/include/openssl/md5.h:52:38: note: declared here
   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n, 

Offline

#6 2024-05-04 14:11:10

b42
Member
Registered: 2023-07-20
Posts: 189

Re: [SOLVED] ctpv does not work after the last upgrade

any solutions on this?

Offline

#7 2024-05-04 16:10:28

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,970

Re: [SOLVED] ctpv does not work after the last upgrade

and what is wrong with having source code on my device and compiling it myself? smile

By doing that you're circumventing the control of pacman over your system. IF you know what you're doing and can manage two conflicting systems (pacman and manual installs) succesfully, kudos to you.

Just make sure you can support your system yourself because no one else knows enough about it.

The deprecation warning should (for now) have no impact on functionality.

When was the upgrade where this changed and which packages were involved ?
is your lf from repos or another manual build ?

How about posting some logs / journals / dmesg from running lf and accessing folders with files that are supposed to have  a preview from ctpv ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#8 2024-05-04 17:04:25

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,417
Website

Re: [SOLVED] ctpv does not work after the last upgrade

Mod note: moving to AUR Issues


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#9 2024-05-04 17:36:54

loqs
Member
Registered: 2014-03-06
Posts: 18,067

Re: [SOLVED] ctpv does not work after the last upgrade

You could ask upstream to swap to code that is not deprecated.  For its caching purpose I would have thought XXH3_128bits which also 128bit in size might work.  As Lone_Wolf has already noted though that warning message is not the cause of your issue.

Offline

#10 2024-05-05 15:33:15

b42
Member
Registered: 2023-07-20
Posts: 189

Re: [SOLVED] ctpv does not work after the last upgrade

is your lf from repos or another manual build ?

repos

How about posting some logs / journals / dmesg from running lf and accessing folders with files that are supposed to have  a preview from ctpv ?

sure. sorry, but how exactly do I do that?

Offline

#11 2024-05-05 16:34:09

loqs
Member
Registered: 2014-03-06
Posts: 18,067

Re: [SOLVED] ctpv does not work after the last upgrade

Have you tried bisecting ctpv between 1.0 and 1.1?

Offline

#12 2024-05-07 11:59:30

b42
Member
Registered: 2023-07-20
Posts: 189

Re: [SOLVED] ctpv does not work after the last upgrade

loqs wrote:

Have you tried bisecting ctpv between 1.0 and 1.1?

no, but I do not think version 1.1 is the issue since I have been using it successfully for over half a year.

And after the system upgrade pacman -Syu ctpv got broken. So I suspect it must be some dependancies or something like that?

Offline

#13 2024-05-07 12:30:51

loqs
Member
Registered: 2014-03-06
Posts: 18,067

Re: [SOLVED] ctpv does not work after the last upgrade

b42 wrote:

And after the system upgrade pacman -Syu ctpv got broken. So I suspect it must be some dependancies or something like that?

As you are not using pacman to manage cptv how do you ensure the dependencies are correct?  Have you tried a basic test of invoking cptv directly and checking it can still start?

Offline

#14 2024-05-07 12:58:24

b42
Member
Registered: 2023-07-20
Posts: 189

Re: [SOLVED] ctpv does not work after the last upgrade

loqs wrote:

As you are not using pacman to manage cptv how do you ensure the dependencies are correct?  Have you tried a basic test of invoking cptv directly and checking it can still start?

as it is a tool to preview files, how do I invoke it directly?

Offline

#15 2024-05-07 14:23:35

loqs
Member
Registered: 2014-03-06
Posts: 18,067

Re: [SOLVED] ctpv does not work after the last upgrade

b42 wrote:

as it is a tool to preview files, how do I invoke it directly?

https://www.nikitaivanov.com/man1/ctpv#h

cptv -h

Edit:
If that works without issue,  strace `lf` and determine how it invokes cptv and what the response is.

Last edited by loqs (2024-05-07 14:38:42)

Offline

#16 2024-05-07 14:56:02

b42
Member
Registered: 2023-07-20
Posts: 189

Re: [SOLVED] ctpv does not work after the last upgrade

this is the output of one of my files

 
Running preview: pdf
Preview pdf failed
Running preview: any
ExifTool Version Number         : 12.76
File Name                       : Notes on engine oil and filter changes.pdf
Directory                       : /home/user/Downloads
File Size                       : 83 kB
File Modification Date/Time     : 2024:04:01 18:33:36+03:00
File Access Date/Time           : 2024:05:06 20:56:33+03:00
File Inode Change Date/Time     : 2024:04:25 20:26:46+03:00
File Permissions                : -rw-------
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.6
Linearized                      : Yes
Author                          : Mercedes
Create Date                     : 2019:04:26 11:08:48-05:00
Modify Date                     : 2019:04:26 11:08:48-05:00
XMP Toolkit                     : Adobe XMP Core 5.6-c016 91.163616, 2018/10/29-16:58:49
Format                          : application/pdf
Title                           : Notes on engine oil and filter changes
Creator                         : Mercedes
Creator Tool                    : PScript5.dll Version 5.2.2
Producer                        : Acrobat Distiller 19.0 (Windows)
Document ID                     : uuid:707e9297-296f-4085-ae2b-a9b750db4108
Instance ID                     : uuid:c9bd538a-94ba-4288-9498-956a8a85919e
Page Count                      : 1

"preview PDF failed"

Last edited by b42 (2024-05-07 14:57:24)

Offline

#17 2024-05-07 14:59:22

b42
Member
Registered: 2023-07-20
Posts: 189

Re: [SOLVED] ctpv does not work after the last upgrade

interesting thing:

I  bought a new disk and installed a completely new and fresh system and previews did not work.

Put an old disk and previews worked fine. Then I did pacman -Syu and now the previews on my old system on my old SSD does not work too:)

Offline

#18 2024-05-07 15:10:29

loqs
Member
Registered: 2014-03-06
Posts: 18,067

Re: [SOLVED] ctpv does not work after the last upgrade

b42 wrote:

this is the output of one of my files

What command produce that output?

b42 wrote:

I did pacman -Syu and now the previews on my old system on my old SSD does not work too:)

What dependencies of cptv were updated as part of that system upgrade?  What were the involved versions for those dependencies?

Offline

#19 2024-05-07 15:15:46

b42
Member
Registered: 2023-07-20
Posts: 189

Re: [SOLVED] ctpv does not work after the last upgrade

loqs wrote:

What command produce that output?

ctpv -d *file*

What dependencies of cptv were updated as part of that system upgrade?  What were the involved versions for those dependencies?

ohh I have no clue how to tell you this..

Offline

#20 2024-05-07 19:23:54

loqs
Member
Registered: 2014-03-06
Posts: 18,067

Re: [SOLVED] ctpv does not work after the last upgrade

b42 wrote:
loqs wrote:

What command produce that output?

ctpv -d *file*

Also was that before or after the upgrade?  Was the output the same in the other case?

b42 wrote:

What dependencies of cptv were updated as part of that system upgrade?  What were the involved versions for those dependencies?

ohh I have no clue how to tell you this..

Is the issue you do not know what the dependencies of cptv are or you do not know how to find if those packages were in the upgrade?  For the former I would start with the dependencies listed in the PKGBUILD for cptv,  you can also use ld, strace and ctpv's documentation.  For the latter you can look in /var/log/pacman.log.

Offline

#21 2024-05-08 17:35:38

b42
Member
Registered: 2023-07-20
Posts: 189

Re: [SOLVED] ctpv does not work after the last upgrade

Also was that before or after the upgrade?  Was the output the same in the other case?

I had not tried this command before the upgrade because everything worked perfectly in lf smile

Is the issue you do not know what the dependencies of cptv are or you do not know how to find if those packages were in the upgrade?  For the former I would start with the dependencies listed in the PKGBUILD for cptv,  you can also use ld, strace and ctpv's documentation.  For the latter you can look in /var/log/pacman.log.

The thing is, I compile that package myself and I have never got any error as per dependencies. As I mentioned, after ctpv broke I tried both of the AUR packages and both did not work. And as for the upgrade, I think it is impossible for me to track it, since I did a fresh install or am I wrong here?

Offline

#22 2024-05-08 17:53:40

loqs
Member
Registered: 2014-03-06
Posts: 18,067

Re: [SOLVED] ctpv does not work after the last upgrade

b42 wrote:

The thing is, I compile that package myself and I have never got any error as per dependencies. As I mentioned, after ctpv broke I tried both of the AUR packages and both did not work.

Perhaps this is providing you with an insight into what maintaining a package involves.

b42 wrote:

And as for the upgrade, I think it is impossible for me to track it, since I did a fresh install or am I wrong here?

I was referring to the old disk from:

b42 wrote:

Put an old disk and previews worked fine. Then I did pacman -Syu and now the previews on my old system on my old SSD does not work too

You can find when the date of the last upgrade before the one that broke ctpv you can use the ALA to restore all packages to that date and test if cptv then functions as expected.  You can then reduce the date range down until you find a single date that introduced the issue.

Offline

#23 2024-05-17 12:21:17

b42
Member
Registered: 2023-07-20
Posts: 189

Re: [SOLVED] ctpv does not work after the last upgrade

You can find when the date of the last upgrade before the one that broke ctpv you can use the ALA to restore all packages to that date and test if cptv then functions as expected.  You can then reduce the date range down until you find a single date that introduced the issue.

Okay, this actually worked. I have been able to find a specific upgrade date which breaks ctpv, it is April 27, 2024. If I downgrade to April 26, 2024 ctpv works.

here is the list of packages that have been downgraded to April 26, 2024:

warning: audit: downgrading from version 4.0.1-3 to version 4.0.1-2
warning: autoconf-archive: downgrading from version 1:2023.02.20-2 to version 1:2023.02.20-1
warning: avahi: downgrading from version 1:0.8+r194+g3f79789-2 to version 1:0.8+r194+g3f79789-1
warning: bleachbit: downgrading from version 4.6.0-2 to version 4.6.0-1
warning: botan: downgrading from version 3.4.0-2 to version 3.4.0-1
warning: botan2: downgrading from version 2.19.3-2 to version 2.19.3-1
warning: brotli: downgrading from version 1.1.0-2 to version 1.1.0-1
warning: dbus-python: downgrading from version 1.3.2-3 to version 1.3.2-2
warning: gcc: downgrading from version 13.2.1-6 to version 13.2.1-5
warning: gcc-libs: downgrading from version 13.2.1-6 to version 13.2.1-5
warning: glib2: downgrading from version 2.80.0-3 to version 2.80.0-2
warning: gobject-introspection-runtime: downgrading from version 1.80.1-3 to version 1.80.1-1
warning: gpgme: downgrading from version 1.23.2-4 to version 1.23.2-1
warning: gst-plugins-bad-libs: downgrading from version 1.24.2-2 to version 1.24.1-2
warning: gst-plugins-base-libs: downgrading from version 1.24.2-2 to version 1.24.1-2
warning: gstreamer: downgrading from version 1.24.2-2 to version 1.24.1-2
warning: hplip: downgrading from version 1:3.23.12-4 to version 1:3.23.12-3
warning: imath: downgrading from version 3.1.11-2 to version 3.1.11-1
warning: libcap-ng: downgrading from version 0.8.5-2 to version 0.8.5-1
warning: libgirepository: downgrading from version 1.80.1-3 to version 1.80.1-1
warning: libimobiledevice: downgrading from version 1.3.0-13 to version 1.3.0-11
warning: libnewt: downgrading from version 0.52.24-2 to version 0.52.24-1
warning: libplacebo: downgrading from version 6.338.2-6 to version 6.338.2-4
warning: libplist: downgrading from version 2.4.0-2 to version 2.4.0-1
warning: libseccomp: downgrading from version 2.5.5-3 to version 2.5.5-2
warning: libxml2: downgrading from version 2.12.6-2 to version 2.12.6-1
warning: libxslt: downgrading from version 1.1.39-2 to version 1.1.39-1
warning: lilv: downgrading from version 0.24.24-2 to version 0.24.24-1
warning: linux: downgrading from version 6.8.7.arch1-2 to version 6.8.7.arch1-1
warning: llvm-libs: downgrading from version 17.0.6-3 to version 17.0.6-2
warning: miniupnpc: downgrading from version 2.2.7-2 to version 2.2.7-1
warning: net-snmp: downgrading from version 5.9.4-3 to version 5.9.4-2
warning: notmuch-runtime: downgrading from version 0.38.3-2 to version 0.38.3-1
warning: openmpi: downgrading from version 5.0.2-9 to version 5.0.2-8
warning: openucx: downgrading from version 1.15.0-4 to version 1.15.0-2
warning: profanity: downgrading from version 1:0.14.0-2 to version 1:0.14.0-1
warning: protobuf: downgrading from version 25.3-4 to version 25.3-3
warning: pulsemixer: downgrading from version 1.5.1-6 to version 1.5.1-5
warning: python: downgrading from version 3.12.3-1 to version 3.11.8-1
warning: python-attrs: downgrading from version 23.2.0-3 to version 23.2.0-1
warning: python-distro: downgrading from version 1.9.0-2 to version 1.9.0-1
warning: python-docopt: downgrading from version 0.6.2-13 to version 0.6.2-12
warning: python-gnupg: downgrading from version 0.5.2-2 to version 0.5.2-1
warning: python-gobject: downgrading from version 3.48.2-1 to version 3.48.1-2
warning: python-packaging: downgrading from version 23.2-3 to version 23.2-1
warning: python-pillow: downgrading from version 10.3.0-2 to version 10.3.0-1
warning: talloc: downgrading from version 2.4.2-2 to version 2.4.2-1
warning: tdb: downgrading from version 1.4.10-3 to version 1.4.10-2
warning: ueberzug: downgrading from version 18.2.2-2 to version 18.2.2-1
warning: util-linux: downgrading from version 2.40-3 to version 2.40-2
warning: util-linux-libs: downgrading from version 2.40-3 to version 2.40-2
warning: vapoursynth: downgrading from version R66-2 to version R66-1
warning: xcb-proto: downgrading from version 1.17.0-2 to version 1.17.0-1

My guess ueberzug?

Last edited by b42 (2024-05-17 13:07:08)

Offline

#24 2024-05-20 09:00:47

b42
Member
Registered: 2023-07-20
Posts: 189

Re: [SOLVED] ctpv does not work after the last upgrade

any suggestions here?

Offline

#25 2024-05-20 10:13:08

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,970

Re: [SOLVED] ctpv does not work after the last upgrade

The difference between ueberzug 18.2.2-2 and 18.2.2-1 is a rebuild .

ueberzug depends on several python packages and there's this in the downgrade list :

warning: python: downgrading from version 3.12.3-1 to version 3.11.8-1

archlinux switched from python 3.11 to python 3.12 on april 26.


https://github.com/NikitaIvanovV/ctpv/blob/master/README.md wrote:

Image previews are powered by one of these programs:

    Überzug (X11 only)
    Chafa (X11 and Wayland)
    Kitty terminal

Try removing ueberzug and installing chafa.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB