Crash when cloning

Beatrix Willius bwillius at gmx.de
Tue May 13 11:42:43 CDT 2008


It's so quiet here and there is still no beta, but I have a nice  
issue related to my bug of segment faults.

There is one user with the segment faults. Cloning the database  
doesn't work for him, because he can't open the database. So I made a  
nice little function for him, which opens the database and clones it,  
without doing the usual database changes.

Unfortunately, the app crashes when he is doing this. The code and  
the crash log are below:

   'select a database for cloning
   dim theDialog as new OpenDialog
   theDialog.Title = "Please select an Archive to clone..."
   theDialog.Filter = FileTypes.DB
   theFolderitem = theDialog.showModal
   if theFolderitem = nil then Return

   'do a dialog for the clone
   dim CloneFolderitem as FolderItem = saveClone
   if CloneFolderitem = Nil then Return

   'open the database
   theDatabase = new VDatabase
   theDatabase.open(theFolderitem)

   'now clone the database
   theDatabase.Clone CloneFolderitem, true
   CloneFolderitem.MacCreator = "WebX"
   CloneFolderitem.MacType = "Vdsc"
   theDatabase.Close

   if CloneFolderitem.lastErrorCode <> 0 and  
CloneFolderitem.lastErrorCode <> 101 then
     Globals.theErrorLog.DialogErrorProceed "There was an Error  
writing the Database Clone to Disk! Error: " + str 
(CloneFolderitem.lastErrorCode) + ". Please try again."
   end if


Thread 0 Crashed:
0   libSystem.B.dylib             	0x958800ea __kill + 10
1   libSystem.B.dylib             	0x958f73f2 raise + 26
2   libSystem.B.dylib             	0x959069af abort + 73
3   libstdc++.6.dylib             	0x936cc005 0x93684000 + 294917
4   libstdc++.6.dylib             	0x936ca10c __gxx_personality_v0 +  
1108
5   libstdc++.6.dylib             	0x936ca14b std::terminate() + 29
6   libstdc++.6.dylib             	0x936ca190 std::set_unexpected 
(void (*)()) + 42
7   libstdc++.6.dylib             	0x936c9c0f __cxa_call_unexpected + 67
8   libvkernel_fat_release.dylib  	0x16744913 fbl::UseFormula::Run()  
+ 131
9   libvkernel_fat_release.dylib  	0x166f1b29  
fbl::Field_Imp::Find_NotIndexed(fbl::smart_ptr<fbl::BitSet const>,  
fbl::smart_ptr<fbl::Predicate_Field>, bool) const + 763
10  libvkernel_fat_release.dylib  	0x166f970d fbl::VBlob::FindNulls 
(fbl::smart_ptr<fbl::BitSet const>, fbl::ESearch) const + 307
11  libvkernel_fat_release.dylib  	0x169500ba fbl::BuildIndexAlgorithm 
(fbl::smart_ptr<fbl::I_Field>, fbl::smart_ptr<fbl::I_Index>,  
fbl::smart_ptr<fbl::BitSet>) + 88
12  libvkernel_fat_release.dylib  	0x16950376 fbl::BuildIndex 
(fbl::smart_ptr<fbl::I_Field>, fbl::smart_ptr<fbl::I_Index>,  
fbl::smart_ptr<fbl::BitSet>) + 272
13  libvkernel_fat_release.dylib  	0x1670c238 fbl::FldStorage::Reindex 
() + 170
14  libvkernel_fat_release.dylib  	0x1670d303 fbl::FldStorage::Open()  
+ 305
15  libvkernel_fat_release.dylib  	0x169af9fa void  
fbl::TableStorage_Imp::ForEachFieldStorage<std::mem_fun_t<void,  
fbl::I_Storage> >(std::mem_fun_t<void, fbl::I_Storage>) + 152
16  libvkernel_fat_release.dylib  	0x1673f023  
fbl::TableStorage_Imp::Open() + 45
17  libvkernel_fat_release.dylib  	0x16728182  
fbl::Table::FinishReadFromSchema() + 42
18  libvkernel_fat_release.dylib  	0x167206c6  
fbl::I_SchemaStorable_Impl::ReadFromSchema() + 62
19  libvkernel_fat_release.dylib  	0x167209df  
fbl::I_SchemaStorable_Impl::Create_ChildElements_Instances 
(fbl::SysItemKind) + 267
20  libvkernel_fat_release.dylib  	0x16894eaa  
fbl::Database_imp::ReadElements() + 94
21  libvkernel_fat_release.dylib  	0x167206be  
fbl::I_SchemaStorable_Impl::ReadFromSchema() + 54
22  libvkernel_fat_release.dylib  	0x1688db9b  
fbl::Database_imp::CheckFileFormatAndReadSchema() + 73
23  libvkernel_fat_release.dylib  	0x1688df6d fbl::Database_imp::Open 
() + 81
24  V4RB 3.5.2.rbx_0.dylib        	0x163986e4 Database_Open 
(REALobjectStruct*, REALfolderItemStruct*) + 648
25                                	0x005bb1c3 VDatabase.Open%% 
o<VDatabase>o<FolderItem> + 86
26                                	0x009b8cf9  
DBUtilities.OpenCloneDatabase%%o<DBUtilities> + 1000




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