Regression in NC 30: Drag and drop in tasks kills Chrome with RESULT_CODE_KILLED_BAD_MESSAGE

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Nextcloud Hub 9 (30.0.2)
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 22.04.5 LTS
  • Web server and version (e.g, Apache 2.4.25):
    • N/A
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • N/A
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes, after update to 30
  • When did this problem seem to first start?
    • today, after update to 30
  • Installation method (e.g. AIO, NCP, Bare Metal/Archive, etc.)
    • community docker-compose
  • Are you using Cloudflare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

Edge & Brave kill the page process when I try to move (drag&drop) tasks.

Steps to replicate it (hint: details matter!):

  1. Open tasks app
  2. Move one subtask to somewhere else (start drag&drop)
  3. The page in chrome crashes with:
Aw, Snap!
Error code: RESULT_CODE_KILLED_BAD_MESSAGE

In the logs of Chrome, there are these records:

[11884:11884:1124/100026.279256:ERROR:validation_errors.cc(122)] Invalid message: VALIDATION_ERROR_DESERIALIZATION_FAILED
[11884:11884:1124/100026.279269:ERROR:render_process_host_impl.cc(5850)] Terminating render process for bad Mojo message: Received bad user message: Validation failed for blink.mojom.LocalFrameHost.87  [VALIDATION_ERROR_DESERIALIZATION_FAILED]
[11884:11884:1124/100026.279275:ERROR:bad_message.cc(31)] Terminating renderer for bad IPC message, reason 123
[1124/100026.303897:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1124/100026.305936:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[1124/100026.316247:ERROR:process_memory_range.cc(75)] read out of range
[1124/100026.316256:ERROR:process_memory_range.cc(75)] read out of range
[11884:11884:1124/100026.335805:ERROR:interface_endpoint_client.cc(725)] Message 1640861540 rejected by interface blink.mojom.LocalFrameHost

tried with Edge & Brave.

1 Like

Reproduced (in Chromium 131.0.6778.85).

Does not happen in Firefox.

1 Like

Same behavior in Nextcloud Hub 8 right after last update (Hetzner managed).
Works fine in firefox

Getting the same problem in Brave
Version 1.73.91 Chromium: 131.0.6778.85 (Official Build) unknown (64-bit) on Kbuntu Linux 24.04.

This is most likely a problem with the Chromium engine but it would be interesting to understand how Nextcloud Tasks is triggering it with the drag and drop in order to isolate the cause for the Chromium devs.

Just in case it might help: I had same issue under 29 and 28, and not under 27 IIRC.

Same issue here. Chrome-based browsers. Not Firefox. It’s a problem with v 27.xx+ from what I can tell.

Is anything being done about this? It’s been 5 months since I started experiencing this. We can’t use the Task Manager at our office unless we force everyone to start using Firefox, which obviously is not a realistic option.

The Stack Overflow post you referenced describes a scenario where Chrome crashes with the error code RESULT_CODE_KILLED_BAD_MESSAGE when a service worker attempts to cache requests containing headers with UTF-8 characters, such as ‘ü’. This issue arises because, according to HTTP specifications, certain characters are not permitted in header fields, and their presence can lead to unexpected browser behavior, including crashes. ​Stack Overflow

While the exact cause of the drag-and-drop crash in Chrome-based browsers hasn’t been definitively identified, it’s plausible that a similar issue is at play. If the drag-and-drop functionality involves JavaScript operations that introduce invalid characters into HTTP headers or other critical data structures, it could trigger the observed crashes.​

Potential Solutions:

  1. Investigate Header Content: Developers should examine the headers involved in the drag-and-drop operations to ensure they comply with HTTP standards, avoiding any invalid characters that could destabilize the browser.​Stack Overflow

  2. Base64 encoding: Does NC use Base64 encoding for data transmitted in headers? This can prevent the inclusion of problematic characters.

  3. Collaborate with Browser Developers: Reporting these findings to the Chromium development team can facilitate a deeper investigation, potentially leading to browser-level fixes that prevent such crashes in the future.​

  4. Update Dependencies: Ensuring that all libraries and dependencies used by Nextcloud Tasks are up-to-date can mitigate compatibility issues that might lead to such crashes.​

NC uses Sortable for the Task manager, so I checked the Sortable website (SortableJS) to make sure it works in Chrome and Vivaldi and all the components shown on the home page do, so there must be something about the implementation in NextCloud that is causing the issue. I don’t personally think it’s a Chomium issue. I think NextCloud needs to spend more time on this because without a task manager I can’t see people recommending this package for use in a business.