Skip to content

bug: Opening and closing IonSelect crashes Chrome (Aw, Snap!) #30084

@vs-jdefting

Description

@vs-jdefting

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

When I open and close an IonSelect nested in an IonHeader, chrome crashes with an "Aw, Snap!". This issue seems to be specific to the arm64 build of Chrome on Apple Silicon. Chrome does not crash on Intel chips.

  • Chrome version: Version 131.0.6778.140 (Official Build) (arm64)
  • Computer: Apple MacBook M2 Max (macOS 14.2.1 (23C71))
    <IonApp>
      <IonPage>
        <IonHeader>
          <IonSelect label="Open then close me"></IonSelect>
        </IonHeader>
        <IonContent>some content</IonContent>
      </IonPage>
    </IonApp>

Expected Behavior

Opening and closing IonSelect does not crash the webpage.

Steps to Reproduce

  1. Be on an Apple Silicon M1/M2/M3 computer
  2. Go to https://stackblitz.com/edit/s31z8pdq-rmne6pwu?file=src%2Findex.tsx
  3. Click "Open then close me"
  4. Close the modal
  5. The page should crash
Screen.Recording.2024-12-13.at.4.10.55.PM.mov

Code Reproduction URL

https://stackblitz.com/edit/s31z8pdq-rmne6pwu?file=src%2Findex.tsx

Ionic Info

Ionic:

Ionic CLI : 7.2.0 (/Users/jdefting/Library/pnpm/global/5/.pnpm/@Ionic[email protected]/node_modules/@ionic/cli)
Ionic Framework : @ionic/react 8.4.1 (/Users/jdefting/visiostack/vs/frontends/infra-frontend/node_modules/.pnpm/@Ionic[email protected][email protected][email protected][email protected]/node_modules/@ionic/react)

Capacitor:

Capacitor CLI : 6.1.2
@capacitor/android : 6.1.2 (/Users/jdefting/visiostack/vs/frontends/infra-frontend/node_modules/.pnpm/@capacitor+android@6.1.2_@capacitor[email protected]/node_modules/@capacitor/android)
@capacitor/core : 6.1.2 (/Users/jdefting/visiostack/vs/frontends/infra-frontend/node_modules/.pnpm/@capacitor[email protected]/node_modules/@capacitor/core)
@capacitor/ios : 6.1.2 (/Users/jdefting/visiostack/vs/frontends/infra-frontend/node_modules/.pnpm/@capacitor+ios@6.1.2_@capacitor[email protected]/node_modules/@capacitor/ios)

Utility:

cordova-res : not installed globally
native-run : not installed globally

System:

NodeJS : v18.19.0 (/Users/jdefting/.nvm/versions/node/v18.19.0/bin/node)
npm : 10.2.3
OS : macOS Unknown

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions