Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Z zathura
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 153
    • Issues 153
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pwmt
  • zathura
  • Issues
  • #288
Closed
Open
Created May 11, 2022 by Tim Ruffing@real-or-random

synctex: Forward search very slow with many boxes

I have a file where forward search in a specific figure takes ~11 seconds, so much that forward search request will hit timeout and will start a new process:

> zathura main.pdf --synctex-forward 44:0:fig.tex -l debug
debug: ../zathura/dbus-interface.c:577: iterate_instances_call_synctex_view(): Found name: org.pwmt.zathura.PID-126716
debug: ../zathura/dbus-interface.c:505: call_synctex_view(): Filename from 'org.pwmt.zathura.PID-126716': [...]/main.pdf
error: Failed to run SynctexView on 'org.pwmt.zathura.PID-126716': Timeout was reached
debug: ../zathura/main.c:208: main(): No instance found. Starting new one.

This is when invoking forward search inside cryptocode pseudocode, with a normal usage of cryptocode.

Interestingly, this gives me about 11000 lines of output:

synctex view -i 44:0:fig.tex -o main.pdf

whereas invocations in "normal" places in the document are just 27 lines.

So maybe the underlying problem is synctex outputs tons of boxes... Maybe I should report this to https://github.com/jlaurens/synctex/ (or cryptocode?).

But I also think that zathura should handle this more nicely, even if this means simply bailing out after too many boxes. I think it would be nice to jump to some document position first and only then try to draw the boxes.

Not sure if I want to share the sources but I'm sure I could a minimal test case, or I could run a profiler if this helps.

Edited May 11, 2022 by Tim Ruffing
Assignee
Assign to
Time tracking