Trouble importing SongSelect ChordPro files

102 views
Skip to first unread message

Martin Sapsed

unread,
Feb 10, 2025, 1:43:42 PMFeb 10
to OpenSongApp
Hi,
I'm not sure what I'm doing wrong but I'm having trouble with this. I have V6.3.5.
I usually download the ChordPro file from the website on my PC as I'll also pull down a lead Sheet. I then copy the .txt file into my OpenSong\Songs folder and I'm sure the app just worked its magic and the song was converted to the proper format. 
Now I get a message saying the unknown file has been moved to the Imported folder and there it sits... I've tried the Select Multiple files -> Import option but it doesn't help. The latest one I tried sort of worked but had half a page of gibberish at the top!
What should I do/am I doing wrong?
TIA

Gareth Evans

unread,
Feb 11, 2025, 9:12:38 PMFeb 11
to Martin Sapsed, OpenSongApp
Hi Martin,

You can only place OpenSong (xml) files, images, and PDF files directly into the OpenSong/Songs/ folder.  You used to be able to place text files into the Songs folder (pre v6), but it actually caused problems with duplicate songs being created in the background.
If you have ChordPro formatted songs, then place these in the OpenSong/Imported folder (or anywhere else on your Android device) and then import these as you described using the Multiple files import option.  This will give you far better results than importing simple text files.  You can save the ChordPro files using the .crd, .cho, or ,chopro file extensions and OpenSongApp will recognise them and convert them to OpenSong formatted songs.

Best wishes, 
Gareth

--
When responding to a post on the forum using your email, please make sure to click on the 'Reply all' button so that your response is also sent to the forum for other people to see the full conversation.
---
You received this message because you are subscribed to the Google Groups "OpenSongApp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opensongapp...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/opensongapp/9e5f051e-d933-4387-af8e-39e6316d3023n%40googlegroups.com.

Martin Sapsed

unread,
Feb 13, 2025, 3:27:27 AMFeb 13
to OpenSongApp
Hi Gareth,
I understand now where I was going wrong, and why I was trying what had worked before (sort of). I had tried the Imported folder but I'd left the extension as .txt (which SongSelect put on) so it didn't go well. Could I suggest clarifying the online documentation slightly when you get a minute? 
Thanks for all your hard work
Martin

Clifford

unread,
Feb 22, 2025, 6:03:51 PMFeb 22
to OpenSongApp
Hello I also had a question about importing tried to import a opensong backup file I created and for some reason it said error?

Did I do something incorrect?

ty

Clifford

James Nairn

unread,
Feb 23, 2025, 10:24:42 AMFeb 23
to Clifford, OpenSongApp

Clifford.  You must restore a back up,  not import it


Clifford

unread,
Feb 25, 2025, 3:26:12 PMFeb 25
to OpenSongApp
OK ty for the help so here is a question lets say you have 2 android devices a tablet and a phone. You install open song on both devices. Now lets say you want to transfer songs from one to the other or add more songs and then transfer them back in forth. As I expand the library on one device can I copy that library to the other device? 

Can you do this or will something go wrong?

James Nairn

unread,
Feb 25, 2025, 4:08:03 PMFeb 25
to Clifford, OpenSongApp

It is some thing I do all the time.  Though I do prefer to label one as the master,  back up to drop box,  and import on the other device. Easier to manage if you treat the device as it is intended  (master/ slave)


Gareth Evans

unread,
Feb 25, 2025, 4:20:57 PMFeb 25
to James Nairn, Clifford, OpenSongApp
You could also use something like DriveSync and have the two devices synchronised so they both stay up to date:


Clifford

unread,
Feb 25, 2025, 5:20:01 PMFeb 25
to OpenSongApp
But how do you back up the master are you creating a backup file?

In that case you would have to restore on the other device right?

James Nairn

unread,
Feb 25, 2025, 5:21:02 PMFeb 25
to Clifford, OpenSongApp

Gareth Evans

unread,
Feb 26, 2025, 1:59:32 AMFeb 26
to James Nairn, Clifford, OpenSongApp

I create a backup on the master.  That backup file also gets synchronised as it is created in the OpenSong/Backups/ folder.   Three either device just keeps getting all the new songs.  Drive sync allows one way or two way synchronisation so my third device is normally set to one way (download only), my main device and phone have backup set to two way so whatever changes I make on either device can be uploaded.
The backup file is actually a zip file that you can just extract to a folder and manually recover individual songs if required (you'd need to rename the file to change the extension to .zip)


Clifford

unread,
Feb 26, 2025, 1:13:08 PMFeb 26
to OpenSongApp
So something wierd happened I tried to make a back up file which was a .osb file on 1 device but then when I tried to load it into my other android device it said error for some reason. What do you think went wrong?

Gareth Evans

unread,
Feb 26, 2025, 1:29:22 PMFeb 26
to Clifford, OpenSongApp
Can I check that you are trying to import it as described here:

If you want, send me your backup file and I'll check it out.

Clifford

unread,
Feb 26, 2025, 4:25:21 PMFeb 26
to OpenSongApp
OK I will try it again and see if I get the error again and if I do I can have you look at the file do the names of the files matter?

or song names matter?

Gareth Evans

unread,
Feb 26, 2025, 4:29:53 PMFeb 26
to Clifford, OpenSongApp
As with any operating system some characters can cause issues in file names, but if the app coped with them before the backup, that shouldn't be a problem.

A quick internet search says the following characters shouldn't be in filenames:

  • < (less than)
  • > (greater than)
  • : (colon)
  • " (double quote)
  • / (forward slash)
  • \ (backslash)
  • | (vertical bar or pipe)
  • ? (question mark)


Clifford

unread,
Feb 26, 2025, 6:51:31 PMFeb 26
to OpenSongApp
ok another question lets say I download an android emulator on my windows pc it and lets me download open song and run it if I backup from the emulator and then try and use that file to restore the song list on my real android tablet do you think that could cause a conflict?

James Nairn

unread,
Feb 26, 2025, 7:06:31 PMFeb 26
to Clifford, OpenSongApp

Lol.  My guess is you will be the first person to answer that question.


Clifford

unread,
Feb 26, 2025, 7:18:33 PMFeb 26
to OpenSongApp
Ha ha ha I was tyring to be creative to see if it would work. Now when you make a backup file .osb which folder does that backupfile have to be in to restore song list correcty?

James Nairn

unread,
Feb 26, 2025, 8:24:15 PMFeb 26
to Clifford, OpenSongApp

When I make the back up,  I select the destination (in my case it's in dropbox) and then upload to the drop box folder, and when I restore,  I select dropbox and select the back up file to download.


Danny Horton

unread,
Feb 27, 2025, 1:51:58 AMFeb 27
to Clifford, OpenSongApp

I bought a second tablet and I've been having the worst time getting songs transfered. I have all the songs in a backup file, but I was unable to upload all the files I had to do all 300 songs individually. It definitely felt easier before the updates.


Danny Horton

unread,
Feb 27, 2025, 1:51:58 AMFeb 27
to Clifford, OpenSongApp

Yeah, the app worked super well before the updates. Now I can't upload songs and it is constantly crashing in the middle of my shows. It's been super frustrating. I loved it when I first got the app a few years ago. So what's the best way to backup songs now?


Danny Horton

unread,
Feb 27, 2025, 1:51:58 AMFeb 27
to James Nairn, Clifford, OpenSongApp

I put everything into Google drive, but maybe I'm not using the correct "dot"whatever, to make them the right files again. I spent a whole day trying to get each song individually uploaded onto my other tablet. It sucked...


Gareth Evans

unread,
Feb 27, 2025, 2:32:55 AMFeb 27
to OpenSongApp
It works fine.  When I program the app and check for bugs, my first test device is the Android emulator built in to Android Studio.  The only issue you may have is getting access to the files.  Emulators tend to run from compressed sandboxed images.  It is possible though.  Emulators also don't allow you to use Bluetooth or related technology such as Google Nearby 

Gareth Evans

unread,
Feb 27, 2025, 2:39:05 AMFeb 27
to OpenSongApp
OpenSong files should not have any file extension when they are in the OpenSong/Songs/ folder.  When sharing OpenSong files with other Android users, the app adds the extensions (.ost) so Android knows what type of file it it.  The app removes this when it placed the song into the songs folder.  The same applies with sets. 
Backup files are simply zip files with an extension that opensongapp claims it knows, do it doesn't default to Android unzip action. 

If anyone has an issue importing a backup, please send it to me and I will test it. If the is a bug in the backup file I'll figure it out and fix it for you.  If it is a big in my code, your backup will let me find it. 

If the app ever crashes, it creates a crashLog.txt file in the OpenSong/Settings/ folder.  Send that to me, ideally with a short description of what you were doing when the app crashed and I'll try to fix it.  Google play console tried to log all crashes, but I know it doesn't always do this well .

Gareth

Clifford

unread,
Feb 27, 2025, 11:38:33 AMFeb 27
to OpenSongApp
Hey so I tried an android emulator on windows called memu it seemed to work good but got error when I tried to upload the backup to my real android phone and tablet. Here is the file what else would you need to check it?
OpenSongBackup27.osb

James Nairn

unread,
Feb 27, 2025, 11:51:53 AMFeb 27
to Clifford, OpenSongApp

Clifford, upload or restore?


Clifford

unread,
Feb 27, 2025, 12:03:23 PMFeb 27
to OpenSongApp
I was trying to restore from the android emultator to the real android device. So anotherwords this backup file was created using the android emultator memu.

I find the emulator easier to edit some of the files like song data or fixing lyrics or chord sections because my PC monitor is much bigger than the little phone or tablet.

Gareth Evans

unread,
Feb 27, 2025, 12:55:13 PMFeb 27
to Clifford, OpenSongApp
Hi Clifford,

Thanks for sharing your backup file.  For some reason the bundled 'persistent database' file (NonOpenSongSongs.db) in your backup is corrupted.  This is why the error message is showing.  There is a bug in my code that always checks that file before proceeding (even if you have chosen not to import it) and this is causing the error to be shown.  Despite this, your backup will actually have been imported fine since the database is the last item dealt with.  However, you will need to go to your Songs menu and use the + button at the bottom to select a full rebuild of the index for them to be shown.

I've never seen a corrupted database in the backup file before.  It makes me think your current persistent database is also corrupted.  I'm not sure if emails will let you attach the database file directly to an email, but you can find this file at OpenSong/Settings/NonOpenSongSongs.db.  It would be really useful if you could send this to me to check it isn't corrupted.  If it doesn't let you send it, can you zip it up and send that instead.

As a final check, on the device that you are creating the backup on (sounds like the emulator), can you check you are running the latest version of the app (currently v6.4.0) and if you are, can you try cleaning the database (info here: https://www.opensongapp.com/user-manual/utilities/database-utilities).  If this succeeds, try to create the backup again and send me another copy.

As a temporary workaround until we can figure out why the database is corrupted in the backup file, when you create the backup, untick the 'include persistent database' option.

Gareth

Gareth Evans

unread,
Feb 27, 2025, 1:16:51 PMFeb 27
to Clifford, OpenSongApp
Here's your current backup with the persistent database removed.
OpenSongBackup27.osb

Clifford

unread,
Feb 27, 2025, 1:39:28 PMFeb 27
to OpenSongApp
OK I will try what you said and get back to you Im not sure I understand what is the persistent database?

Clifford

unread,
Feb 28, 2025, 2:07:13 PMFeb 28
to OpenSongApp
Ok I just checked my version is this one

6.35 so maybe I need to update it?

On Thursday, February 27, 2025 at 1:16:51 PM UTC-5 garethev...@gmail.com wrote:

Clifford

unread,
Feb 28, 2025, 3:29:07 PMFeb 28
to OpenSongApp
Here is the file you were asking about.
NonOpenSongSongs.db

Clifford

unread,
Mar 10, 2025, 6:33:14 PMMar 10
to OpenSongApp
It worked! You were right the emulator was just on the wrong version now everything backing up and restoring correctly!

ty!

Clifford

Reply all
Reply to author
Forward
0 new messages