cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mr-dang
Community Champion
Community Champion

Bug: Editor crashes upon pressing a button

Cc: @tahoon,

I last reported a bug in which pressing Esc while editing in a browser caused it to terminate unexpectedly.

 

It has happened again, but this time I had pressed some combination with the open curly bracket {

 

Here's the error code:

WebAuthoring abnormal termination.
Client date/time: 2017-12-28T04:42:49.732Z
Version: 2.0.732 (v2.0.732.61473958)
Session ID: 504b7f49-ff7a-7a06-15f6-0f428731841a
description: {"exception":{},"error":{},"promise":{"_oncancel":null,"_nextState":null,"_state":{"name":"error","enter":"[function]","cancel":"[function]","done":null,"then":null,"_completed":"[function]","_error":"[function]","_notify":"[function]","_progress":"[function]","_setCompleteValue":"[function]","_setErrorValue":"[function]"},"_value":"[circular]","_isException":false,"_errorId":19674,"done":"[function]","then":"[function]"},"id":19674,"setPromise":"[function]"}
stack: TypeError: Cannot read property 'length' of undefined
    at RuleEditor.convertCursorPositionToIndex (https://cdn-paaprodwus.azureedge.net/v2.0.732.61473958/studio/js/AppMagic.Authoring.js?v=2.0.732.61473958:30095:58)
    at RuleEditor.getTextContent (https://cdn-paaprodwus.azureedge.net/v2.0.732.61473958/studio/js/AppMagic.Authoring.js?v=2.0.732.61473958:30043:56)
    at RuleEditor.getCurrentSelection (https://cdn-paaprodwus.azureedge.net/v2.0.732.61473958/studio/js/AppMagic.Authoring.js?v=2.0.732.61473958:30047:61)
    at FormulaBarRuleTextBoxViewModel.RuleTextBoxBase._setRhsUserEditAsync (https://cdn-paaprodwus.azureedge.net/v2.0.732.61473958/studio/js/AppMagic.Authoring.js?v=2.0.732.61473958:21919:69)
    at FormulaBarRuleTextBoxViewModel.<anonymous> (https://cdn-paaprodwus.azureedge.net/v2.0.732.61473958/studio/js/AppMagic.Authoring.js?v=2.0.732.61473958:21802:73)
    at n (https://cdn-paaprodwus.azureedge.net/v2.0.732.61473958/studio/openSource/modified/office-fabric/pa-fabric-for-published-apps.js?v=2.0.732.61473958:15:2474)
    at Object.next (https://cdn-paaprodwus.azureedge.net/v2.0.732.61473958/studio/openSource/modified/office-fabric/pa-fabric-for-published-apps.js?v=2.0.732.61473958:15:1809)
    at https://cdn-paaprodwus.azureedge.net/v2.0.732.61473958/studio/openSource/modified/office-fabric/pa-fabric-for-published-apps.js?v=2.0.732.61473958:15:1742
    at new c.Class.derive._oncancel (https://cdn-paaprodwus.azureedge.net/v2.0.732.61473958/studio/openSource/modified/winjs/js/base.js?v=2.0.732.61473958:3:12625)
    at d (https://cdn-paaprodwus.azureedge.net/v2.0.732.61473958/studio/openSource/modified/office-fabric/pa-fabric-for-published-apps.js?v=2.0.732.61473958:15:1519)
errorNumber: 0
errorMessage: Cannot read property 'length' of undefined
callStack: TypeError: Cannot read property 'length' of undefined
    at RuleEditor.convertCursorPositionToIndex (https://cdn-paaprodwus.azureedge.net/v2.0.732.61473958/studio/js/AppMagic.Authoring.js?v=2.0.732.61473958:30095:58)
    at RuleEditor.getTextContent (https://cdn-paaprodwus.azureedge.net/v2.0.732.61473958/studio/js/AppMagic.Authoring.js?v=2.0.732.61473958:30043:56)
    at RuleEditor.getCurrentSelection (https://cdn-paaprodwus.azureedge.net/v2.0.732.61473958/studio/js/AppMagic.Authoring.js?v=2.0.732.61473958:30047:61)
    at FormulaBarRuleTextBoxViewModel.RuleTextBoxBase._setRhsUserEditAsync (https://cdn-paaprodwus.azureedge.net/v2.0.732.61473958/studio/js/AppMagic.Authoring.js?v=2.0.732.61473958:21919:69)
    at FormulaBarRuleTextBoxViewModel.<anonymous> (https://cdn-paaprodwus.azureedge.net/v2.0.732.61473958/studio/js/AppMagic.Authoring.js?v=2.0.732.61473958:21802:73)
    at n (https://cdn-paaprodwus.azureedge.net/v2.0.732.61473958/studio/openSource/modified/office-fabric/pa-fabric-for-published-apps.js?v=2.0.732.61473958:15:2474)
    at Object.next (https://cdn-paaprodwus.azureedge.net/v2.0.732.61473958/studio/openSource/modified/office-fabric/pa-fabric-for-published-apps.js?v=2.0.732.61473958:15:1809)
    at https://cdn-paaprodwus.azureedge.net/v2.0.732.61473958/studio/openSource/modified/office-fabric/pa-fabric-for-published-apps.js?v=2.0.732.61473958:15:1742
    at new c.Class.derive._oncancel (https://cdn-paaprodwus.azureedge.net/v2.0.732.61473958/studio/openSource/modified/winjs/js/base.js?v=2.0.732.61473958:3:12625)
    at d (https://cdn-paaprodwus.azureedge.net/v2.0.732.61473958/studio/openSource/modified/office-fabric/pa-fabric-for-published-apps.js?v=2.0.732.61473958:15:1519)

 

Microsoft Employee
@8bitclassroom
4 REPLIES 4
tahoon
Power Apps
Power Apps

Thanks for reporting this! Looks like an error from the formular bar. I will forward this to the right team to look at.

mr-dang
Community Champion
Community Champion

That's correct. I had the formula bar open when I had pressed something with the curly bracket.

 

Thank you for picking this up

Microsoft Employee
@8bitclassroom

Closing on this thread - the fix should have been deployed to prod already. Please let us know if this is not the case.

 

So far so good. 👍

Microsoft Employee
@8bitclassroom

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,683)