Hard crash with new beta

Beatrix Willius bwillius at gmx.de
Sat Dec 11 09:21:06 CST 2010


I'm getting a hard crash in a very simple SQL query with the new beta at the following line of code:

  dim PrintCursor as VCursor =  theDatabase.SqlSelect("select RecID, * from message" , EVCursorLocation.kServerSide, EVLockType.kNoLocks, EVCursorDirection.kRandom)

What is crashing here? The odd thing is when I do the same select for an existing database everything is okay. For a new database I get this crash. After a record is added flush is used. 

If I take the database that has crashed and try again I don't get a crash. So it must be something with adding new records. I'm a bit at a loss how to do a simple example for this.

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libSystem.B.dylib             	0x930b8ef6 __kill + 10
1   libSystem.B.dylib             	0x930b8ee8 kill$UNIX2003 + 32
2   libSystem.B.dylib             	0x9314b62d raise + 26
3   libSystem.B.dylib             	0x931616e4 abort + 93
4   libstdc++.6.dylib             	0x97017fda __gnu_cxx::__verbose_terminate_handler() + 433
5   libstdc++.6.dylib             	0x9701617a __cxxabiv1::__terminate(void (*)()) + 10
6   libstdc++.6.dylib             	0x970161ba __cxxabiv1::__unexpected(void (*)()) + 0
7   libstdc++.6.dylib             	0x97016753 __cxa_pure_virtual + 48
8   libvkernel_fat_release.dylib  	0x10e3cc73 fbl::Database_imp::get_TableEx(fbl::String const&) const + 305
9   libvkernel_fat_release.dylib  	0x10e3665c fbl::vsql::GetTableOrView(fbl::vsql::SqlEnvironment&, fbl::String const&, fbl::I_TableEx**, fbl::I_View**) + 128
10  libvkernel_fat_release.dylib  	0x10f4c135 fbl::vsql::Node_Table_NonJoin::PreprocessSql_Table(fbl::vsql::SqlEnvironment&) + 253
11  libvkernel_fat_release.dylib  	0x10ee0204 fbl::vsql::Node_TableExpr::PreprocessSql_From(fbl::vsql::SqlEnvironment&) + 96
12  libvkernel_fat_release.dylib  	0x10ee7908 fbl::vsql::Node_TableExpr::PreprocessSql(fbl::vsql::SqlEnvironment&) + 210
13  libvkernel_fat_release.dylib  	0x10ece970 fbl::vsql::Node_QuerySelect::PreprocessSql(fbl::vsql::SqlEnvironment&) + 98
14  libvkernel_fat_release.dylib  	0x10ed7f10 fbl::vsql::Node_Select::PreprocessSql(fbl::vsql::SqlEnvironment&) + 968
15  libvkernel_fat_release.dylib  	0x10f57867 fbl::vsql::SqlParser::PreprocessCommand(fbl::vsql::SqlEnvironment&) + 245
16  libvkernel_fat_release.dylib  	0x10f587cc fbl::vsql::SqlParser::SqlQuery_(fbl::smart_ptr<fbl::vsql::QueryResult>, fbl::vsql::I_SqlDatabaseEx*, fbl::String const&, fbl::vsql::ECursorLocation, fbl::vsql::ELockType, fbl::vsql::ECursorDirection, fbl::smart_ptr<fbl::ArrayOfSmartPtrs<fbl::smart_ptr<fbl::I_Value> > >) + 554
17  libvkernel_fat_release.dylib  	0x10f58dd0 fbl::vsql::SqlParser::SqlQuery(fbl::vsql::I_SqlDatabaseEx*, fbl::String const&, fbl::vsql::ECursorLocation, fbl::vsql::ELockType, fbl::vsql::ECursorDirection, fbl::smart_ptr<fbl::ArrayOfSmartPtrs<fbl::smart_ptr<fbl::I_Value> > >) + 168
18  libvkernel_fat_release.dylib  	0x10e365a4 fbl::vsql::SqlDatabase::SqlQuery(fbl::String const&, fbl::vsql::ECursorLocation, fbl::vsql::ELockType, fbl::vsql::ECursorDirection, fbl::smart_ptr<fbl::ArrayOfSmartPtrs<fbl::smart_ptr<fbl::I_Value> > >) + 130
19  V4RB.rbx_0.dylib              	0x109529cd Database_SqlSelect(fbl::smart_ptr<fbl::vsql::I_SqlDatabase>, REALstringStruct*, int, int, int, fbl::smart_ptr<fbl::ArrayOfSmartPtrs<fbl::smart_ptr<fbl::I_Value> > >) + 173
20  V4RB.rbx_0.dylib              	0x10952c14 Database_SqlSelect_1(REALobjectStruct*, REALstringStruct*, int, int, int) + 284
21  Mail Archiver X.debug         	0x005b5f4d VDatabase.SqlSelect%o<VCursor>%o<VDatabase>si4i4i4 + 145
22  Mail Archiver X.debug         	0x009daecd ExportPDF.getPrintCursor%o<VCursor>%o<ExportPDF> + 226
23  Mail Archiver X.debug         	0x009da227 ExportPDF.ExportMessage%b%o<ExportPDF> + 384

Using latest version of RB on Mac Pro with Mac OS 10.6.4.

Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: archive, clean and search email
http://www.beatrixwillius.de
Fractals, 3d landscapes etc.



More information about the Valentina mailing list