1. Beatrix Willius
  2. Valentina Database ADK
  3. Montag, August 06 2018, 08:23 AM
  4.  Abonnieren via E-Mail
I'm having fun with misencoded data. Should

theCursor.Field("OriginatorFrom";).setString(App.MailFields.OriginatorFrom)

make a hard crash when the data in App.MailFields is misencoded?

Crash log:

Thread 27 Crashed:
0 libvshared_fat_release_x64.dylib 0x000000011551b6d8 fbl::String::c_str() const + 4
1 v4rb_cocoa_64.dylib 0x00000001153d024d Str_Unicode::c_str() const + 13
2 v4rb_cocoa_64.dylib 0x00000001153de81b Field_SetString(REALobjectStruct*, REALstringStruct*) + 200
3 Mail Archiver X.debug 0x000000010acd8df6 VField.SetString%%o<VField>s + 54
4 Mail Archiver X.debug 0x000000010b02bad4 WriteMessageToValentina.Constructor%%o<WriteMessageToValentina>o<VDatabase> + 28052 (/WriteMessageToValentina:35)
5 Mail Archiver X.debug 0x000000010b16aabc WriteMessageToDatabase.Constructor%%o<WriteMessageToDatabase>so<VDatabase>o<ExportOptions>ss + 2492 (/WriteMessageToDatabase:16)
6 Mail Archiver X.debug 0x000000010b27bf6e MailParser.parse%i8%o<MailParser> + 11838 (/MailParser:118)
7 Mail Archiver X.debug 0x000000010b2234ff ArchiveThread.Archive%%o<ArchiveThread> + 24239 (/ArchiveThread:167)
8 Mail Archiver X.debug 0x000000010b218328 ArchiveThread.Event_Run%%o<ArchiveThread> + 248 (/ArchiveThread:7)
9 XojoFramework 0x000000010ddef97d 0x10db8d000 + 2500989
10 XojoFramework 0x000000010dcb4223 0x10db8d000 + 1208867
11 libsystem_pthread.dylib 0x00007fff82f0099d _pthread_body + 131
12 libsystem_pthread.dylib 0x00007fff82f0091a _pthread_start + 168
13 libsystem_pthread.dylib 0x00007fff82efe351 thread_start + 13

The string causing this is foobared japanese text:

https://imgur.com/fRS4KqL.png

Mit freundlichen Grüßen/Regards

Beatrix Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals
Kommentar
There are no comments made yet.
Ivan Smahin Akzeptierte Antwort
Please check your V4RB log - do you see something like
"ERROR: Valentina plugin have got string with UNDEFINED encoding."
"Please correct this in your Xojo code using DefineEncoding() method."
there?

Could you send me that Japanese string for testing? (Some small RB project will be better).
Kommentar
There are no comments made yet.
Beatrix Willius Akzeptierte Antwort
Hi Ivan,

no, there is no log file. Such a log file shows up when writing to the database. Here the crash occurs just before writing.

I'll make an example. Actually, it was good that the crash happened because it exposed a bug in my code :D . Hm... I also made an example for the multi-threaded diagnosis not working for me. I don't think I uploaded the example.
Regards

Beatrix Willius
Kommentar
There are no comments made yet.
Beatrix Willius Akzeptierte Antwort
See http://www.valentina-db.com/bt/view.php?id=8338

By the way, your Mantis site isn't configured correctly with the SSL certificate. After logging in the site isn't https anymore.

Mit freundlichen Grüßen/Regards

Beatrix Willius

http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals
Kommentar
There are no comments made yet.
  • Seite :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories