Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on ipad/macbook #145

Closed
leoliu opened this issue Nov 20, 2017 · 8 comments
Closed

Crash on ipad/macbook #145

leoliu opened this issue Nov 20, 2017 · 8 comments
Labels

Comments

@leoliu
Copy link

leoliu commented Nov 20, 2017

Oddly it can crash on my iPad with the following stacktrace:

emoji crash

I am using the Picker component like this:

    <Picker
      native
      emoji="smiley"
      title=""
      i18n={{ categories }}
      sheetSize={32}
      showPreview={false}
   />
@leoliu
Copy link
Author

leoliu commented Nov 20, 2017

Crash on Safari on iPad and Macbook air. iPad is running the latest software. Macbook air is running 10.12.6. iPhone running the latest software doesn't crash.

I can reproduce the crash also in Chrome with private browsing on. I can workaround the crash by providing include with a list that doesn't include recent.

@leoliu leoliu changed the title Crash on ipad Crash on ipad/macbook Nov 20, 2017
@EtienneLem
Copy link
Member

What’s Emoji Mart version? Is it older than v2.1.2? Sounds like an issue that’s been resolved in newer versions.

@leoliu
Copy link
Author

leoliu commented Nov 20, 2017

I added it to my project yesterday and the entry in package.json is "emoji-mart": "^2.2.1".

@EtienneLem
Copy link
Member

Can you tell me what’s the result of localStorage["emoji-mart.frequently"] in the console?

@leoliu
Copy link
Author

leoliu commented Nov 21, 2017

When crash:

localStorage["emoji-mart.frequently"]
undefined

When no crash:

localStorage["emoji-mart.frequently"]
"{"+1":25,"grinning":12,"kissing_heart":13,"heart_eyes":7,"laughing":7,"stuck_out_tongue_winking_eye":7,"sweat_smile":7,"joy":12,"scream":1,"flag-tk":7,"flag-ug":1,"pensive":1,"worried":7,"hushed":6,"flushed":1,"star_of_david":4,"wheel_of_dharma":2,"star_and_crescent":4,"u6e80":11,"goal_net":1,"nauseated_face":2,"goat":2,"beer":2,"latin_cross":1,"sparkling_heart":2,"owl":1,"crab":1,"octopus":1,"pig2":1,"candle":2,"stuck_out_tongue":6,"relaxed":5,"dizzy_face":7,"yum":7,"kissing_smiling_eyes":1,"kissing_closed_eyes":13,"slightly_smiling_face":1,"innocent":6,"grin":11,"woman-bowing":1,"couple":2,"bow_and_arrow":12,"clown_face":18,"money_mouth_face":5,"rolling_on_the_floor_laughing":2,"blush":2,"confused":2,"slightly_frowning_face":1,"sob":6,"drooling_face":1,"cry":1,"fearful":1,"smiley_cat":6}"

@nolanlawson
Copy link

Is the browser in private browsing mode or some other setting to disable localStorage?

@nolanlawson nolanlawson added the bug label Mar 8, 2019
@nolanlawson
Copy link

This looks like a duplicate of #201 which is fixed now. Please reopen if I'm incorrect.

@L53c
Copy link

L53c commented Feb 1, 2022

Unfortunately I am having the same issue with version "emoji-mart": "^3.0.1", it crash my app, freezing my browser

Screenshot 2022-02-01 at 14 53 15

{
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start"
  },
  "dependencies": {
    "@heroicons/react": "^1.0.5",
    "emoji-mart": "^3.0.1",
    "next": "latest",
    "next-auth": "^4.1.2",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "sqlite3": "^5.0.2",
    "tailwind-scrollbar-hide": "^1.1.7"
  },
  "devDependencies": {
    "@types/node": "17.0.4",
    "@types/react": "17.0.38",
    "autoprefixer": "^10.4.0",
    "postcss": "^8.4.5",
    "prettier": "^2.5.1",
    "prettier-plugin-tailwindcss": "^0.1.1",
    "tailwindcss": "^3.0.7",
    "typescript": "4.5.4"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants