[Mono-bugs] [Bug 707114] crash when collecting all persons from ABAddressBook

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jul 21 16:50:52 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=707114

https://bugzilla.novell.com/show_bug.cgi?id=707114#c4


--- Comment #4 from Sebastien Pouliot <sebastien.pouliot at gmail.com> 2011-07-21 20:50:52 UTC ---
The device logs also show the managed stack (before the native one seen in the
orginal comment). You can get them by doing:

/Developer/MonoTouch/usr/bin/mtouch --logdev

inside a terminal.


Jul 21 16:20:46 unknown UIKitApplication:abcrash[0xc778][6294] <Notice>:
Stacktrace:
Jul 21 16:20:46 unknown UIKitApplication:abcrash[0xc778][6294] <Notice>:   at
MonoTouch.AddressBook.ABRecord.CopyValue (int) <0x00027>
Jul 21 16:20:46 unknown UIKitApplication:abcrash[0xc778][6294] <Notice>:   at
MonoTouch.AddressBook.ABPerson.GetPhones () <0x00023>
Jul 21 16:20:46 unknown UIKitApplication:abcrash[0xc778][6294] <Notice>:   at
AbCrash.AddressBook.CollectContacts () <0x000db>
Jul 21 16:20:46 unknown UIKitApplication:abcrash[0xc778][6294] <Notice>:   at
AbCrash.AppDelegate.<FinishedLaunching>m__0 (object,System.EventArgs) <0x0007b>
Jul 21 16:20:46 unknown UIKitApplication:abcrash[0xc778][6294] <Notice>:   at
MonoTouch.UIKit.UIControlEventProxy.Activated () <0x00043>
Jul 21 16:20:46 unknown UIKitApplication:abcrash[0xc778][6294] <Notice>:   at
(wrapper runtime-invoke) object.runtime_invoke_dynamic
(intptr,intptr,intptr,intptr) <0xffffffff>
Jul 21 16:20:46 unknown UIKitApplication:abcrash[0xc778][6294] <Notice>:   at
MonoTouch.UIKit.UIApplication.Main (string[],string,string) <0x000cf>
Jul 21 16:20:46 unknown UIKitApplication:abcrash[0xc778][6294] <Notice>:   at
MonoTouch.UIKit.UIApplication.Main (string[]) <0x00023>
Jul 21 16:20:46 unknown UIKitApplication:abcrash[0xc778][6294] <Notice>:   at
AbCrash.Application.Main (string[]) <0x0001b>
Jul 21 16:20:46 unknown UIKitApplication:abcrash[0xc778][6294] <Notice>:   at
(wrapper runtime-invoke) object.runtime_invoke_dynamic
(intptr,intptr,intptr,intptr) <0xffffffff>


However the issue likely happens before that GetPhones call. E.g. adding a C.WL
bfore the call to check how many items/people are inside the array cause an NRE
(the value stays the same until the crash).

            // populate dictionary with contacts in address book
            var addressBook = new ABAddressBook();
            var people = addressBook.GetPeople();
            Console.WriteLine (people.Length); // <-- this will NRE after a
while
            foreach(var person in people)
            {
                var phones = person.GetPhones();
                foreach(var phone in phones)

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list