Giter Club home page Giter Club logo

Comments (11)

ollym avatar ollym commented on June 15, 2024 1

hey @baptistejamin this is blocking a fairly major move we want to transition all our apps to Crisp. Is there any incentive we can offer to have this fixed this week?

from crisp-sdk-android.

FrantisekGazo avatar FrantisekGazo commented on June 15, 2024

I just discovered that the issue happens even when I don't set the token id.

After closing and opening a chat few time I see the same crash mentioned before.
And after restarting our app the sdk crashes on Crisp.configure(...) call.

E/MethodChannel#com.ventrata/intercom(28671): Failed to handle method call
E/MethodChannel#com.ventrata/intercom(28671): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.gson.JsonPrimitive.getAsString()' on a null object reference
E/MethodChannel#com.ventrata/intercom(28671): 	at im.crisp.client.b.d.e.k.a(SourceFile)
E/MethodChannel#com.ventrata/intercom(28671): 	at im.crisp.client.b.d.e.k.deserialize(SourceFile)
E/MethodChannel#com.ventrata/intercom(28671): 	at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69)
E/MethodChannel#com.ventrata/intercom(28671): 	at com.google.gson.Gson.fromJson(Gson.java:927)
E/MethodChannel#com.ventrata/intercom(28671): 	at com.google.gson.Gson.fromJson(Gson.java:892)
E/MethodChannel#com.ventrata/intercom(28671): 	at com.google.gson.Gson.fromJson(Gson.java:841)
E/MethodChannel#com.ventrata/intercom(28671): 	at com.google.gson.Gson.fromJson(Gson.java:813)
E/MethodChannel#com.ventrata/intercom(28671): 	at im.crisp.client.b.b.b.readObject(SourceFile)
E/MethodChannel#com.ventrata/intercom(28671): 	at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#com.ventrata/intercom(28671): 	at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1006)
E/MethodChannel#com.ventrata/intercom(28671): 	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1894)
E/MethodChannel#com.ventrata/intercom(28671): 	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1799)
E/MethodChannel#com.ventrata/intercom(28671): 	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
E/MethodChannel#com.ventrata/intercom(28671): 	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:373)
E/MethodChannel#com.ventrata/intercom(28671): 	at im.crisp.client.b.a.a.e(SourceFile)
E/MethodChannel#com.ventrata/intercom(28671): 	at im.crisp.client.b.a.a.k(SourceFile)
E/MethodChannel#com.ventrata/intercom(28671): 	at im.crisp.client.b.a.a.j(SourceFile)
E/MethodChannel#com.ventrata/intercom(28671): 	at im.crisp.client.b.a.a.<init>(SourceFile)
E/MethodChannel#com.ventrata/intercom(28671): 	at im.crisp.client.b.a.a.a(SourceFile)
E/MethodChannel#com.ventrata/intercom(28671): 	at im.crisp.client.Crisp.resetChatSession(SourceFile)
E/MethodChannel#com.ventrata/intercom(28671): 	at im.crisp.client.Crisp.configure(SourceFile)
E/MethodChannel#com.ventrata/intercom(28671): 	at com.ventrata.intercom.plugin.IntercomPluginMethodHandler.setup(IntercomPlugin.kt:85)
E/MethodChannel#com.ventrata/intercom(28671): 	at com.ventrata.intercom.plugin.IntercomPluginMethodHandler.onMethodCall(IntercomPlugin.kt:62)
E/MethodChannel#com.ventrata/intercom(28671): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
E/MethodChannel#com.ventrata/intercom(28671): 	at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/MethodChannel#com.ventrata/intercom(28671): 	at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:692)
E/MethodChannel#com.ventrata/intercom(28671): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#com.ventrata/intercom(28671): 	at android.os.MessageQueue.next(MessageQueue.java:323)
E/MethodChannel#com.ventrata/intercom(28671): 	at android.os.Looper.loop(Looper.java:136)
E/MethodChannel#com.ventrata/intercom(28671): 	at android.app.ActivityThread.main(ActivityThread.java:6077)
E/MethodChannel#com.ventrata/intercom(28671): 	at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#com.ventrata/intercom(28671): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
E/MethodChannel#com.ventrata/intercom(28671): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)

from crisp-sdk-android.

FrantisekGazo avatar FrantisekGazo commented on June 15, 2024

hi, any update on this?

from crisp-sdk-android.

baptistejamin avatar baptistejamin commented on June 15, 2024

It happens only when using the Token_ID?

from crisp-sdk-android.

FrantisekGazo avatar FrantisekGazo commented on June 15, 2024

no, I also tried it without the token id

from crisp-sdk-android.

FrantisekGazo avatar FrantisekGazo commented on June 15, 2024

I only set these

Crisp.setUserNickname(user.name)
Crisp.setUserEmail(user.email)
if (user.phone != null) {
    Crisp.setUserPhone(user.phone)
}
if (user.company != null) {
    Crisp.setUserCompany(Company(user.company, null, null, null, null))
}

(our user name and email is always non-null)

And when I open chat, write a single message and then close chat and repeat this 3-times I get that crash when opening the chat for the 4rd time.
After that I get a crash everytime I start app and run Crisp.configure(context, config.key) (I don't even get to opening the chat)

from crisp-sdk-android.

alimcharaniya avatar alimcharaniya commented on June 15, 2024

Facing the same issue currently.

from crisp-sdk-android.

eliottvincent avatar eliottvincent commented on June 15, 2024

We just released a new version (1.0.3), it should fix the issue. Could you please give it a try and confirm?

from crisp-sdk-android.

FrantisekGazo avatar FrantisekGazo commented on June 15, 2024

yes, 1.0.3 is working
Thanks :)

from crisp-sdk-android.

eliottvincent avatar eliottvincent commented on June 15, 2024

Great news! Closing the issue then :)

from crisp-sdk-android.

wahyuabid avatar wahyuabid commented on June 15, 2024

Hi guys i still get this issue (in 1.0.3) after i send/attach an image in chat. can you help to solve this problem ? please
@baptistejamin

from crisp-sdk-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.