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.

Is it possible to add a switch to control "callbacks_poll"? The infinite loop of "callbacks_poll" causes me to not debug properly

See original GitHub issue

Goals

Add a switch to control it

Expected Results

Add a switch to control it

Actual Results

Can I provide a switch to control it? The infinite loop of “callbacks_poll” causes me to not debug properly

Thread 1: EXC_BREAKPOINT (code=EXC_I386_BPT, subcode=0x0)

Steps to Reproduce

An infinite loop of callbacks_poll even if not used

Code Sample

const realm = new Realm({ schema: [RecentMessageSchema] });
export const getKeyWordStorage = realm.objects(USERMESSAGE);

export const addInTheSpecifiedDataSource = (databaseTableName,data) => {
    realm.write(() => {
        realm.create(databaseTableName,data,true)
        //console.log(item)
    });
}

Version of Realm and Tooling

  • Realm JS SDK Version: 2.4.0
  • Node or React Native: 0.55.3
  • Client OS & Version: ?Mac OS 10.13.4
  • Which debugger for React Native: ?React-Native-Debugger or Chrome

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:5
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pedrosimaocommented, Aug 23, 2018

@kneth I think this issue is related to ExpoKit… I am trying to eject ExpoKit now to see if it works.

0reactions
DAfanasyevcommented, Jan 12, 2019

Hi,

I’m facing same issue. Application is very slow when debugging is on because of callbacks_poll requests.

It is possible to fix it with patch-package:

  • install patch-package
  • remove realm from node_modules, then run npm install (to get clean realm in node_modules, ./gradlew clean probably also will work, but I haven’t tried)
  • set bigger polling interval for pollTimeoutId in node_modules/realm/lib/browser/rpc.js
  • run yarn patch-package realm

But patching node_modules doesn’t sound like a good idea to me so it would be really nice to have configuration option.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Infinite loop callbacks_poll React Native Debugger
I see this endless loop in the debugger network pane, both in Chrome and React Native Debugger using iOS Simulator and RN 0.49.5....
Read more >
Debugger help. Interrupting an endless loop? - Microsoft Q&A
My program appears to be stuck in an endless loop, but I have no idea ... pause button during testing in real-time simply...
Read more >
Debugging Infinite Loops | CodeHS Knowledge Base
Infinite loops occur when loops have no exit condition - no way to stop - so when the program is run it loops...
Read more >
Device enters infinite loop inside nvocmp.c driver on startup ...
when CCS stops in 1700, be sure device 'action' is 3 (RECOVER_ERASE);; continue debugging, debugger will not stop anymore on any breakpoint; ...
Read more >
Find & Fix Code Bugs in Python: Debug With IDLE
The Debug Control Window: An Overview; The Step Button; Breakpoints and the Go Button; Over and Out ... Logic errors cause unexpected behaviors...
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