Skip to content

Composer broke riot - infinispinner on startup #7145

@turt2live

Description

@turt2live
Uncaught TypeError: Cannot read property 'split' of undefined
    at Object.serialize (MessageComposerInput.js:198)
    at renderer.js:303
    at immutable.js:4418
    at immutable.js:3905
    at immutable.js:1377
    at ArrayMapNode.iterate.HashCollisionNode.iterate (immutable.js:1726)
    at Map.__iterate (immutable.js:1375)
    at Set.__iterate (immutable.js:3905)
    at Set.reduce (immutable.js:4413)
    at Markdown.serializeLeaves (renderer.js:293)
    at immutable.js:3016
    at List.__iterate (immutable.js:2206)
    at IndexedIterable.mappedSequence.__iterateUncached (immutable.js:3015)
    at seqIterate (immutable.js:604)
    at IndexedIterable.IndexedSeq.__iterate (immutable.js:320)
    at IndexedIterable.toArray (immutable.js:4258)
    at List [as constructor] (immutable.js:2065)
    at reify (immutable.js:3570)
    at List.map (immutable.js:4401)
    at Markdown.serializeNode (renderer.js:237)
    at renderer.js:241
    at immutable.js:3016
    at List.__iterate (immutable.js:2206)
    at IndexedIterable.mappedSequence.__iterateUncached (immutable.js:3015)
    at seqIterate (immutable.js:604)
    at IndexedIterable.IndexedSeq.__iterate (immutable.js:320)
    at IndexedIterable.toArray (immutable.js:4258)
    at List [as constructor] (immutable.js:2065)

No idea what happened, but below are the things I did before the thing died.

  1. In #riot, notice a bug report about how the </> button doesn't work like it used to
  2. Disable markdown
  3. Press the </> button
  4. Notice there's no code block, press the button again
  5. Press it again, thinking maybe it'll work with text
  6. Type "test" followed by a shift+enter for a newline and start typing "hello"
  7. Select all, backspace
  8. Click the code button again (to disable)
  9. Switch to an encrypted private chat with someone
  10. Turn on markdown
  11. Try to switch back to #riot
  12. Notice it's not working, see the split error in the console log
  13. Refresh the page, thinking it'll just go away
  14. Infinispinner, with the same split error in the console - followed by React falling apart
  15. Open a new issue on riot-web

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1S-MajorSeverely degrades major functionality or product features, with no satisfactory workaroundT-Defect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions