naihe2010 / apvlv

GNU General Public License v2.0
239 stars 37 forks source link

Visual mode does not working properly and got GTK errors #71

Open VolkovIlia opened 2 years ago

VolkovIlia commented 2 years ago

Bindings for annotations and visual mode does not work. Also got some errors.

** (apvlv:28835): CRITICAL **: 19:15:01.640: bool apvlv::ApvlvDocCache::getAvailableSpace(apvlv::ApvlvPos, apvlv::ApvlvPos*): assertion '!mLines.empty ()' failed

(apvlv:28835): Gtk-CRITICAL **: 19:15:14.564: gtk_adjustment_get_upper: assertion 'GTK_IS_ADJUSTMENT (adjustment)' failed

(apvlv:28835): Gtk-CRITICAL **: 19:15:14.564: gtk_adjustment_get_lower: assertion 'GTK_IS_ADJUSTMENT (adjustment)' failed

(apvlv:28835): Gtk-CRITICAL **: 19:15:14.564: gtk_adjustment_get_page_size: assertion 'GTK_IS_ADJUSTMENT (adjustment)' failed

(apvlv:28835): Gtk-CRITICAL **: 19:15:14.564: gtk_adjustment_get_value: assertion 'GTK_IS_ADJUSTMENT (adjustment)' failed

Hot to fix it?

My system:

                  '                      volk@station
                  'o'                     ------------
                 'ooo'                    OS: Artix Linux x86_64
                'ooxoo'                   Host: 20AN0069US ThinkPad T440p
               'ooxxxoo'                  Kernel: 5.15.5-artix1-1
              'oookkxxoo'                 Uptime: 11 mins
             'oiioxkkxxoo'                Packages: 1505 (pacman)
            ':;:iiiioxxxoo'               Shell: zsh 5.8
               `'.;::ioxxoo'              Resolution: 1920x1080
          '-.      `':;jiooo'             WM: dwm
         'oooio-..     `'i:io'            Theme: Arc-Gruvbox [GTK2/3]
        'ooooxxxxoio:,.   `'-;'           Icons: Adwaita [GTK2/3]
       'ooooxxxxxkkxoooIi:-.  `'          Terminal: st
      'ooooxxxxxkkkkxoiiiiiji'            Terminal Font: JoyPixels
     'ooooxxxxxkxxoiiii:'`     .i'        CPU: Intel i7-4700MQ (8) @ 3.400GHz
    'ooooxxxxxoi:::'`       .;ioxo'       GPU: Intel 4th Gen Core Processor
   'ooooxooi::'`         .:iiixkxxo'      Memory: 2267MiB / 15881MiB
  'ooooi:'`                `'';ioxxo'
 'i:'`                          '':io'
'`                                   `'

Also my config

set visualmode = yes
naihe2010 commented 2 years ago

Is this pdf file only contain pictures ?

VolkovIlia commented 2 years ago

Not only, but there are pictures, it is scientific article) this happen with all my pdfs ( Even with manual.pdf

VolkovIlia commented 2 years ago
** (apvlv:13489): CRITICAL **: 22:23:27.461: bool apvlv::ApvlvDocCache::getAvailableSpace(apvlv::ApvlvPos, apvlv::ApvlvPos*): assertion '!mLines.empty ()' failed

(apvlv:13489): Gtk-WARNING **: 22:23:30.736: Theme parsing error: <data>:1:19: Not using units is deprecated. Assuming 'px'.

(apvlv:13489): Gtk-WARNING **: 22:23:37.568: Theme parsing error: <data>:1:19: Not using units is deprecated. Assuming 'px'.

manual.pdf

raffaem commented 2 years ago

I get the exact same thing.

apvlv compiled from current source code.

Both v and CTRL+v does nothing, and I get the following errors in the console:


(apvlv:21571): Gtk-CRITICAL **: 13:08:31.187: gtk_adjustment_get_upper: assertion 'GTK_IS_ADJUSTMENT (adjustment)' failed

(apvlv:21571): Gtk-CRITICAL **: 13:08:31.187: gtk_adjustment_get_lower: assertion 'GTK_IS_ADJUSTMENT (adjustment)' failed

(apvlv:21571): Gtk-CRITICAL **: 13:08:31.187: gtk_adjustment_get_page_size: assertion 'GTK_IS_ADJUSTMENT (adjustment)' failed

(apvlv:21571): Gtk-CRITICAL **: 13:08:31.187: gtk_adjustment_get_value: assertion 'GTK_IS_ADJUSTMENT (adjustment)' failed