Pasting Image into an Empty Tiddler Causes an RSOD

Open Excel and enter some text in a row across two or three columns. Then, copy the cells by selecting them and pressing Ctrl+C. Go to TiddlyWiki, create a new tiddler, and paste the content using Ctrl+V. [NOTE: This will paste an image into TiddlyWiki]. You will see a red screen of death (RSOD). Have you experienced this issue? Is this a bug, or am I doing something wrong?

msedge_img_515_20250131

Revised:

I cannot replicate the issue on Windows 10, Chrome and TW v5.3.6, an image is imported.

Can you please open the developer console in the browser and screenshot any errors shown in the console?

Perhaps share the Excel file in question.

It seems you use a wiki with some plugins. So we would need to have the same wiki to reproduce the problem. Is there a wiki online, where you can reproduce the problem?

Thank you both!
I started from a an empty.html (5.3.6) and gradually added plugins.
I discovered when I add plugins — docs for plugins by tobibeer, the issue appears when I paste any image, so it is not related to Excel cells.

To reproduce the issue

  1. goto tiddlywiki.com and download the empty.html
  2. then goto plugins — docs for plugins by tobibeer drag and drop $:/plugins/tobibeer/preview into your wiki
  3. save and reload
  4. create a new tiddler and keep in edit mode
  5. paste an image
  6. RSOD will be seen.

This is the log of my consol.
TW 5.3.6, Edge 132, Windows 11

performance: mainRefresh: 92.30ms
boot.js:215  Uncaught TypeError: Cannot read properties of null (reading 'offsetLeft')
$tw.utils.error @ boot.js:215
window.onerror @ boot.js:267
error
_boot @ boot.js:266
(anonymous) @ boot.js:2766
popup.js:13  Uncaught TypeError: Cannot read properties of null (reading 'offsetLeft')
    at t.show (popup.js:13:399)
    at Popup.triggerPopup (popup.js:57:8)
    at ActionPopupWidget.invokeAction (action-popup.js:64:13)
    at Widget.invokeActions (widget.js:774:13)
    at Widget.invokeActions (widget.js:779:46)
    at Widget.invokeActions (widget.js:779:46)
    at Widget.invokeActionString (widget.js:802:20)
    at DropZoneWidget.readFileCallback (dropzone.js:176:9)
    at readFileCallback (dropzone.js:237:9)
    at reader.onload (wiki.js:1636:4)
t.show @ popup.js:13
Popup.triggerPopup @ popup.js:57
ActionPopupWidget.invokeAction @ action-popup.js:64
Widget.invokeActions @ widget.js:774
Widget.invokeActions @ widget.js:779
Widget.invokeActions @ widget.js:779
Widget.invokeActionString @ widget.js:802
DropZoneWidget.readFileCallback @ dropzone.js:176
readFileCallback @ dropzone.js:237
reader.onload @ wiki.js:1636
load
exports.readFileContent @ wiki.js:1618
exports.readFile @ wiki.js:1606
DropZoneWidget.handlePasteEvent @ dropzone.js:270
handler @ dom.js:230
EditTextWidget.dispatchDOMEvent @ factory.js:321
EditTextWidget.handlePasteEvent @ factory.js:340
eval @ engine.js:224
xe @ codemirror.js:1
Ce @ codemirror.js:1
eval @ codemirror.js:1
logger.js:53 performance: styleRefresh: 6.70ms
logger.js:53 performance: mainRefresh: 22.80ms

I think the answer is to not use that plugin, it does not seem be to maintained and has minified code that is far too difficult to debug.

1 Like

I’ve been having this problem too (and also have the preview plugin) but just got used to it. Good to know what the culprit is.