Page 1 of 2

Error while opening jpg from note

Posted: Mon Oct 24, 2016 1:17 pm
by awm
After opening one of two jpg attachements in a note (the biggest one; (from editor modus)
1.jpg
1.jpg (15.49 KiB) Viewed 6714 times


I got an error message:
b.jpg
b.jpg (15.87 KiB) Viewed 6714 times


After deleting and re-attaching the jpg the error still exists.
Opening the jpg in Paint works fine

Re: Error while opening jpg from note

Posted: Tue Oct 25, 2016 7:20 am
by CintaNotes Developer
Hi awm,

Thanks for the report!

Can you share the jpg files with me?
It's ok if they are private, but at least I'd need to know their exact size in bytes.
Thanks!

Re: Error while opening jpg from note

Posted: Tue Oct 25, 2016 7:59 am
by awm
See attached files

Re: Error while opening jpg from note

Posted: Tue Oct 25, 2016 9:04 am
by CintaNotes Developer
Thanks a lot! A couple more questions:

1) what is your exact CN version?
2) are you sure that same files are not attached in any other note?

Thanks!

Re: Error while opening jpg from note

Posted: Tue Oct 25, 2016 10:03 am
by awm
I´m running CN 3.4 PRO
Nope. This jpg is not attached to any other note.

Thanks

Re: Error while opening jpg from note

Posted: Tue Oct 25, 2016 12:02 pm
by awm
Adding a new test:

1.
Created a new note.
Attached the problem jpg to this note.
Error pops up

2.
Did the same in an other notebook in an existing and new note.
PROBLEM DIDN'T POP UP. JPG opened fine.


Size of former notebook (with the problem) 14.904 kB with 1.347 notes stored.

Re: Error while opening jpg from note

Posted: Wed Oct 26, 2016 3:45 am
by CintaNotes Developer
I also couldn't reproduce the problem and tend to think this is a notebook corruption issue.
Please export your notebook to XML and import it into a new one (Please note that if you're using Simplenote sync,
the process is a bit more involved than that, please ask what to do in this case)

Re: Error while opening jpg from note

Posted: Wed Oct 26, 2016 8:39 am
by awm
mmm that's not nice.

But I tried to export to XML and import in a new notebook.
But that gives me this
Naamloos.jpg
Naamloos.jpg (13.6 KiB) Viewed 6017 times


also not nice.... :(

Re: Error while opening jpg from note

Posted: Wed Oct 26, 2016 10:04 am
by CintaNotes Developer
Could you please activate debug log and attempt to import XML again?
Then send the log file to support@cintanotes.com
Thanks!

Re: Error while opening jpg from note

Posted: Wed Oct 26, 2016 11:18 am
by awm
Timestamp Thread Forced Function Details
13:15:18.424510 5888 logging::Log::init Started logging
13:15:18.424510 5888 logging::Log::init App version: 3.4, Oct 17 2016
13:15:18.424510 5888 X ui::`anonymous-namespace'::runProgressFunction ERROR:SQLite error 19:
FOREIGN KEY constraint failed


Importing again: same error as in message above

Re: Error while opening jpg from note

Posted: Wed Oct 26, 2016 12:29 pm
by awm
running portable version

Re: Error while opening jpg from note

Posted: Thu Oct 27, 2016 9:03 am
by CintaNotes Developer
I'm afraid this is only log of the error, but we need to see what happened just before the error.
So you need to turn on debug logging first in the Help/Debug menu.
After program restarts, try to import again.
This will generate a much, much bigger file.
Thanks in advance!

Re: Error while opening jpg from note

Posted: Thu Oct 27, 2016 9:44 am
by awm
Ah I see. I've made a new error log like you descriped.

but

While attaching the file to this reply I got an error message:
Naamloos.png
Naamloos.png (2.24 KiB) Viewed 5757 times


Even after deleting .txt from filename, same error pop ups again

I've made a Word file of it: same error again

Re: Error while opening jpg from note

Posted: Thu Oct 27, 2016 10:45 am
by awm
Even a simple test.txt made by myself generates this error... :(


Naamloos.jpg
Naamloos.jpg (23.01 KiB) Viewed 5752 times

Re: Error while opening jpg from note

Posted: Thu Oct 27, 2016 11:56 am
by CintaNotes Developer
I think zipping it up should help, and also greatly reduce the size.. right click -> send to -> compressed folder

Re: Error while opening jpg from note

Posted: Fri Oct 28, 2016 6:54 am
by awm
zip works!

Re: Error while opening jpg from note

Posted: Wed Nov 02, 2016 11:51 am
by CintaNotes Developer
Thanks for the log!
Do you have any rules defined?
If so, could you try to import without rules?

Re: Error while opening jpg from note

Posted: Wed Nov 02, 2016 1:37 pm
by awm
That worked. Import went OK.
Even attaching en opening the problem-jpg works smooth without error poping up.

But logically the remaining question is : how to get my rules in the new populated notebook? ............

But thanks so far

Re: Error while opening jpg from note

Posted: Thu Nov 03, 2016 8:22 am
by CintaNotes Developer
This is most probably a bug in rules import function.
Could you please send me the contents of the <rules> tag from the XML?
I'll try to fix it asap.
Thanks in advance!

Re: Error while opening jpg from note

Posted: Fri Nov 04, 2016 3:51 pm
by awm
I´m not sure how and where to find the XML part where <rules> resides.... :(
After opening the XML in internet eplorer I get the following:


Naamloos.jpg
Naamloos.jpg (367.08 KiB) Viewed 5648 times