-
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 crash when attempting to print #2066
Comments
It is likely to be one particular node that causes the crash. I'm about to release a new version 0.99.48 where I have done a lot of work on multiple issues with the export to pdf on windows, so I hope the problem is already solved. If not please try to duplicate your database (copy/paste) then in the copy try to find which one is the node that causes the trouble and please share with me privetely |
I just tested this theory of bad database. What I did:
Result: Still crashes the very same way as before. I also repeated the test with one minor change - I unchecked the «include node name» option before printing, but with the same resulting crash. Seems to me that the database is not the cause of this issue. |
Today I did more tests bacause of this issue. First - I unpacked and replaced CT with version 0.99.48. Second - I tested if the settings could be the culprit The boring details I tried to figure what setting caused Cherrytree to crash at printing At this point I felt certain that it had to be something about the config that caused CT to crash on print. The method I used to try to pin-point the exact setting that caused CT to crash was to use the program Winmerge in order to copy/replace/delete lines that are different. For each different line (or group of lines), I started CT, navigated to a specific node and then print. If CT crash on print, I move/copy/remove the next difference from config-1.cfg to config.cfg And so I proceeded, but eventually - config.cfg was finally exactly to config-1.cfg - But somehow every attempt to print ended in CT crashing the same way, even when the files was becoming exactly identical by content. That is why the one attempt that I was actually successfully able to print, was a rare fluke. About that "fluke" - there was no difference in the number of apps or services open at the same time. I also had this theory that I might be able to print - if and only if CT was starting up while no config.cfg was present. So I did the exact test once again, I deleted the config.cfg, open CT, then opened the database file, found the node and then printed. Other important information in question - could it be a node/formatting error ? So I have a somewhat large database consisting of text only, counts between 4-5 MB of size. I've tried to print several different nodes with different characteristics, every attempt ends up with CT crash hard. I also have a couple of other databases, trying to print from one of them cause CT to crash hard. |
Would it be ok for you to send me privately your database (or exported node that causes the crash) so I can try and reproduce? |
Well - I can strip it completely down first. How do I proceed to send ? |
You can find my email in cherrytree help--about dialog |
in the .48 version it is all broken on linux, i never ever be able to export to pdf but in the 2-3 latest released i cant even export to html anymore since it stop the export in random nodes (never the same). |
I just sent a mail with a stripped-down version of database attached. |
Confirm .44 export to HTML work perfectly on the same db when .47 and .48 didnt... |
I've just made an attempt to print from the same empty node (same file I sent you), it crashes on me just like before. Takes about 10-20 seconds when the program hangs, and then the error message pops up and application shut down hard.
|
@Groberen do you have more than a PC with windows where you can test this? Can you try to disable the antivirus and see if it changes? Also you may enable the debug log in the preferences dialog, then restart cherrytree and try and reproduce the crash and then paste the log here. |
No, sorry to say I have only acess to one speciment (that is connected on that particular network and also have access to that particular printer). I DO have access to a W10 and a W11 laptops, but those aren't connected to same network and thus not able to test on a real printer. But - enable debug Log I can do. |
Today I exported the empty node to pdf, no issue. Works for me. The pdf file are afaik. without any issues. |
Here is the contents of debug log.
This debug log was from two sessions, in both cases printing was attempted and in both cases it crashed. Another bug - unrelated |
Actually in holiday, i'll send you the whole db next week. It is an heavy one, i think it is 1gb or more iirc (2-3 years of notes) |
hello, I noted something in the Windows 10 event observer: |
@Ludovic-17 is it crashing when you print a particular node or even if you print an empty node? |
It happened whatever the base used and the chosen node. I even tried with a node containing only one word. I did not try with an empty node. |
Would you be able to try and build from the latest source code following the guide on https://github.com/giuspen/cherrytree#building-cherrytree-on-windows and report if that crashes too? |
Sorry, I'm a simple user. I went to see the link as well as https://www.msys2.org/ and it doesn't have my field at all. |
Unfortunately msys2 while very powerful is also pretty unstable. The libraries are continuously updated and those libraries are mostly tested on Linux while the problems on Windows come out after the updated library have been deployed. |
I always been on linux and i wasnt ever able to print to pdf file or even export to pdf. |
@iNoSec2 the export to HTML crash should be fixed in the next release coming in a week, as for the export to pdf crash I cannot help if you don't give me some data to reproduce the crash. |
I just installed and try the new version 0.99.49 (after a restart of the PC) and that does not change anything. The problem is exactly the same on the same DLL (DWrite.dll). I have just reinstalled the 0.99.46 version and the printing normally works. |
@Ludovic-17 so you identified the DLL that causes the crash, that helps. Have you tried downloading 0.99.49 portable archive from https://www.giuspen.net/cherrytree/#downl and replace/overwrite the faulty DLL is fixing the issue? (May be incompatible but it is worth a try) |
I noted in the Windows 10 event observer: BUT DWRITE.DLL (Microsoft DirectX Typography Services) is actually found in C:\Windows\Syswow64 And so not in the portable archive either. |
No if it's not a DLL part of the portable archive then it is not the root cause. Potentially libgtkmm could be instead. |
Why not. If this can help you diagnose the problem. |
Please try https://www.giuspen.net/software/cherrytree_0.99.46.0_20220919_win64_portable.7z and report if it crashes |
I tried this version and printing does not work. Same crash and same module concerned. |
Thanks @Ludovic-17 at least now I am 100% sure that it's an issue introduced in a library update in msys2. If you would succeed in building/running cherrytree from the source code as described in https://github.com/giuspen/cherrytree#building-cherrytree-on-windows then I could guide you in copy and paste the crash log that I need to identify the library to blame so that I can then raise an issue there trying to have it fixed |
Sorry, I have already answered this subject. Each has their favorite field, their hobbie. For me, it is electronics applied to the High Frequency Domaine. I hate computer science and Windows 10 as soon as it starts to cough. |
No worries @Ludovic-17 thanks for your help so far |
Always the same crash problem during printing and with all versions greater than 0.99.46 on Windows 10. |
I would like to go to the bottom of this crash but without being able to reproduce it, it's impossible for me to do more progress. |
Fortunately, I went back there: my answer by email was copied here and made my complete contact details appear!? I just deleted the message in question. Nice github! I just changed my pc. New Windows 10 Pro configuration, new installation of Cherrytree (latest portable version) and ?? Here is the line that appears in the log with each attempt to printing: This is another PC, a brand new installation of a Windows different from the one I had, there is nothing in common and Cherrytree does not work better, it's worse. So ? |
Language = French Test carried out: Result : In the log : Windows 10 event observer: print service error : application error : For Print to pdf : For Print to printer : This is all the information I can give you. |
I finally understood and in fact I can reproduce the crash now. |
Yes, absolutely, I can go through the creation of a PDF for printing. However, I hope that you will be able to repair this. It seems that we are on the right track anyway. Finally, it seems that the defect appeared just after version 0.99.46 (at least it was the case for my old PC). |
This will be fixed in upcoming 0.99.54 |
Fine result with 0.99.54, thank you ;) |
Version, Operative system
Versjon Windows 10 Pro
Versjon 21H1
Installert den 23.02.2021
Operativsystembygg 19043.1766
Opplevelse Windows Feature Experience Pack 120.2212.4180.0
Particular printer model in use
RICOH MP C3504 PCL 6
Network printer.
Cherrytree version
Version 0.99.47
Limitations
Originally I plan to download an older version of CT (the compressed one because I want to put it in another directory so don't have to install over the current version) and also I didn't figured how to get hand in an older version at portableapps.com (because that site is designed in such a way that even if I find a page describing an older version of CT, the link to the download page will always only offer the very latest version - all pages at portableapps.com that describe older versions of CT seems to forward the user to the same download page).
So because of that I haven't being able to try to print using an older version of CT.
Describe the bug
Some second after attempting to print the contents of a node, an error message pops up - after clicking on it, Cherrytree terminate and any work not saved will be lost.
Error message says (with English translation - as best as I can, but the exact wording in the English version of Windows may be different)
[Window Title]
cherrytree.exe
[Main Instruction]
cherrytree.exe har sluttet å virke
[Content]
Et problem førte til at programmet sluttet å fungere som det skal. Programmet vil bli lukket, og du vil få beskjed hvis en løsning er tilgjengelig. <a problem caused the program to stop properly working. The program will be closed and you'll get a message if a solution is available>
[Lukk program]
To Reproduce
If applicable, attach a non-personal document where the issue can be reproduced systematically.
Steps to reproduce the behavior:
Print to PDF or to Microsoft XPS printer - what happens
On that particular computer, the Bullzip PDF printer is installed (the last version before the software turn useless without paying).
I made 3 attempt to select Bullzip PDF printer to print. In all 3 attempts, the following happens:
I made 2 attempts to use the Windows xps printer, and this happens:
Temporary workaround
Use another word processor - I choosed Libre Office Writer. Select any text in the node, then copy and paste, then use the word processor to print.
I'll have a look at the xps option when I got time, but since I have to use another software to print - I choose a word processor because I can then manage to control the page shifts. But - not a good solution.
The text was updated successfully, but these errors were encountered: