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

Mac: RangeError: minimumFractionDigits value is out of range #188

Open
hhwyt opened this issue May 10, 2024 · 9 comments
Open

Mac: RangeError: minimumFractionDigits value is out of range #188

hhwyt opened this issue May 10, 2024 · 9 comments

Comments

@hhwyt
Copy link

hhwyt commented May 10, 2024

Hello, everyone! I'm attempting to profile my program using samply record, but i've encountered an error stating, RangeError: minimumFractionDigits value is out of range. Does anyone know how to resolve this issue or suggest a possible workaround?

Error stack from chrome console:

react-dom.production.min.js:189 RangeError: minimumFractionDigits value is out of range.
    at new NumberFormat (<anonymous>)
    at format-numbers.js:30:10
    at index.js:29:25
    at Wt (format-numbers.js:80:24)
    at qt (format-numbers.js:218:10)
    at tn (format-numbers.js:402:10)
    at sn (committed-ranges.js:171:10)
    at HS.render (Selection.js:442:17)
    at Is (react-dom.production.min.js:204:189)
    at Bs (react-dom.production.min.js:203:149)
An unhandled error was thrown in a React component. RangeError: minimumFractionDigits value is out of range.
    at new NumberFormat (<anonymous>)
    at format-numbers.js:30:10
    at index.js:29:25
    at Wt (format-numbers.js:80:24)
    at qt (format-numbers.js:218:10)
    at tn (format-numbers.js:402:10)
    at sn (committed-ranges.js:171:10)
    at HS.render (Selection.js:442:17)
    at Is (react-dom.production.min.js:204:189)
    at Bs (react-dom.production.min.js:203:149) 
    at HS (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:137:83775)
    at c (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:2:23866)
    at aT (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:137:106796)
    at <anonymous> (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:117:15436)
    at c (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:2:23866)
    at wT (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:137:116294)
    at c (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:2:23866)
    at div
    at s (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:192:565429)
    at div
    at t (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:192:567076)
    at div
    at div
    at yk (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:133:27240)
    at MT (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:137:119676)
    at c (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:2:23866)
    at EB (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:137:150118)
    at c (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:2:23866)
    at mm (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:104:7034)
    at c (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:2:23866)
    at div
    at OT (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:137:121755)
    at c (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:2:23866)
    at Nf (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:111:15336)
    at Ff
    at de (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:2:16836)
    at ce (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:2:16794)
    at QB (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:137:169850)
    at c (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:2:23866)
    at at (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:2:22138)
    at Nf (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:111:15336)
    at Mf
    at rI (https://profiler.firefox.com/main.34c9f340aad26f45bf86.bundle.js:137:170942)

Machine: Mac, Apple Silicon, M3 Max
OS: Sonoma 14.1 (23B2073)
Chrome: Version 124.0.6367.119 (Official Build) (arm64)

Thanks for any help.

@hhwyt hhwyt changed the title MacOS: RangeError: minimumFractionDigits value is out of range Mac: RangeError: minimumFractionDigits value is out of range May 10, 2024
@mstange
Copy link
Owner

mstange commented May 10, 2024

I have not seen this error before, but it probably indicates that the profile JSON contains some bad data. Can you reproduce this? Can you attach the corresponding profile.json file here?

@hhwyt
Copy link
Author

hhwyt commented May 11, 2024

Thanks for your response.

I encountered this error each time I run samply record. And this is my profile.json.
profile.json.tar.gz

@mstange
Copy link
Owner

mstange commented May 12, 2024

Is it an empty file? The tar.gz file shows me an error when I unpack it.

@hhwyt
Copy link
Author

hhwyt commented May 14, 2024

Sorry, my fault. Here is the correct version.

profile.json.tar.gz

@mstange
Copy link
Owner

mstange commented May 14, 2024

Ah, yes, all the sample tables are empty. You can search for samples":{"length": in the JSON.

So for some reason samply wasn't able to capture any samples.

Is it possible that the app you're running is an x86_64 app that runs via Rosetta? samply cannot profile Intel binaries. I filed #201 about showing a useful error in that case.

@tobyhede
Copy link

tobyhede commented Jun 9, 2024

I have the same issue attempting to profile a rust application on OSX.
Samply runs with no error and opens the browser at localhost.
The viewer then errors with RangeError: minimumFractionDigits value is out of range because no data was actually generated.

@tobyhede
Copy link

tobyhede commented Jun 9, 2024

Confirmed in my case that it is a native apple silicon binary.

@mstange
Copy link
Owner

mstange commented Jun 11, 2024

Interesting! How long does the profiled process run for? Maybe it shuts down before the first sample is gathered?

@tobyhede
Copy link

@mstange Ah ... that is an interesting point, will test.

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

No branches or pull requests

3 participants