Open Jaksuhn opened 12 months ago
The database file can only be opened by one process at a time but that is strange that the original instance gets bumped. Does the second instance initialize okay? Might have to do with something internal to how Dalamud handles multiple instances. Will have to investigate further.
I'm also pushing an update soon that will properly release the lock on the database when the plugin fails to load.
Did some testing on my dev build and the second instance fails to start without affecting the first instance. For now I'd like to keep it so you can only have one instance active, not just because of the db lock restriction but also because things could get complicated with double-counting. You should be able to turn it off on one instance and enable in the other.
Looking at your stack trace it seems like a plugin collection was enabled and it's possible that that a previous attempt had a hold of the database without releasing it correctly when it ended.
Let me know if this continues to be an issue in future releases.
yeah I don't actually need it running on other instances, however I do not enable/disable collections every time I open other instances so whatever is on my main is on the alts. I suppose "simplest" would be to just have per character dbs, but I'll see how the lock release works some time this week when I can test it again
weirdly it seems whenever a new instance of xiv is loaded, that one gets priority, and causes previously loaded instances to fail.