Error while opening jpg from note

awm
Posts: 53
Joined: Tue Jun 04, 2013 12:23 pm
Contact:

Error while opening jpg from note

Postby awm » Mon Oct 24, 2016 1:17 pm

After opening one of two jpg attachements in a note (the biggest one; (from editor modus)
1.jpg
1.jpg (15.49 KiB) Viewed 3495 times


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


After deleting and re-attaching the jpg the error still exists.
Opening the jpg in Paint works fine
User avatar
CintaNotes Developer
Site Admin
Posts: 4654
Joined: Fri Dec 12, 2008 4:45 pm
Contact:

Re: Error while opening jpg from note

Postby CintaNotes Developer » Tue Oct 25, 2016 7:20 am

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!
Alex
awm
Posts: 53
Joined: Tue Jun 04, 2013 12:23 pm
Contact:

Re: Error while opening jpg from note

Postby awm » Tue Oct 25, 2016 7:59 am

See attached files
Last edited by awm on Wed Oct 26, 2016 8:36 am, edited 1 time in total.
User avatar
CintaNotes Developer
Site Admin
Posts: 4654
Joined: Fri Dec 12, 2008 4:45 pm
Contact:

Re: Error while opening jpg from note

Postby CintaNotes Developer » Tue Oct 25, 2016 9:04 am

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!
Alex
awm
Posts: 53
Joined: Tue Jun 04, 2013 12:23 pm
Contact:

Re: Error while opening jpg from note

Postby awm » Tue Oct 25, 2016 10:03 am

I´m running CN 3.4 PRO
Nope. This jpg is not attached to any other note.

Thanks
awm
Posts: 53
Joined: Tue Jun 04, 2013 12:23 pm
Contact:

Re: Error while opening jpg from note

Postby awm » Tue Oct 25, 2016 12:02 pm

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.
User avatar
CintaNotes Developer
Site Admin
Posts: 4654
Joined: Fri Dec 12, 2008 4:45 pm
Contact:

Re: Error while opening jpg from note

Postby CintaNotes Developer » Wed Oct 26, 2016 3:45 am

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)
Alex
awm
Posts: 53
Joined: Tue Jun 04, 2013 12:23 pm
Contact:

Re: Error while opening jpg from note

Postby awm » Wed Oct 26, 2016 8:39 am

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 2798 times


also not nice.... :(
User avatar
CintaNotes Developer
Site Admin
Posts: 4654
Joined: Fri Dec 12, 2008 4:45 pm
Contact:

Re: Error while opening jpg from note

Postby CintaNotes Developer » Wed Oct 26, 2016 10:04 am

Could you please activate debug log and attempt to import XML again?
Then send the log file to support@cintanotes.com
Thanks!
Alex
awm
Posts: 53
Joined: Tue Jun 04, 2013 12:23 pm
Contact:

Re: Error while opening jpg from note

Postby awm » Wed Oct 26, 2016 11:18 am

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
Last edited by awm on Wed Oct 26, 2016 12:29 pm, edited 1 time in total.
awm
Posts: 53
Joined: Tue Jun 04, 2013 12:23 pm
Contact:

Re: Error while opening jpg from note

Postby awm » Wed Oct 26, 2016 12:29 pm

running portable version
User avatar
CintaNotes Developer
Site Admin
Posts: 4654
Joined: Fri Dec 12, 2008 4:45 pm
Contact:

Re: Error while opening jpg from note

Postby CintaNotes Developer » Thu Oct 27, 2016 9:03 am

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!
Alex
awm
Posts: 53
Joined: Tue Jun 04, 2013 12:23 pm
Contact:

Re: Error while opening jpg from note

Postby awm » Thu Oct 27, 2016 9:44 am

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 2538 times


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

I've made a Word file of it: same error again
awm
Posts: 53
Joined: Tue Jun 04, 2013 12:23 pm
Contact:

Re: Error while opening jpg from note

Postby awm » Thu Oct 27, 2016 10:45 am

Even a simple test.txt made by myself generates this error... :(


Naamloos.jpg
Naamloos.jpg (23.01 KiB) Viewed 2533 times
User avatar
CintaNotes Developer
Site Admin
Posts: 4654
Joined: Fri Dec 12, 2008 4:45 pm
Contact:

Re: Error while opening jpg from note

Postby CintaNotes Developer » Thu Oct 27, 2016 11:56 am

I think zipping it up should help, and also greatly reduce the size.. right click -> send to -> compressed folder
Alex
awm
Posts: 53
Joined: Tue Jun 04, 2013 12:23 pm
Contact:

Re: Error while opening jpg from note

Postby awm » Fri Oct 28, 2016 6:54 am

zip works!
Attachments
log.4.txt.zip
(2.57 MiB) Downloaded 1277 times
User avatar
CintaNotes Developer
Site Admin
Posts: 4654
Joined: Fri Dec 12, 2008 4:45 pm
Contact:

Re: Error while opening jpg from note

Postby CintaNotes Developer » Wed Nov 02, 2016 11:51 am

Thanks for the log!
Do you have any rules defined?
If so, could you try to import without rules?
Alex
awm
Posts: 53
Joined: Tue Jun 04, 2013 12:23 pm
Contact:

Re: Error while opening jpg from note

Postby awm » Wed Nov 02, 2016 1:37 pm

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
User avatar
CintaNotes Developer
Site Admin
Posts: 4654
Joined: Fri Dec 12, 2008 4:45 pm
Contact:

Re: Error while opening jpg from note

Postby CintaNotes Developer » Thu Nov 03, 2016 8:22 am

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!
Alex
awm
Posts: 53
Joined: Tue Jun 04, 2013 12:23 pm
Contact:

Re: Error while opening jpg from note

Postby awm » Fri Nov 04, 2016 3:51 pm

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 2429 times

Return to “CintaNotes Personal Notes Manager”