fabiocolacio / Marker

🖊 A gtk3 markdown editor
GNU General Public License v3.0
832 stars 75 forks source link

crash when opening file #282

Closed Mandarancio closed 4 years ago

Mandarancio commented 4 years ago

I am experiencing crash when loading a file that are actually closing marker without any error message or status. I am investigating it.

Mandarancio commented 4 years ago

The problem seems to be generated by the gtk_stack_add_named () function that crash.

Mandarancio commented 4 years ago

The problem was due to the fact that if no other documents where opened Marker was trying to to close the window before opening the new document. Problem fixed in commit 519290a by increasing the document counter before closing the current empty document.