Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
This post has been closed. You can still view previous posts, but you can't post any new replies.

Inline Roll for 0dxkh1 or 0dxkl1 fails and crashes chat.

Detailed Description: This issue appears when attempting to use the inline rolls [[0d6kh1]] or [[0d6kl1]]. The die size doesn't seem to matter. &nbsp;I would expect this to work the same as /r 0d6kh1 which ultimately resolves to 0 as the final value. What's more, using this inline roll crashes the game chat once the game is reloaded. The typed items still appear the chat log, but not the in game chat. Steps to Reproduce: Join a Game&nbsp; Enter [[0d6kl1]] or [[0d6kh1]] into chat and press enter Nothing should appear in chat. System Information: Windows 8.1 Chrome 50.0.2661.94 Java Script Enabled This has also been seen on Windows 10 as well. Console Log: /editor/:12 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' https://*.googlesyndication.com https://*.doubleclick.net https://*.googlesyndication.com <a href="https://www.googletagservices.com" rel="nofollow">https://www.googletagservices.com</a> https://*.googlesyndication.com <a href="https://www.google-analytics.com" rel="nofollow">https://www.google-analytics.com</a> https://*.googlesyndication.com <a href="https://d3clqjduf2gvxg.cloudfront.net" rel="nofollow">https://d3clqjduf2gvxg.cloudfront.net</a> https://*.googlesyndication.com https://*.firebaseio.com https://*.googlesyndication.com https://*.opentok.com https://*.googlesyndication.com <a href="http://www.google-analytics.com" rel="nofollow">http://www.google-analytics.com</a>". Either the 'unsafe-inline' keyword, a hash ('sha256-cNhrSQdLfYT5QXrBaIxsJD2B4vTQ4Z4S2GR0WW0i3Js='), or a nonce ('nonce-...') is required to enable inline execution. /editor/:13 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' https://*.googlesyndication.com https://*.doubleclick.net https://*.googlesyndication.com <a href="https://www.googletagservices.com" rel="nofollow">https://www.googletagservices.com</a> https://*.googlesyndication.com <a href="https://www.google-analytics.com" rel="nofollow">https://www.google-analytics.com</a> https://*.googlesyndication.com <a href="https://d3clqjduf2gvxg.cloudfront.net" rel="nofollow">https://d3clqjduf2gvxg.cloudfront.net</a> https://*.googlesyndication.com https://*.firebaseio.com https://*.googlesyndication.com https://*.opentok.com https://*.googlesyndication.com <a href="http://www.google-analytics.com" rel="nofollow">http://www.google-analytics.com</a>". Either the 'unsafe-inline' keyword, a hash ('sha256-j/BKvjJIk0Ivhw3IAc2xQKWrV+ZRiQyeIlGtPBx4j0k='), or a nonce ('nonce-...') is required to enable inline execution. app.js?1462196846:29 70 app.js?1462196846:30 TOUCH SUPPORTED: false app.js?1462196846:30 USING WEBGL ACCELERATION... app.js?1462196846:30 WEBGL STARTUP SUCCESS app.js?1462196846:25 select app.js?1462196846:25 Switch mode to select app.js?1462196846:40 Initializing new dice engine with randomness... app.js?1462196846:40 Using random entropy app.js?1462196846:44 Compiling sheet... app.js?1462196846:44 Finding sheet rolls... app.js?1462196846:45 window resize app.js?1462196846:30 Final set zoom! app.js?1462196846:30 UPDATE GL SIZE! app.js?1462196846:30 Final set zoom! tutorial_tips.js:7 tuts loaded app.js?1462196846:36 Final page load. app.js?1462196846:45 Refresh jukebox List! app.js?1462196846:35 Auth'ed. app.js?1462196846:35 Go post auth! app.js?1462196846:35 initial setup app.js?1462196846:34 r {attributes: Object, _escapedAttributes: Object, cid: "c0", changed: Object, _silent: Object…} app.js?1462196846:35 Got players value... app.js?1462196846:36 joining game... app.js?1462196846:33 Full load page! app.js?1462196846:35 We have 1 pages app.js?1462196846:36 Scan for new plays! app.js?1462196846:34 Player -KHNQV-bnm7n13wOwkUk is offline... app.js?1462196846:34 Global Volume: 100=1 app.js?1462196846:34 Player -KHNhloC8TV3vu8x23oO is offline... app.js?1462196846:36 Deferred finish joining... app.js?1462196846:29 Firebase Online app.js?1462196846:39 refershing page listings! app.js?1462196846:35 handle page changes app.js?1462196846:35 false app.js?1462196846:36 init active page! app.js?1462196846:33 activate page! app.js?1462196846:33 FULLY ACTIVATE VIEWS FOR PAGE. app.js?1462196846:36 Scan for new plays! app.js?1462196846:32 Do refresh link cache! app.js?1462196846:43 Refresh Journal List! app.js?1462196846:43 Search took 7ms app.js?1462196846:33 Graphics: 0 app.js?1462196846:33 Paths: 0 app.js?1462196846:43 initiatlizing video chat app.js?1462196846:43 Connecting to WebRTC app.js?1462196846:45 Refresh jukebox List! app.js?1462196846:39 refershing page listings! app.js?1462196846:33 Reorder by ZORDER app.js?1462196846:43 Connected to session app.js?1462196846:43 Someone just connected. app.js?1462196846:43 It's us? app.js?1462196846:42 Finished after going 2 levels deep. app.js?1462196846:42 Begin processing op! app.js?1462196846:42 Levels deep: 0 app.js?1462196846:42 Finished 0 app.js?1462196846:42 Levels deep: 0 app.js?1462196846:42 Inline rolls complete! firebase.2.4.0.js:45 FIREBASE WARNING: Exception was thrown by user callback. TypeError: Cannot read property 'map' of undefined at i (<a href="https://app.roll20.net/assets/app.js?1462196846:40:25890" rel="nofollow">https://app.roll20.net/assets/app.js?1462196846:40:25890</a>) at <a href="https://app.roll20.net/assets/app.js?1462196846:4" rel="nofollow">https://app.roll20.net/assets/app.js?1462196846:4</a>... at RegExp.[Symbol.replace] (native) at String.replace (native) at Object.d20.dice_formatter.replaceInlineRolls (<a href="https://app.roll20.net/assets/app.js?1462196846:40:28601" rel="nofollow">https://app.roll20.net/assets/app.js?1462196846:40:28601</a>) at Object.eval (eval at &lt;anonymous&gt; (<a href="https://app.roll20.net/assets/base.js?1457455522:2:554" rel="nofollow">https://app.roll20.net/assets/base.js?1457455522:2:554</a>), &lt;anonymous&gt;:3:666) at HTMLScriptElement.&lt;anonymous&gt; (<a href="https://app.roll20.net/assets/base.js?1457455522:1:31846" rel="nofollow">https://app.roll20.net/assets/base.js?1457455522:1:31846</a>) at Function.p.extend.each (<a href="https://app.roll20.net/js/jquery.1.8.2.min.js:2:14477" rel="nofollow">https://app.roll20.net/js/jquery.1.8.2.min.js:2:14477</a>) at p.fn.p.each (<a href="https://app.roll20.net/js/jquery.1.8.2.min.js:2:11151" rel="nofollow">https://app.roll20.net/js/jquery.1.8.2.min.js:2:11151</a>) at t.fn.extend.jqote (<a href="https://app.roll20.net/assets/base.js?1457455522:1:31778" rel="nofollow">https://app.roll20.net/assets/base.js?1457455522:1:31778</a>) at Object.d20.textchat.incoming (<a href="https://app.roll20.net/assets/app.js?1462196846:42:21584" rel="nofollow">https://app.roll20.net/assets/app.js?1462196846:42:21584</a>) at u (<a href="https://app.roll20.net/assets/app.js?1462196846:42:28028" rel="nofollow">https://app.roll20.net/assets/app.js?1462196846:42:28028</a>) at <a href="https://app.roll20.net/assets/app.js?1462196846:4" rel="nofollow">https://app.roll20.net/assets/app.js?1462196846:4</a>... at <a href="https://app.roll20.net/assets/firebase.2.4.0.js:2" rel="nofollow">https://app.roll20.net/assets/firebase.2.4.0.js:2</a>... at gc (<a href="https://app.roll20.net/assets/firebase.2.4.0.js:52:165" rel="nofollow">https://app.roll20.net/assets/firebase.2.4.0.js:52:165</a>) at cc (<a href="https://app.roll20.net/assets/firebase.2.4.0.js:30:216" rel="nofollow">https://app.roll20.net/assets/firebase.2.4.0.js:30:216</a>) firebase.2.4.0.js:52 Uncaught TypeError: Cannot read property 'map' of undefinedi @ app.js?1462196846:40(anonymous function) @ app.js?1462196846:40d20.dice_formatter.replaceInlineRolls @ app.js?1462196846:40(anonymous function) @ VM943:3(anonymous function) @ base.js?1457455522:1p.extend.each @ jquery.1.8.2.min.js:2p.fn.p.each @ jquery.1.8.2.min.js:2t.fn.extend.jqote @ base.js?1457455522:1d20.textchat.incoming @ app.js?1462196846:42u @ app.js?1462196846:42(anonymous function) @ app.js?1462196846:42(anonymous function) @ firebase.2.4.0.js:203gc @ firebase.2.4.0.js:52cc @ firebase.2.4.0.js:30dc @ firebase.2.4.0.js:29h.Ob @ firebase.2.4.0.js:221X.Ob @ firebase.2.4.0.js:259s @ app.js?1462196846:42(anonymous function) @ app.js?1462196846:42(anonymous function) @ base.js?1457455522:1
Thank you for the bug report. I've brought this to the attention of the Roll20 Dev Team, who will investigate.
Thank you.
1462999947
Phil B.
Forum Champion
Sheet Author
Thanks for the comprehensive bug report, make my job super easy. I've logged this and will fix it as soon as I get a chance.
Awesome! Glad to help.
To add to this ticket, I was originally testing a macro that used this function in the /talktomyself mode and it worked successfully. I just tried this again this morning (5/12/2016) with the same results. It seems to only be an issue outside of that mode.
1463075901

Edited 1463076043
Flamewolf said: To add to this ticket, I was originally testing a macro that used this function in the /talktomyself mode and it worked successfully. I just tried this again this morning (5/12/2016) with the same results. It seems to only be an issue outside of that mode. An interesting (and possibly related) thing that I've noticed in /talktomyself mode is that [[ 1 / 0 ]] parses as "Infinity" and [[ 0 / 0 ]] parses as NaN, whereas those would normally cause inline rolls to fail.
1463595546
Phil B.
Forum Champion
Sheet Author
With the big update that went out yesterday [[0d6kl1]] should not break the editor now, it correctly returns 0. I didn't get a chance to look into the extra stuff that you mentioned, Silvyre, but I'll get to it eventually. ;P
Great! It seems to be working as I expected. Thanks!