Crash when adding records

Ruslan Zasukhin ruslan_zasukhin at valentina-db.com
Thu Jul 19 17:42:56 CDT 2012


On 7/16/12 4:21 PM, "Beatrix Willius" <bwillius at gmx.de> wrote:

Hi Beatrix,

Reproducible? 

> when you are back from your holiday, here is some fun for you.
> 
> Got another similar crash below following my mail from mid June. The crash
> occurs for extremely simple SQL.
> 
> MailCleaners:
> theCursor = theDatabase.SqlSelect("select *, RecID from message")
> 
> The crashes happen randomly. I haven't been able to reproduce this. Haven't
> even had a crash myself. As you may remember I changed - on your advice - my
> strategy when adding data. Before I added data for one record and indexed this
> record, in the new version I add all records and index at the end. Is it
> possible that this is responsible for the crashes?
> 
> Adding records is a multistep process in my app. After the raw data has been
> added this data is manipulated and the data in the database is changed, other
> fields are added. To do this I need some helper SQL queries.
> 
> 
> Thread 5 Crashed:
> 0   libvshared_fat_release.dylib   0x188168b2 fbl::String::String(unsigned
> short const*, int) + 30
> 1   V4RB.rbx_0.dylib               0x1875576a
> 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               0x18752852
> Database_SqlSelect_1(REALobjectStruct*, REALstringStruct*, int, int, int) +
> 281 
> 3   com.mothsoftware.mailarchiverx 0x006a051a
> VDatabase.SqlSelect%o<VCursor>%o<VDatabase>si4i4i4 + 145
> 4   com.mothsoftware.mailarchiverx 0x00da4af3
> MailCleaners.Constructor%%o<MailCleaners>o<VDatabase>bbbo<Dictionary> + 857
> 5   com.mothsoftware.mailarchiverx 0x00b26b75
> ArchiveThread.Clean%%o<ArchiveThread> + 558
> 6   com.mothsoftware.mailarchiverx 0x00b241bd
> ArchiveThread.DoWork%%o<ArchiveThread> + 4682
> 7   com.mothsoftware.mailarchiverx 0x00b22f13
> ArchiveThread.Event_Run%%o<ArchiveThread> + 56
> 8   rbframework.dylib              0x01338ecb ThreadYieldAsNeeded() + 289
> 9   libSystem.B.dylib              0x964fb259 _pthread_start + 345
> 10  libSystem.B.dylib              0x964fb0de thread_start + 34

-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina-beta mailing list