Crash when adding records
Beatrix Willius
bwillius at gmx.de
Tue Jun 19 06:08:22 CDT 2012
Got the second crash report from a user when adding records:
Thread 8 Crashed:
0 libvshared_fat_release.dylib 0x078438b2 fbl::String::String(unsigned short const*, int) + 30
1 V4RB.rbx_0.dylib 0x0778276a Database_SqlSelect(fbl::smart_ptr<fbl::vsql::I_SqlDatabase>, REALstringStruct*, int, int, int, fbl::smart_ptr<fbl::ArrayOfSmartPtrs<fbl::smart_ptr<fbl::I_Value> > >) + 100
2 V4RB.rbx_0.dylib 0x0777f852 Database_SqlSelect_1(REALobjectStruct*, REALstringStruct*, int, int, int) + 281
3 com.mothsoftware.mailarchiverx 0x0074a256 VDatabase.SqlSelect%o<VCursor>%o<VDatabase>si4i4i4 + 145
4 com.mothsoftware.mailarchiverx 0x00c53157 MailParser.CheckMailUnique%b%o<MailParser>i4 + 245
5 com.mothsoftware.mailarchiverx 0x00c4cb84 MailParser.parse%i4%o<MailParser> + 12094
6 com.mothsoftware.mailarchiverx 0x00bde987 ArchiveThread.DoWork%%o<ArchiveThread> + 2438
7 com.mothsoftware.mailarchiverx 0x00bddfa1 ArchiveThread.Event_Run%%o<ArchiveThread> + 56
8 rbframework.dylib 0x01433ecb ThreadYieldAsNeeded() + 289
9 libsystem_c.dylib 0x9772eed9 _pthread_start + 335
10 libsystem_c.dylib 0x977326de thread_start + 34
The sql of CheckMailUnique isn't really complicated
dim CheckSumCursor as VCursor = theArchive.SqlSelect("select RecID from message where CheckSum = " + Str(CheckSum) , EVCursorLocation.kServerSide, EVLockType.kNoLocks, EVCursorDirection.kRandom)
The checksum is a unique constraint for my records. There are no indexes on the field because it isn't used for sorting and searching. For Valentina 5 there are no indexes available for new records anyway because I add them after adding records is finished. I don't want to make the field unique because I need duplicate records for testing.
This crash did NOT occur with Valentina 4.9. Does anyone have an idea what might cause the crash here? Using Real.Studio 2012r4, Mac OS 10.7.4, latest Valentina beta.
Mit freundlichen Grüßen/Regards
Trixi Willius
http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals
More information about the Valentina-beta
mailing list