olivierkes / manuskript

A open-source tool for writers
http://www.theologeek.ch/manuskript
GNU General Public License v3.0
1.75k stars 232 forks source link

Crash on interacting with anything #1168

Closed tryhardsnipehrd closed 10 months ago

tryhardsnipehrd commented 1 year ago

Hi all, I was trying to get Manuskript working, specifically 0.15.0. I did not need sections outside of the chapters, so I went to delete the automatic sections that are created with the Novella template. Upon doing this, I was immediately greeted with a crash. I restarted from terminal, and did it again, and the crash report is the following

CRITICAL> An unhandled exception has occurred!
Traceback (most recent call last):
  File "/usr/share/manuskript/manuskript/ui/welcome.py", line 349, in deleteTemplateRow
    self.updateTemplate()
  File "/usr/share/manuskript/manuskript/ui/welcome.py", line 329, in updateTemplate
    self.updateWordCount()
  File "/usr/share/manuskript/manuskript/ui/welcome.py", line 370, in updateWordCount
    self.template[1][templateIndex][1])
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
IndexError: list index out of range

This happens in both 0.15.0 and 0.14.0 If anyone could perhaps clue me into a fix for this, it is quite annoying that I am unable to even begin to move my project over to this amazing piece of software!

TheShadowOfHassen commented 1 year ago

What operating system are you using?

tryhardsnipehrd commented 1 year ago

Apologies, I thought I had gotten that specified. Kali Linux, so a Debian based system, latest releases.

TheShadowOfHassen commented 1 year ago

Can you post your latest log? it's in .local/share/manuskript/logs. It's a bug that probably need fixed, we will need a bit more information to do it.

0.15.on Ubuntu and haven't had that problem. For a quick fix, you could try deleting the manuskript file in .cache. and .config.

P.S. I don't use the templates, they're a pain. I just create the files and folders I need in a program. It's easier that way

Also, I would disable save to single file and save Manuksript as a .msk file and a folder instead of a zipped archive. It's more secure, also, please make backups. People have been having problems with manuskript crashing and loosing their stories. I haven't ever had it happen myself, but I'd hate to have it.

tryhardsnipehrd commented 1 year ago

2023-05-28_18-51-40_manuskript#2034557.log

Hi again! The newest log is here, I made sure to trigger the bug before dropping this log so that I'm sure it's there!

TheShadowOfHassen commented 1 year ago

Thanks! Can use the program by skipping the template and just create an empty project?

tryhardsnipehrd commented 1 year ago

I was able to get it working that way, just seems a small bit annoying to not be able to use the templates. For now however, this works beautifully, and I appreciate the effort to get it working!

marosoft commented 1 year ago

I could not reproduce it. Could it be related to a version of Qt used?

I can see that the code depends on setting and using the properties of the widgets in the logic which potentially may work differently for a different version of the library.

On Mon, 29 May 2023 at 05:26, tryhardsnipehrd @.***> wrote:

I was able to get it working that way, just seems a small bit annoying to not be able to use the templates. For now however, this works beautifully, and I appreciate the effort to get it working!

— Reply to this email directly, view it on GitHub https://github.com/olivierkes/manuskript/issues/1168#issuecomment-1566512589, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6DH34HCDMEYO5TJ2QSW4DXIQQORANCNFSM6AAAAAAYRTFP7A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

XVicarious commented 1 year ago

I am seeing this crash as well. I'm on Arch, with QT5 5.15.10. With manuskript 0.15.0-1. All while clicking through the templates on the welcome screen.

bufalo1973 commented 1 year ago

It happens when you select a template that is not empty and then you click on any empty template (empty fiction/non-fiction). If you select an empty template from another empty template it doesn't crash.

TheJackiMonster commented 10 months ago

I can reproduce this. However the issue seems to be a duplicate of #1163.

TheJackiMonster commented 10 months ago

Got solved via commit: https://github.com/olivierkes/manuskript/commit/14392909c3592a7546e9c76f914349c98749e02d