question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

C++ Exception: St9bad_alloc

See original GitHub issue

Description

I am getting this issue in react-native-screens@^3.10.1 version. i see this issue on sentry. it is due to reproduce when Ram memory remaining less

image

Screenshots

image

Steps To Reproduce

  1. dont know

Expected behavior

it should not be crash in production

Actual behavior

Reproduction

Platform

  • iOS
  • Android
  • Web
  • Windows
  • tvOS

Workflow

  • Managed workflow
  • Bare workflow

Package versions

package version
react-native ^0.66.4
@react-navigation/native 6.0.6
@react-navigation/native-stack 6.2.5
react-native-screens ^3.10.1
react-native-safe-area-context ^3.3.2
react-native-gesture-handler ^2.1.0
react-native-reanimated ^2.3.0
expo

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
WoLewickicommented, Jan 5, 2022

Ok I will close this issue then. What you can do is run a memory profiling of your application and see if there is leakage in it, and if there happens to be more instances of RNSScreen than there are actual screens, please report it here and we can reopen it then.

1reaction
numandev1commented, Jan 5, 2022

@WoLewicki no I am not using react-freeze by using enableFreeze method. It is not reproducing on my side. maybe it is due to other packages which are occupying ram. you can close this issue. thanks

here is the complete log of sentry cpp_exception.txt

here is other log image

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the std::bad_alloc exception in C++? - Educative.io
Exceptions in C++ are run-time anomalies or abnormal conditions that a program ... std::bad_alloc is a type of exception that occurs when the...
Read more >
How can I debug St9bad_alloc failures in gdb in C?
It's quite possible that this happens due to some memory being overwritten, thus corrupting the memory allocation system's state (which is ...
Read more >
std::bad_alloc - cppreference.com
std::bad_alloc is the type of the object thrown as exceptions by the allocation functions to report failure to allocate storage.
Read more >
std::bad_alloc - CPlusPlus.com
Exception thrown on failure allocating memory. exception; bad_alloc. Type of the exceptions thrown by the standard definitions of operator new and operator ...
Read more >
St9bad_alloc std::bad_alloc C:\Users\Papa\Desktop\MintCoin ...
Many Windows users have reported: EXCEPTION: St9bad_alloc std::bad_alloc C:\Users\Papa\Desktop\MintCoin-Qt.exe in Runaway exception A ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found