Skip to content

Crash when opening chatroom #9003

Open
Open
@opk12

Description

@opk12

Steps to reproduce

  1. Open the app.
  2. Open a chatroom.

Outcome

The app crashes.

FATAL EXCEPTION: main
Process: im.vector.app, PID: 752
java.lang.RuntimeException: Unable to start activity ComponentInfo{im.vector.app/im.vector.app.features.home.room.detail.RoomDetailActivity}: android.view.InflateException: Binary XML file line #26: Binary XML file line #26: Error inflating class im.vector.app.features.home.room.detail.composer.RichTextComposerLayout
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3003)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3064)
	at android.app.ActivityThread.-wrap14(ActivityThread.java)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1659)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:154)
	at android.app.ActivityThread.main(ActivityThread.java:6816)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1563)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1451)
Caused by: android.view.InflateException: Binary XML file line #26: Binary XML file line #26: Error inflating class im.vector.app.features.home.room.detail.composer.RichTextComposerLayout
Caused by: android.view.InflateException: Binary XML file line #26: Error inflating class im.vector.app.features.home.room.detail.composer.RichTextComposerLayout
Caused by: java.lang.reflect.InvocationTargetException
	at java.lang.reflect.Constructor.newInstance0(Native Method)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
	at android.view.LayoutInflater.createView(LayoutInflater.java:652)
	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:794)
	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:734)
	at android.view.LayoutInflater.rInflate(LayoutInflater.java:865)
	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:828)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:525)
	at android.view.LayoutInflater.inflate(LayoutInflater.java:427)
	at im.vector.app.databinding.FragmentComposerBinding.inflate(SourceFile:2)
	at im.vector.app.features.home.room.detail.composer.MessageComposerFragment.getBinding(SourceFile:2)
	at im.vector.app.features.home.room.detail.composer.MessageComposerFragment.getBinding(SourceFile:1)
	at im.vector.app.core.platform.VectorBaseFragment.onCreateView(SourceFile:28)
	at androidx.fragment.app.Fragment.performCreateView(SourceFile:25)
    at androidx.fragment.app.FragmentStateManager.createView(SourceFile:200)
    at androidx.fragment.app.FragmentStateManager.moveToExpectedState(SourceFile:125)
    at androidx.fragment.app.FragmentManager.executeOpsTogether(SourceFile:350)
    at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(SourceFile:82)
    at androidx.fragment.app.FragmentManager.execPendingActions(SourceFile:22)
    at androidx.fragment.app.FragmentManager.dispatchStateChange(SourceFile:41)
    at androidx.fragment.app.FragmentManager.dispatchViewCreated(SourceFile:2)
    at androidx.fragment.app.Fragment.performViewCreated(SourceFile:20)
    at androidx.fragment.app.FragmentStateManager.createView(SourceFile:302)
    at androidx.fragment.app.FragmentStateManager.moveToExpectedState(SourceFile:125)
    at androidx.fragment.app.FragmentManager.executeOpsTogether(SourceFile:350)
    at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(SourceFile:82)
    at androidx.fragment.app.FragmentManager.execPendingActions(SourceFile:22)
    at androidx.fragment.app.FragmentManager.dispatchStateChange(SourceFile:41)
    at androidx.fragment.app.FragmentManager.dispatchActivityCreated(SourceFile:11)
    at androidx.fragment.app.FragmentController.dispatchActivityCreated(SourceFile:5)
    at androidx.fragment.app.FragmentActivity.onStart(SourceFile:21)
    at androidx.appcompat.app.AppCompatActivity.onStart(SourceFile:1)
    at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1256)
    at android.app.Activity.performStart(Activity.java:6994)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2956)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3064)
    at android.app.ActivityThread.-wrap14(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1659)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6816)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1563)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1451)
Caused by: android.view.InflateException: Binary XML file line #134: Binary XML file line #134: Error inflating class io.element.android.wysiwyg.EditorEditText
Caused by: android.view.InflateException: Binary XML file line #134: Error inflating class io.element.android.wysiwyg.EditorEditText
Caused by: java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Constructor.newInstance0(Native Method)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
    at android.view.LayoutInflater.createView(LayoutInflater.java:652)
    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:794)
    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:734)
    at android.view.LayoutInflater.rInflate(LayoutInflater.java:865)
    at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:828)
    at android.view.LayoutInflater.rInflate(LayoutInflater.java:873)
    at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:828)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:525)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:427)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:378)
    at android.view.View.inflate(View.java:22521)
    at im.vector.app.features.home.room.detail.composer.RichTextComposerLayout.<init>(SourceFile:8)
    at im.vector.app.features.home.room.detail.composer.RichTextComposerLayout.<init>(SourceFile:3)
    at im.vector.app.features.home.room.detail.composer.RichTextComposerLayout.<init>(SourceFile:2)
    at java.lang.reflect.Constructor.newInstance0(Native Method)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
    at android.view.LayoutInflater.createView(LayoutInflater.java:652)
    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:794)
    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:734)
    at android.view.LayoutInflater.rInflate(LayoutInflater.java:865)
    at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:828)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:525)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:427)
    at im.vector.app.databinding.FragmentComposerBinding.inflate(SourceFile:2)
    at im.vector.app.features.home.room.detail.composer.MessageComposerFragment.getBinding(SourceFile:2)
    at im.vector.app.features.home.room.detail.composer.MessageComposerFragment.getBinding(SourceFile:1)
    at im.vector.app.core.platform.VectorBaseFragment.onCreateView(SourceFile:28)
    at androidx.fragment.app.Fragment.performCreateView(SourceFile:25)
    at androidx.fragment.app.FragmentStateManager.createView(SourceFile:200)
    at androidx.fragment.app.FragmentStateManager.moveToExpectedState(SourceFile:125)
    at androidx.fragment.app.FragmentManager.executeOpsTogether(SourceFile:350)
    at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(SourceFile:82)
    at androidx.fragment.app.FragmentManager.execPendingActions(SourceFile:22)
    at androidx.fragment.app.FragmentManager.dispatchStateChange(SourceFile:41)
    at androidx.fragment.app.FragmentManager.dispatchViewCreated(SourceFile:2)
    at androidx.fragment.app.Fragment.performViewCreated(SourceFile:20)
    at androidx.fragment.app.FragmentStateManager.createView(SourceFile:302)
    at androidx.fragment.app.FragmentStateManager.moveToExpectedState(SourceFile:125)
    at androidx.fragment.app.FragmentManager.executeOpsTogether(SourceFile:350)
    at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(SourceFile:82)
    at androidx.fragment.app.FragmentManager.execPendingActions(SourceFile:22)
    at androidx.fragment.app.FragmentManager.dispatchStateChange(SourceFile:41)
    at androidx.fragment.app.FragmentManager.dispatchActivityCreated(SourceFile:11)
    at androidx.fragment.app.FragmentController.dispatchActivityCreated(SourceFile:5)
    at androidx.fragment.app.FragmentActivity.onStart(SourceFile:21)
    at androidx.appcompat.app.AppCompatActivity.onStart(SourceFile:1)
    at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1256)
    at android.app.Activity.performStart(Activity.java:6994)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2956)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3064)
    at android.app.ActivityThread.-wrap14(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1659)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6816)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1563)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1451)
Caused by: java.lang.NoSuchMethodError: No static method withInitial(Ljava/util/function/Supplier;)Ljava/lang/ThreadLocal; in class Ljava/lang/ThreadLocal; or its super classes (declaration of 'java.lang.ThreadLocal' appears in /system/framework/core-oj.jar)
    at androidx.emoji2.text.flatbuffer.Utf8Old$$ExternalSyntheticApiModelOutline0.m(SourceFile:1)
    at org.jsoup.internal.StringUtil.<clinit>(SourceFile:78)
    at org.jsoup.internal.StringUtil.inSorted(SourceFile:1)
    at org.jsoup.parser.HtmlTreeBuilder.onStackNot(SourceFile:32)
    at org.jsoup.parser.HtmlTreeBuilderState$7.process(SourceFile:31)
    at org.jsoup.parser.HtmlTreeBuilder.process(SourceFile:2)
    at org.jsoup.parser.TreeBuilder.stepParser(SourceFile:35)
    at org.jsoup.parser.TreeBuilder.runParser(SourceFile:1)
    at org.jsoup.parser.TreeBuilder.parseFragment(SourceFile:12)
    at org.jsoup.parser.Parser.parseFragment(SourceFile:2)
    at org.jsoup.parser.Parser.parseBodyFragment(SourceFile:9)
    at org.jsoup.Jsoup.clean(SourceFile:5)
    at io.element.android.wysiwyg.utils.HtmlToSpansParser.convert(SourceFile:19)
    at io.element.android.wysiwyg.internal.utils.AndroidHtmlConverter.fromHtmlToSpans(SourceFile:14)
    at io.element.android.wysiwyg.internal.viewmodel.EditorViewModel.stringToSpans(SourceFile:5)
    at io.element.android.wysiwyg.internal.viewmodel.EditorViewModel.rerender(SourceFile:5)
    at io.element.android.wysiwyg.EditorEditText.rerender(SourceFile:21)
    at io.element.android.wysiwyg.EditorEditText.updateStyle(SourceFile:89)
    at io.element.android.wysiwyg.EditorEditText.<init>(SourceFile:17)
    ... 60 more

Your phone model

Samsung

Operating system version

Android 7.1.1

Application version and app store

1.6.30 from F-droid crashes. Instead, 1.6.24 from F-droid was working.

Homeserver

matrix.org

Will you send logs?

No

Are you willing to provide a PR?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-DefectSomething isn't working: bugs, crashes, hangs and other reported problems

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions