MumbleKit crashes when accessing groups

Everything related to the official iOS Mumble client

MumbleKit crashes when accessing groups

Postby Marce666 » Wed Jan 28, 2015 9:08 pm

Hi,
I defined a group to a sub-channel and suitable permissions. (see attachments)
From MumbleKit, after being connected to the server, I ask for MKAccessControl by calling
Code: Select all
[self.serverModel requestAccessControlForChannel:c];


When receiving response, app crashes in this point (see (*) )

Code: Select all
   
- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf count:(NSUInteger)len
{
   // TODO: We only support enumeration of object values.  In the future, we
   // can extend this code to return a new list of NSNumber* objects wrapping
   // our primitive values.
   PBArrayValueTypeAssert(PBArrayValueTypeObject);  <----- (*)

   if (state->state >= _count)
   {
      return 0; // terminate iteration
   }


How should I set groups and permission on murmur to avoid this crash?

If I comment the assert, the following crash is when accessing the PBArray named add in here:

Code: Select all
        for (NSNumber *value in chanGroup.add) {
            [channelGroup.members addObject:value];
        }
Attachments
Screen Shot 2015-01-28 at 5.19.18 PM.png
Screen Shot 2015-01-28 at 5.19.18 PM.png (77.95 KiB) Viewed 2228 times
Screen Shot 2015-01-28 at 5.19.00 PM.png
Screen Shot 2015-01-28 at 5.19.00 PM.png (42.07 KiB) Viewed 2228 times
Marce666
 
Posts: 4
Joined: Mon Jan 05, 2015 1:22 pm

Re: MumbleKit crashes when accessing groups

Postby mkrautz » Wed Jan 28, 2015 9:47 pm

Hi,

I'm not very familiar with the access control code. It's an external contribution -- an app that used MumbleKit needed ACLs. (Mumble for iOS doesn't for now).

However, I'd love to take a stab at it. I've created an issue to track this bug:
https://github.com/mumble-voip/mumblekit/issues/32
mkrautz
Team member
Team member
 
Posts: 200
Joined: Wed Sep 23, 2009 4:57 pm


Return to iOS

Who is online

Users browsing this forum: No registered users and 1 guest