Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
P
positron
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 26
    • Issues 26
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Jobs
  • Issue Boards
  • Xiph.Org
  • positron
  • Issues
  • #400

Closed
Open
Opened Jul 07, 2003 by jvm@jvm

First-time sync crashes if no data to sync.

I ran positron config, configured a sync point, and a (place to download
recordings), then ran positron sync, just to see that it seemed to work, before
getting down to installing some music. Both configured directories were empty,
and the Neuros player was fresh out of the box.

The error message that printed out was: 

boojum:~> positron sync
Synchronizing Neuros music database.

  Checking for new music...        None.
  Checking for new recordings...   None.
Traceback (most recent call last):
  File "/usr/bin/positron", line 175, in ?
    main(sys.argv)
  File "/usr/bin/positron", line 157, in main
    cmd.run(config, myNeuros, remaining[1:])
  File
"/home/jack/src/positron/dist/positron-1.0/debian/positron/usr/lib/python2.2/site-packages/positron/cmd_sync.py",
line 165, in run
  File
"/home/jack/src/positron/dist/positron-1.0/debian/positron/usr/lib/python2.2/site-packages/positron/db/WOID.py",
line 327, in count_deleted
  File
"/home/jack/src/positron/dist/positron-1.0/debian/positron/usr/lib/python2.2/site-packages/positron/db/MDB.py",
line 294, in count_deleted
  File
"/home/jack/src/positron/dist/positron-1.0/debian/positron/usr/lib/python2.2/site-packages/positron/db/MDB.py",
line 189, in read_record_at
  File
"/home/jack/src/positron/dist/positron-1.0/debian/positron/usr/lib/python2.2/site-packages/positron/db/util.py",
line 74, in fread_wordstruct.error: unpack str size does not match format


The workaround was to add a single mp3 file to the configured sync directory and
sync again. After that, everything was ok, even after I deleted the mp3 and
re-ran sync. So, not a big deal, which is why I marked as minor, but not totally
trivial IMHO, because, well, crashes are bad. :^)

Sorry my Python skills aren't up to fixing this myself yet; hope this bug report
has enough info to reproduce and fix.
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: xiph/positron#400