voldyman / MarkMyWords

Markdown editor
MIT License
216 stars 19 forks source link

Export working bad #36

Open nico202 opened 9 years ago

nico202 commented 9 years ago

Hi, I am not able to export my text to pdf (a 0 byte file get created), nor to print it. Another thing that happen, is the wrong html encoding (apostophed letters like òàèù are shown like: è) Thanks, Nicolò Edit: I'm on elementary OS

voldyman commented 9 years ago

i am unable to reproduce it on my system, can you may be record a small screen cast of what steps you go through/text you enter so i may be able to reproduce it here and fix it.

nico202 commented 9 years ago

Pdf export: http://www.screencast.com/t/6PfloQsDu2 (0byte file) Print to file: http://www.screencast.com/t/d1RduHZ26E (not even created. Evince, for exaple, do work)

voldyman commented 9 years ago

I found and fixed the export to file bug but couldn't reproduce the export to pdf bug, still changed the way pdf export worked, please try again.

if you are using it from the ppa, it might take a few hours to get to it otherwise build from source.

nico202 commented 9 years ago

I compiled it manually. Print is still now working. After trying to print, I don't get anymore the text preview, and I got a crash report: http://postimg.org/image/3o3nc9r0p/ http://postimg.org/image/lh88pwp05/ Edit: the preview is missing only until next text edit

voldyman commented 9 years ago

that is very weird,

$ gdb mark-my-words
$ run

then type some text, press the print button and when the program crashes, in the terminal type bt and paste the output of the whole thing here.

nico202 commented 9 years ago

It is not the mmw itself to crash, as seen in the screenshot, I think it is just the printing process. So, no backtrace Edit: Yes, It's localized in italian 2015-02-16 17:53 GMT+01:00 Akshay Shekher notifications@github.com:

that is very weird,

  • are you using translations?
  • can you run mmw from terminal using the commands

$ gdb mark-my-words $ run

then type some text, press the print button and when the program crashes, in the terminal type bt and paste the output of the whole thing here.

— Reply to this email directly or view it on GitHub https://github.com/voldyman/MarkMyWords/issues/36#issuecomment-74538473.

voldyman commented 9 years ago

@emersion you are using a translated version too, right? i think the "Print Dialog" text is getting translated incorrectly or something because it works perfectly on my system

emersion commented 9 years ago

@voldyman I was using a translation for my desktop, but now I've switched to English. I'll try on other computers I have in French and with elementary OS.

voldyman commented 9 years ago

I couldn't find a similar issue anywhere else, it is prolly due to dgettext("gtk30", ...

ghost commented 8 years ago

I have the same error. Can't export to PDF, 0 byte file. Have Version 0.7. Debian Testing, no Error Msg and no Crash. Try in terminal with gdb.

malte@LeppiDeb:~$ gdb mark-my-words 
GNU gdb (Debian 7.11.1-2+b1) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from mark-my-words...done.
(gdb) run
Starting program: /usr/bin/mark-my-words 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe1a0d700 (LWP 21795)]
[New Thread 0x7fffe0dd5700 (LWP 21796)]
[New Thread 0x7fffe05d4700 (LWP 21797)]
[New Thread 0x7fffde498700 (LWP 21798)]
[New Thread 0x7fffdc9ff700 (LWP 21799)]
[New Thread 0x7fff8fffd700 (LWP 21800)]
[New Thread 0x7fff8f7fc700 (LWP 21801)]
[New Thread 0x7fff8effb700 (LWP 21804)]

** (mark-my-words:21791): WARNING **: FileHandler.vala:26: Cannot read "": Operation not supported

** (mark-my-words:21791): WARNING **: FileHandler.vala:45: Cannot read "": Operation not supported

** (mark-my-words:21791): WARNING **: FileHandler.vala:45: Cannot read "": Operation not supported

** (mark-my-words:21791): CRITICAL **: string_replace: assertion 'self != NULL' failed
[New Thread 0x7fff8e7fa700 (LWP 21813)]
[New Thread 0x7fff8dff9700 (LWP 21814)]
[New Thread 0x7fff8d7f8700 (LWP 21815)]
[New Thread 0x7fff8cff7700 (LWP 21816)]
[Thread 0x7fff8e7fa700 (LWP 21813) exited]
[New Thread 0x7fff8e7fa700 (LWP 21833)]
[New Thread 0x7fff6ffff700 (LWP 21834)]
[New Thread 0x7fff6f7fe700 (LWP 21835)]
[New Thread 0x7fff6effd700 (LWP 21836)]
[Thread 0x7fff8dff9700 (LWP 21814) exited]
[Thread 0x7fff6ffff700 (LWP 21834) exited]
[Thread 0x7fff8e7fa700 (LWP 21833) exited]
[Thread 0x7fff6effd700 (LWP 21836) exited]
[Thread 0x7fff8f7fc700 (LWP 21801) exited]
[Thread 0x7fff8fffd700 (LWP 21800) exited]
[Thread 0x7fffdc9ff700 (LWP 21799) exited]
[Thread 0x7fff6f7fe700 (LWP 21835) exited]
[Thread 0x7fff8cff7700 (LWP 21816) exited]
[Thread 0x7fff8d7f8700 (LWP 21815) exited]
[Thread 0x7fff8effb700 (LWP 21804) exited]
[Thread 0x7fffde498700 (LWP 21798) exited]
[Thread 0x7fffe05d4700 (LWP 21797) exited]
[Thread 0x7fffe0dd5700 (LWP 21796) exited]
[Thread 0x7fffe1a0d700 (LWP 21795) exited]
[Inferior 1 (process 21791) exited normally]
(gdb) bt
No stack.
(gdb) exit
Undefined command: "exit".  Try "help".
(gdb) quit