Skip to content

NSInternalInconsistencyException GIDEMMErrorHandler #309

Closed

Description

@VBegoyan

Describe the bug
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Actions added to UIAlertController of style UIAlertActionStyleCancel must have a title when running in UIUserInterfaceIdiomPhone'.
Crash: **NSInternalInconsistencyException GIDEMMErrorHandler

To Reproduce
Steps to reproduce the behavior:

  1. Open Picsart
  2. Select Google icon on a very first page to Sign_in or to register
    Actual result:
    Request is being sent and app crashes

Expected behavior
No crash should happen

Screenshots
No screenshots

Environment

  • Device: iPhone [iphone 11, ipad 9, iphone 8, etc]
  • OS: [ 24% 16.3.1, 12.6% 16.4.1, 8% 15.7.3, etc ]

Additional context
Add any other context about the problem here.

Activity

  1. added
    bugSomething isn't working
    triageIssues that need to be triaged
    on May 11, 2023
  2. mdmathias commented on May 11, 2023

    @mdmathias
    Collaborator

    @VBegoyan could you add more details? I don't know what Picsart is. A stack trace showing how we got to this error would be helpful.

    I think it could be this App on the App Store. I downloaded it and was able to go through the sign in flow with Google up to the point where the app asked me to start a trial or pay money.

    If I had to guess, I'd say that the error you're seeing is coming from one of these places:

    1. https://github.com/google/GoogleSignIn-iOS/blob/main/GoogleSignIn/Sources/GIDEMMErrorHandler.m#L213
    2. https://github.com/google/GoogleSignIn-iOS/blob/main/GoogleSignIn/Sources/GIDEMMErrorHandler.m#L225
    3. https://github.com/google/GoogleSignIn-iOS/blob/main/GoogleSignIn/Sources/GIDEMMErrorHandler.m#L243

    Somehow you're getting into a situation where there is an enterprise mobility management (EMM) error to be handled and the title isn't being created correctly for the cancel button (per 'Actions added to UIAlertController of style UIAlertActionStyleCancel must have a title when running in UIUserInterfaceIdiomPhone'. from your issue description above).

    I'm not sure how that can happen given the links I've shared above, each of which use -[GIDEMMErrorHandler cancelString].

  3. mdmathias commented on Sep 22, 2023

    @mdmathias
    Collaborator

    I'm closing this due to inactivity. Please comment here if this issue persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageIssues that need to be triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions