-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Program crashes after computer wakes up from sleeping #2120
Comments
@damichab can you confirm that this issue happens only with the sqlite database (ctb) and not with the xml (ctd)? |
It happens with the sqlite files. Whether or not it only happens with sqlite files I do not know. I will test this out next week sometime. While I am at it, I will also test if file size is a factor or not as well. |
Confirm this one. Even just clicking another node within an opened document will close cherrytree. |
Sorry it took so long, I can see how it crashes wonderfully when it loses access to an open file. I'll try to make it more robust. |
Cool. Thankyou.
…On Sun, 5 Nov 2023, 9:40 pm Giuseppe Penone, ***@***.***> wrote:
Sorry it took so long, I can see how it crashes wonderfully when it loses
access to an open file. I'll try to make it more robust.
—
Reply to this email directly, view it on GitHub
<#2120 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALB5GNGF24FT7SR6QA5LTL3YC5X37AVCNFSM6AAAAAAQO32FL6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJTG4YDMMRZGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi Giuseppe,
It would seem that from version 1.0.4, that the problem appears to be
solved (not before then). This is great, I have not lost anything for a
while now!!
But there appears to be a different problem now with backups. Every so
often I get the following error:
[image: image.png]
This seems to appear when I go away from the computer after saving and when
I come back the computer has slept. But from what I can tell, this file
gets created when saving, then gets copied to the backup directory, with
the ~~~ extensions. Once I get the above error message, the program just
locks up. But I still have not lost any data, so 'My' file (Adelaide.ctb)
is being saved to the server. All that is not happening is that the file in
the error message is not transferring to the backup folder.
I really appreciate the work you are doing with this program.
Kind regards,
David Bailey.
…On Mon, 6 Nov 2023 at 07:32, David Bailey ***@***.***> wrote:
Cool. Thankyou.
On Sun, 5 Nov 2023, 9:40 pm Giuseppe Penone, ***@***.***>
wrote:
> Sorry it took so long, I can see how it crashes wonderfully when it loses
> access to an open file. I'll try to make it more robust.
>
> —
> Reply to this email directly, view it on GitHub
> <#2120 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ALB5GNGF24FT7SR6QA5LTL3YC5X37AVCNFSM6AAAAAAQO32FL6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOJTG4YDMMRZGI>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
Hi David, |
Hi Giuseppe, I have had a bit more of a play with saving. I have a (Windows 2016) server which has upon it a personal directory which I map to my computer as 'H' drive.
is the directory I keep several CherryTree files, one of which is Adelaide.ctb. I configured settings to send CherryTree backups to...
CherryTree makes its own subdirectories for each file within the backup directory. The files in this directory once the tilde(s) removed, open just fine. From my notebook, I managed (accidently) to recreate the error and I think I now know more about what is going on. I opened Adelaide.ctb, worked on the file for a while, manually saved the file and closed the screen. A hour or two later, I opened the screen and saw the error. I click on and the program just hangs. In the past with this error, waiting did not do anything. I can only close the Cherry tree file by the Winodws Error Message "The program is not responging", and clicking . The file that I am working on is saved properly. I think that the problem is just that I closed the computer down before the intermediate backup file (with the numbers at the end of it) was moved to the backup directory. This intermediate backup file also opens just fine and only goes away when I manually delete it. You might want to check for intermediate backup files upon opening a file and move it to the backup folder perhaps. Anyway, hope this rundown helps. I have another suggestion about saving too... Because my file is so large, it takes time to save, to the order of several minutes. Consequently I have the auto save set to 2 hours. Every so often I save manually, but then a short while later (less then 2 hours) the auto save kicks in and resaves the file. How about resetting the time of auto save from the time of the last manual save. The auto save is important for those times you get carried away and forget to save for a while, but it does not need to kick in less then the allocated time after a manual save. -- David. |
Hi David, thanks for your description, I will review the saving with backup in case of a very large SQLite file. I think it makes definitely sense to reset the autosave timeout when you manually save, I shall have a look. I'm surprised though that it takes so long to save your SQLite file, I wonder if it would make sense for you to try and save your data using the recent new type called "Multiple Files in Hierarchical Folder Structure" - that would probably be much faster for you as that is backing up (and rotating) only the data that is updated while with SQLite I have no other option than backing up (and rotating) the whole db all the times. |
Also with saving that I find annoying...
I save my work, go away for more than 2 hours (2 hours being my auto save
interval), come back, start working and it autosaves almost immediately.
…On Thu, 4 Jan 2024 at 08:18, Giuseppe Penone ***@***.***> wrote:
Hi David, thanks for your description, I will review the saving with
backup in case of a very large SQLite file.
I think it makes definitely sense to reset the autosave timeout when you
manually save, I shall have a look.
I'm surprised though that it takes so long to save your SQLite file, I
wonder if it would make sense for you to try and save your data using the
recent new type called "Multiple Files in Hierarchical Folder Structure" -
that would probably be much faster for you as that is backing up (and
rotating) only the data that is updated while with SQLite I have no other
option than backing up (and rotating) the whole db all the times.
—
Reply to this email directly, view it on GitHub
<#2120 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALB5GNF2XRCK2WPK3NWWL6TYMXGZXAVCNFSM6AAAAAAQO32FL6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZWGAYTINBYHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
In the last two hours your pc was running or suspended? |
Suspended.
…On Fri, 5 Jan 2024, 6:04 am Giuseppe Penone, ***@***.***> wrote:
In the last two hours your pc was running or suspended?
—
Reply to this email directly, view it on GitHub
<#2120 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALB5GNE3W4ERZZTM5GBLJCTYM374JAVCNFSM6AAAAAAQO32FL6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZXGY2TIMBWGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Ok I added the reset of the autosave timeout when you save manually and also ensured that the suspended time doesn't add up in the autosave timeout |
Thanks.
…On Sun, 7 Jan 2024 at 02:10, Giuseppe Penone ***@***.***> wrote:
Ok I added the reset of the autosave timeout when you save manually and
also ensured that the suspended time doesn't add up in the autosave timeout
—
Reply to this email directly, view it on GitHub
<#2120 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALB5GNFBEEAT4NHSJ4FDTZLYNFV7FAVCNFSM6AAAAAAQO32FL6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZZG4ZTENJUHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Cherrytree is prone to crashing after it loses access to an open file.
To recreate problem...
Continuing to work will also do it, but at a random time.
Moving a number of nodes in quick succession is not a good practice either.
Working on the one document for several hours and then trying to click on another node and clicking back also not good.
This is an old problem (5 years I am guessing) that I have emailed about before. Currently on latest version of Windows 10 and latest update of Cherrytree with files stored on a Windows 2016 home file server. Still, as frustrating as this problem is, I still consider this the best program for what I need!
Cheers,
David.
The text was updated successfully, but these errors were encountered: