Discuss Scratch

o97doge
Scratcher
500+ posts

Paint editor freaks out when the null character is inserted using the Text tool.

My browser / operating system: MacOS Macintosh X 10.15, Firefox 115.0, No Flash versions detected

In the paint editor, whenever you try and insert the null character or other control characters with the Text tool, it freaks out. This is a picture of what happens:

Trying to use the Rectangle tool.


Produced console errors:
XML Parsing Error: not well-formed
Location: https://scratch.mit.edu/projects/855544783/editor
Line Number 1, Column 5905: editor:1:5905
Uncaught Error: Document does not appear to be SVG.
exports https://scratch.mit.edu/js/projects.bundle.js:120
value https://scratch.mit.edu/js/projects.bundle.js:147
value https://scratch.mit.edu/js/projects.bundle.js:147
value https://scratch.mit.edu/js/projects.bundle.js:133
value https://scratch.mit.edu/js/projects.bundle.js:155
t https://scratch.mit.edu/js/projects.bundle.js:55
value https://scratch.mit.edu/js/projects.bundle.js:92
t https://scratch.mit.edu/js/projects.bundle.js:55
value https://scratch.mit.edu/js/projects.bundle.js:92
t https://scratch.mit.edu/js/projects.bundle.js:55
value https://scratch.mit.edu/js/projects.bundle.js:92
value https://scratch.mit.edu/js/projects.bundle.js:92
emit https://scratch.mit.edu/js/projects.bundle.js:50
c https://scratch.mit.edu/js/projects.bundle.js:50
_handleMouseEvent https://scratch.mit.edu/js/projects.bundle.js:50
_handleMouseEvent https://scratch.mit.edu/js/projects.bundle.js:50
o https://scratch.mit.edu/js/projects.bundle.js:50
add https://scratch.mit.edu/js/projects.bundle.js:50
e https://scratch.mit.edu/js/projects.bundle.js:50
initialize https://scratch.mit.edu/js/projects.bundle.js:50
create https://scratch.mit.edu/js/projects.bundle.js:50
initialize https://scratch.mit.edu/js/projects.bundle.js:50
setup https://scratch.mit.edu/js/projects.bundle.js:50
value https://scratch.mit.edu/js/projects.bundle.js:92
iu https://scratch.mit.edu/js/common.bundle.js:25
pl https://scratch.mit.edu/js/common.bundle.js:25
unstable_runWithPriority https://scratch.mit.edu/js/common.bundle.js:33
Go https://scratch.mit.edu/js/common.bundle.js:25
dl https://scratch.mit.edu/js/common.bundle.js:25
Ju https://scratch.mit.edu/js/common.bundle.js:25
Wo https://scratch.mit.edu/js/common.bundle.js:25
unstable_runWithPriority https://scratch.mit.edu/js/common.bundle.js:33
Go https://scratch.mit.edu/js/common.bundle.js:25
Wo https://scratch.mit.edu/js/common.bundle.js:25
Ko https://scratch.mit.edu/js/common.bundle.js:25
M https://scratch.mit.edu/js/common.bundle.js:25
Zt https://scratch.mit.edu/js/common.bundle.js:25
projects.bundle.js:120:268957

The paint editor crashes if you try to convert a costume to bitmap while in the broken state.

Produced console errors:
TypeError: can't access property "bitmapBackground", e is undefined
Nt https://scratch.mit.edu/js/projects.bundle.js:92
value https://scratch.mit.edu/js/projects.bundle.js:92
gi https://scratch.mit.edu/js/common.bundle.js:25
Da https://scratch.mit.edu/js/common.bundle.js:25
yu https://scratch.mit.edu/js/common.bundle.js:25
sl https://scratch.mit.edu/js/common.bundle.js:25
ul https://scratch.mit.edu/js/common.bundle.js:25
Ju https://scratch.mit.edu/js/common.bundle.js:25
Wo https://scratch.mit.edu/js/common.bundle.js:25
unstable_runWithPriority https://scratch.mit.edu/js/common.bundle.js:33
Go https://scratch.mit.edu/js/common.bundle.js:25
Wo https://scratch.mit.edu/js/common.bundle.js:25
Ko https://scratch.mit.edu/js/common.bundle.js:25
M https://scratch.mit.edu/js/common.bundle.js:25
Zt https://scratch.mit.edu/js/common.bundle.js:25
common.bundle.js:25:82386
gui error Unhandled Error with action='Costume Tab': Nt@https://scratch.mit.edu/js/projects.bundle.js:92:109687
value@https://scratch.mit.edu/js/projects.bundle.js:92:119560
gi@https://scratch.mit.edu/js/common.bundle.js:25:49977
Da@https://scratch.mit.edu/js/common.bundle.js:25:68606
yu@https://scratch.mit.edu/js/common.bundle.js:25:105471
sl@https://scratch.mit.edu/js/common.bundle.js:25:96720
ul@https://scratch.mit.edu/js/common.bundle.js:25:96643
Ju@https://scratch.mit.edu/js/common.bundle.js:25:93673
1035/Wo/<@https://scratch.mit.edu/js/common.bundle.js:25:45315
1037/t.unstable_runWithPriority@https://scratch.mit.edu/js/common.bundle.js:33:3844
Go@https://scratch.mit.edu/js/common.bundle.js:25:45024
Wo@https://scratch.mit.edu/js/common.bundle.js:25:45262
Ko@https://scratch.mit.edu/js/common.bundle.js:25:45195
M@https://scratch.mit.edu/js/common.bundle.js:25:114344
Zt@https://scratch.mit.edu/js/common.bundle.js:25:22726

Component stack:
in r
in Connect(r)
in div
in Co
in r
in Connect(r)
in div
in div
in div
in Zh
in InjectIntl(Zh)
in r
in Connect(r)
in r
in Connect(r)
in s
in Connect(s)
in r
in Connect(r)
in s
in Connect(s)
in s
in Connect(s)
in i
in Connect(i)
in div
in C
in div
in C
in Yl
in i
in Connect(i)
in InjectIntl(Connect(i))
in i
in Connect(i)
in Unknown
in div
in n
in div
in n
in n
in div
in C
in div
in C
in div
in C
in div
in C
in MediaQuery
in qx
in Connect(qx)
in InjectIntl(Connect(qx))
in i
in Connect(i)
in InjectIntl(Connect(i))
in s
in Connect(s)
in s
in Connect(s)
in InjectIntl(Connect(s))
in s
in Connect(s)
in s
in Connect(s)
in s
in Connect(s)
in s
in Connect(s)
in InjectIntl(Connect(s))
in s
in Connect(s)
in InjectIntl(Connect(s))
in s
in Connect(s)
in s
in Connect(s)
in i
in Connect(i)
in Unknown
in IntlProvider
in Connect(IntlProvider)
in s
in Connect(s)
in injectIntl(Connect(s))
in t
in Connect(t)
in IntlProvider
in n projects.bundle.js:133:652333

Last edited by o97doge (May 23, 2023 11:12:49)

PhiPhenomenon
Scratcher
500+ posts

Paint editor freaks out when the null character is inserted using the Text tool.

This is likely because of my different browser, but I get a different symbol when pasting the null character and none of the other bugs:
o97doge
Scratcher
500+ posts

Paint editor freaks out when the null character is inserted using the Text tool.

PhiPhenomenon wrote:

This is likely because of my different browser, but I get a different symbol when pasting the null character and none of the other bugs:
I used Scratch Desktop, copy the symbol from the search bar: https://scratch.mit.edu/search/projects?q=%00

Edit: Windows doesn't like copying the null character, use this symbol instead: https://scratch.mit.edu/search/projects?q=%15

Last edited by o97doge (May 23, 2023 10:38:01)

PhiPhenomenon
Scratcher
500+ posts

Paint editor freaks out when the null character is inserted using the Text tool.

o97doge wrote:

I used Scratch Desktop, try pasting the symbol in the search bar: https://scratch.mit.edu/search/projects?q=%00

Edit: Windows doesn't like copying the null character, use this symbol instead: https://scratch.mit.edu/search/projects?q=%15
Woah. Yeah, that's pretty weird. Maybe it's because of these funky characters that aren't supposed to be typed mess up the encoding of the costume.
o97doge
Scratcher
500+ posts

Paint editor freaks out when the null character is inserted using the Text tool.

PhiPhenomenon wrote:

o97doge wrote:

I used Scratch Desktop, try pasting the symbol in the search bar: https://scratch.mit.edu/search/projects?q=%00

Edit: Windows doesn't like copying the null character, use this symbol instead: https://scratch.mit.edu/search/projects?q=%15
Woah. Yeah, that's pretty weird. Maybe it's because of these funky characters that aren't supposed to be typed mess up the encoding of the costume.
Look at the console errors in the original post.
SciPiDilts
Scratcher
100+ posts

Paint editor freaks out when the null character is inserted using the Text tool.

uh, %15 isn't the null character – it's the delete or backspace character or something like that.
PhiPhenomenon
Scratcher
500+ posts

Paint editor freaks out when the null character is inserted using the Text tool.

SciPiDilts wrote:

uh, %15 isn't the null character – it's the delete or backspace character or something like that.
Yeah, it's just a replacement character that gives the same effect. I'm on Windows and it doesn't let me copy a null character.
o97doge
Scratcher
500+ posts

Paint editor freaks out when the null character is inserted using the Text tool.

Bump

Edit: The Circle tool doesn't bug out for some reason unlike the other tools.

Last edited by o97doge (May 24, 2023 08:07:40)

o97doge
Scratcher
500+ posts

Paint editor freaks out when the null character is inserted using the Text tool.

bump
medians
Scratcher
1000+ posts

Paint editor freaks out when the null character is inserted using the Text tool.

My browser / operating system: MacOS Macintosh X 10.15.7, Chrome 115.0.0.0, No Flash versions detected
is this meant to happen (%15)
medians
Scratcher
1000+ posts

Paint editor freaks out when the null character is inserted using the Text tool.

Converting to bitmap while it's like this displays a crash message, and it seems to only happen in the vector editor.
o97doge
Scratcher
500+ posts

Paint editor freaks out when the null character is inserted using the Text tool.


Bump

Last edited by o97doge (Aug. 1, 2023 08:28:03)

NotK3ndricAlt
Scratcher
1000+ posts

Paint editor freaks out when the null character is inserted using the Text tool.

medians wrote:

My browser / operating system: MacOS Macintosh X 10.15.7, Chrome 115.0.0.0, No Flash versions detected
is this meant to happen (%15)
not sure…
o97doge
Scratcher
500+ posts

Paint editor freaks out when the null character is inserted using the Text tool.

bump
o97doge
Scratcher
500+ posts

Paint editor freaks out when the null character is inserted using the Text tool.

bump
o97doge
Scratcher
500+ posts

Paint editor freaks out when the null character is inserted using the Text tool.

bump
o97doge
Scratcher
500+ posts

Paint editor freaks out when the null character is inserted using the Text tool.

bump
Iorvy2013
Scratcher
5 posts

Paint editor freaks out when the null character is inserted using the Text tool.

what is null?
o97doge
Scratcher
500+ posts

Paint editor freaks out when the null character is inserted using the Text tool.

bump

Powered by DjangoBB