abdelkader / vCardEditor

Simple vCard (*.vcf) file Editor.
107 stars 20 forks source link

[Bug] Crash on search #41

Open Darthagnon opened 6 months ago

Darthagnon commented 6 months ago

vCardEditor_v0 5 7_240409_41

I was searching my VCF (single VCF, 100 or so contacts, many data fields, no photos) for "Mom" and it crashed with the above error:

The following exception occurred in th DataGridView:

System.IndexOutOfRangeException: Index 4 does not hava value.
at System.Windows.Forms.CurrencyManager.get_Item(Int32 index)
at
System.Windows.Forms.DataGridView.DataGridViewDataConnection.GetError(Int32 rowIndex)

To replace this default dialog please handle the DataError event.
Darthagnon commented 6 months ago

Error repeats, and program cannot be closed by OK or X, varying slightly between GetError(Int32 boundColumnIndex, Int32 columnIndex, Int32 rowIndex) and similar

abdelkader commented 6 months ago

Is it possible to have the "molander entry". Just open the vcf file with notepad, and copy the section between "BEGIN:VCARD" and "END:VCARD". Of course, you can change the value. Please, if there's any symbol leave it.

Darthagnon commented 6 months ago

Censored some details with xxx of same number of alphabet characters (no numbers or symbols replaced)

BEGIN:VCARD
VERSION:3.0
PRODID:-//MailClient.VObject/8.2.1233.0
N:Molander;Samantha;;;
FN:Samantha Molander
NICKNAME:Sam
ORG:Nxxxxxx College;
X-ABADR:us
NOTE:Daniel's girlfriend. A best friend
X-ABLabel:FB Messenger
X-ABLabel:Instagram
X-SOCIALPROFILE;TYPE=facebook;x-user=susan.xxxxx.39:http://facebook.com/sus
 an.xxxxx.39
REV:2021-02-01T23:53:40Z
UID:3BA64946-63AA-4374-8F07-F3F8EE933C81
SORT-STRING:Samantha Molander
ADR;TYPE=HOME,PREF:;;;;Wxxxxxxxxx;;United States
URL;TYPE=pref:https://www.messenger.com/t/susan.xxxxx.39
URL:https://www.instagram.com/sxxxxxxxxxx/
PHOTO;X-ABCROP-RECTANGLE=ABClipRect_1&0&3&653&653&QIME0IPdBFT/1EwXltTJvQ==;
 VALUE=uri:https://p18-contacts.icloud.com:443/1722982501/wbs/01d2684fe41dd
 ac3aaad86b73300ee0340e2a55664
END:VCARD
abdelkader commented 6 months ago

Would you please tell the steps to reproduce the error, cause it's working on my side..

Darthagnon commented 6 months ago
  1. I opened vCardEditor_v0.5.7.exe
  2. I loaded my Contacts.vcf (111kb, 100-200 contacts)
  3. I searched for "Mom" to see whether it parsed only names, or descriptions, too (was looking to see if it would find my mom, who is noted as such under "Notes" but not name)
  4. It crashed as above.

I have tried just now to replicate and it seemed to work fine, maybe I just needed a restart.