Re: Audacity 3.0.1 RC01 (for testing only)

"Leland" <[email protected]> Wed, 7 Apr 2021 19:17:31 -0500
Newsgroups gmane.comp.audio.audacity.devel
Message-ID <[email protected]>
Not finding the lastlog file is rather interesting by itself.  It should be there.  One of the last things that Audacity does when it exits is dump the log to that file.  The only reason I can think of that it might not be doing that is that Audacity is not ending cleanly.

 

James has come up with an idea on how to resolve the open error, but I’m still going to look into why it’s happening.  It really shouldn’t be.  But, whether I find the real cause or not, we’ll put in James’s solution.

 

From: Jack L. <[email protected]> 
Sent: Wednesday, April 7, 2021 5:34 PM
To: Audacity-Devel list <[email protected]>
Subject: Re: [Audacity-devel] Audacity 3.0.1 RC01 (for testing only)

 

Not able to find the lastlog but I seem to run into the issue pretty frequently just by opening/importing files in multiple windows. Maybe that is the key.

 

Seems to be fairly easy to reproduce on FreeBSD and Windows but it doesn't seem to happen in any particular sequence but it always happens during an open file via ctrl+o type open from what I can tell.

 

On Wed, Apr 7, 2021 at 3:10 PM Leland <[email protected] <mailto:[email protected]> > wrote:

I was able to reproduce your error through some trickery:

 



 

But, what’s interesting about this is that it’s not as simple as I first thought.  If it had been a simple file locking issue, then we could have just increased the number of retries that sqlite performs until the operation succeeds.

 

However, this is not a “plain” file locking issue.  It’s a “database” locking issue where two processes/threads are trying to use the database concurrently.  Almost as if two Audacity’s were running and fiddling with the same aup3.  (I know that’s not the case.)

 

I was able to reproduce the same message by holding an active “write” transaction using the “sqlite3” command line utility.  If I use the same utility to hold a “read” transaction open, then the problem doesn’t happen.  That suggests that something is writing to the database and, since we can probably assume it’s not some other application, it must be Audacity, maybe something in a different thread.

 

Are you able to reproduce it Jack?  Do you remember the exact steps?  No biggie if you can’t since this is already a great help, but if you can, then I’d be interesting to see your “%APPDATA\audacity\lastlog.txt” file after you get the error and close Audacity. (the full log is saved at Audacity exit.)

 

Again, thanks for letting us know.

 

> -----Original Message-----

> From: Jack L. <[email protected] <mailto:[email protected]> >

> Sent: Wednesday, April 7, 2021 3:31 PM

> To: Audacity-Devel list <[email protected] <mailto:[email protected]> >

> Subject: Re: [Audacity-devel] Audacity 3.0.1 RC01 (for testing only)

> 

> On windows 10, I just opened a mp3, then imported an mp3, then opened an

> mp4 and "Error opening a new empty project". Show Log shows:

> 

> 13:28:39: File name is C:\Users\jlow\Desktop\21stpunk1endcredits.mp4

> 13:28:39: Mime type is *

> 13:28:39: Opening with libav

> 13:28:39: Open(C:\Users\jlow\Desktop\21stpunk1endcredits.mp4) succeeded

> 13:28:44: DBConnection SetDBError

>     ErrorCode: 5

>     LastError: Failed to execute a project file command:

> 

> SELECT Count(*) FROM sqlite_master WHERE type='table';

>     LibraryError: database is locked

> 

> 

> Clicked ok and now it says "Connection to project file is null".

> 

> 

> Seems to work again after closing audacity and reopening.

> 

> 

> On Wed, Apr 7, 2021 at 11:00 AM James Crook < <mailto:[email protected]> [email protected]>

> wrote:

> >

> >

> > I've just completed making Audacity 3.0.1 Release Candidate 01.

> > It's available for testing from

> >  <https://www.fosshub.com/Audacity-devel.html> https://www.fosshub.com/Audacity-devel.html

> >

> > This page says what's new; it's mostly fixes to 3.0.0.

> >  <https://alphamanual.audacityteam.org/man/New_features_in_this_release> https://alphamanual.audacityteam.org/man/New_features_in_this_release

> >

> > The other important change is better error reporting, especially the 'Show

> Log' button.

> > Please give this build a good test, and if you do get the new extended error

> messages we want to know the details of the "Show Log..."

> >

> > --James

> >

> >

> >

> >

> > Checksums:

> > ----------------

> >

> > When you've downloaded an RC you can check the checksums before

> running here:

> >  <https://md5file.com/calculator> https://md5file.com/calculator

> >

> >

> > audacity-win-3.0.1rc01.exe (application/x-msdownload) - 29491024 bytes

> > SHA-256

> >

> b41b945c919479ad57321da835b31cb63b172b3d4318962eb926ab69a21896c

> 5

> >

> > audacity-macos-3.0.1rc01.dmg (n/a) - 41505451 bytes

> > SHA-256

> >

> ce01b48d7c846503da22b01b01a93eb1ec8d6811c16023b196a555fae514669f

> >

> > audacity-minsrc-3.0.1rc01.tar.xz (n/a) - 13329344 bytes

> > SHA-256

> >

> ea541d874abad6e78a0d721cb5bdc87cc6677bdaa59fbb99b9a2317a90e76e2c

> >

> > audacity-3.0.1rc01.zip (application/x-zip-compressed) - 12587511 bytes

> > SHA-256

> >

> 1955c3e6b029192e7a2c7feec8845777dd783c86da7d018f581034eeaec562a9

> >

> > audacity-manual-3.0.1rc01.zip (application/x-zip-compressed) -

> > 23198502 bytes

> > SHA-256

> > 126b1edf0730f722ad4e58a402ee6d4af741dea38426def289d94af45aaf70ec

> >

> > _______________________________________________

> > audacity-devel mailing list

> >  <mailto:[email protected]> [email protected]

> >  <https://lists.sourceforge.net/lists/listinfo/audacity-devel> https://lists.sourceforge.net/lists/listinfo/audacity-devel

> 

> 

> _______________________________________________

> audacity-devel mailing list

>  <mailto:[email protected]> [email protected]

>  <https://lists.sourceforge.net/lists/listinfo/audacity-devel> https://lists.sourceforge.net/lists/listinfo/audacity-devel

_______________________________________________
audacity-devel mailing list
[email protected] <mailto:[email protected]> 
https://lists.sourceforge.net/lists/listinfo/audacity-devel

_______________________________________________
audacity-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-devel
image001.jpg (image/jpeg, 110.6 KB) - not displayed