A crash due to integer overflow (?)
Resolved 💬 5 comments Opened Nov 5, 2025 by vasiliiperfilev Closed Jan 13, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
I was just working on the task. I had a service running that was launched by Claude Code, suddenly the UI crashed (it seems like because the service and the last Claude Code command were still running). I was in the middle of typing a command, Claude was working on a task while I was typing, then I switched to Slack to answer, when I switched back the UI was in crashed state
What Should Happen?
No crashes plz :)
Error Messages/Logs
191 | $ npm install --save-dev react-devtools-core
192 | `.trim()+`
193 | `);else throw R}Bp=WhA.default({getRootHostContext:()=>({isInsideText:!1}),prepareForCommit:()=>null,preparePortalMount:()=>null,clearContainer:()=>!1,resetAfterCommit(R){if(typeof R.onComputeLayout==="function")R.onComputeLayout();if(R.isStaticDirty){if(R.isStaticDirty=!1,typeof R.onImmediateRender==="function")R.onImmediateRender();return}R.onRender?.()},getChildHostContext(R,T){let A=R.isInsideText,B=T==="ink-text"||T==="ink-virtual-text";if(A===B)return R;return{isInsideText:B}},shouldSetTextContent:()=>!1,createInstance(R,T,A,B){if(B.isInsideText&&R==="ink-box")throw Error("<Box> can\u2019t be nested inside <Text> component");let D=R==="ink-text"&&B.isInsideText?"ink-virtual-text":R,H=kwR(D);for(let[G,$]of Object.entries(T)){if(G==="children")continue;if(G==="style"){if(C3T(H,$),H.yogaNode)W3T(H.yogaNode,$);continue}if(G==="internal_transform"){H.internal_transform=$;continue}if(G==="internal_static"){H.internal_static=!0;continue}$3T(H,G,$)}return H},createTextInstance(R,T,A){if(!A.isInsideText)throw Er | ... truncated
194 | `).repeat(k);if(J)v=pR.dim(v);let b=(U9(_,D)($.right)+`
195 | `).repeat(k);if(O)b=pR.dim(b);let a=Y?(z?$.bottomLeft:"")+$.bottom.repeat(w)+(L?$.bottomRight:""):"";if(Y&&A.style.borderText?.position==="bottom"){let m=A.style.borderText;a=EhA(a,m.content,m.align,m.offset,$.bottom)}let d=Y?U9(W,D)(a):void 0;if(Y&&q)d=pR.dim(d);let s=Z?1:0;if(y)B.write(R,T,y,{transformers:[]});if(z)B.write(R,T+s,v,{transformers:[]});if(L)B.write(R+H-1,T+s,b,{transformers:[]});if(d)B.write(R,T+G-1,d,{transformers:[]})}},KhA;var VhA=Q(()=>{g0();ZRR();uwR();YhA=h(QhA(),1),C61={dashed:{top:"\u254C",left:"\u254E",right:"\u254E",bottom:"\u254C",topLeft:" ",topRight:" ",bottomLeft:" ",bottomRight:" "}};KhA=W61});var I61=(R,T)=>{let A=R.childNodes[0]?.yogaNode;if(A){let B=A.getComputedLeft(),D=A.getComputedTop();T=`
196 | `.repeat(D)+X3T(T,B)}return T},LhA=(R,T,{offsetX:A=0,offsetY:B=0,transformers:D=[],skipStaticElements:H,theme:G})=>{if(H&&R.internal_static)return;let{yogaNode:$}=R;if($){if($.getDisplay()===XF.None)return;let C=A+$.getComputedLeft(),W=B+$.getComputedTop(),I=D;if(typeof R.internal_transform==="function")I=[R.internal_transform,...D];if(R.nodeName==="ink-text"){let X=bwR(R);if(X.length>0){let q=ORR(X),J=_hA($);if(q>J){let O=R.style.textWrap??"wrap";X=ij(X,J,O)}X=I61(R,X),T.write(C,W,X,{transformers:I})}return}let _=!1;if(R.nodeName==="ink-box"){KhA(C,W,R,T,G);let X=R.style.overflowX==="hidden"||R.style.overflow==="hidden",q=R.style.overflowY==="hidden"||R.style.overflow==="hidden";if(X||q){let J=X?C+$.getComputedBorder(l8.Left):void 0,O=X?C+$.getComputedWidth()-$.getComputedBorder(l8.Right):void 0,Z=q?W+$.getComputedBorder(l8.Top):void 0,Y=q?W+$.getComputedHeight()-$.getComputedBorder(l8.Bottom):void 0;T.clip({x1:J,x2:O,y1:Z,y2:Y}),_=!0}}if(R.nodeName==="ink-root"||R.nodeName==="ink-box"){for(let X of R.childN | ... truncated
RangeError: Array length must be a positive integer of safe magnitude.
at KRR (/$bunfs/root/claude:196:5452)
at get (/$bunfs/root/claude:196:6509)
at /$bunfs/root/claude:198:821
at onRender (/$bunfs/root/claude:217:5564)
at /$bunfs/root/claude:97:1913
at C (/$bunfs/root/claude:97:1320)
at W (/$bunfs/root/claude:97:1356)
at /$bunfs/root/claude:97:1431
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
RangeError: Array length must be a positive integer of safe magnitude.
at KRR (/$bunfs/root/claude:196:5452)
at get (/$bunfs/root/claude:196:6509)
at <anonymous> (/$bunfs/root/claude:198:821)
at onRender (/$bunfs/root/claude:217:5564)
at _ (/$bunfs/root/claude:97:2046)
at resetAfterCommit (/$bunfs/root/claude:193:356)
at g$R (/$bunfs/root/claude:103:39468)
at oJ (/$bunfs/root/claude:103:38840)
at pN (/$bunfs/root/claude:103:35405)
at CD (/$bunfs/root/claude:101:4818)
Steps to Reproduce
Not quite sure
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.34
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
<img width="1146" height="932" alt="Image" src="https://github.com/user-attachments/assets/28b99c9c-0500-429f-8ff9-bb6c7138f322" />
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗