Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MumbleKit crashes when accessing groups #32

Open
mkrautz opened this Issue Jan 28, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@mkrautz
Copy link
Member

commented Jan 28, 2015

(Via http://forums.mumble.info/viewtopic.php?f=15&t=1640)

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][self.serverModel requestAccessControlForChannel:c];[/code]

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

- (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:

    for (NSNumber *value in chanGroup.add) {
        [channelGroup.members addObject:value];
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.