Page 1 of 1

MumbleKit crashes when accessing groups

Posted: 28 Jan 2015, 21:08
by Marce666
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];

Re: MumbleKit crashes when accessing groups

Posted: 28 Jan 2015, 21:47
by mkrautz

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: