Crash with Proguard in Release Mode

3 Comentários

  • Sebastian

    Hi Zendesk-Team

    We've run our own internal investigation of the SDK issue, and have found the root cause.

    s.b.a.a: caused by: s.b.a.a: resource not found: /META-INF/services/org.xmlpull.v1.XmlPullParserFactory make sure that parser implementing XmlPull API is available

    It looks like for some reason the class is removed during proguard / R8 processing.

    However, this should be caught by your error handling, which itself is faulty:
    The cause of the crash is due to invalid logging on the error handling side.

    zendesk.support.request.DocumentRenderer.HtmlParser

    try {
    XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
    factory.setValidating(false);
    factory.setFeature(Xml.FEATURE_RELAXED, true);
    xmlPullParser = factory.newPullParser();
    } catch (XmlPullParserException var6) {
    Logger.w("RequestActivity", "Unable to parse rich text. Error: '%s' | '%s'", new Object[]{var6.getLocalizedMessage()});
    } finally {
    this.xpp = xmlPullParser;
    }

    Where `Logger.w`s string format expects two arguments, but only is given one.

     

    Could this be fixed in a bugfix of your SDK?

    0
  • Fred

    Sebastian I have the exact same issue. Did you find any solution? It seems to be still happening with the latest Zendesk SDK.

    0
  • Fred

    So I was using Zendesk SDK with Flutter, and it seems like the root issue is caused by:

    dev_dependencies:
      integration_test:
        sdk: flutter

    in pubspec.yaml.

    0

Por favor, entrar para comentar.

Powered by Zendesk