-
Notifications
You must be signed in to change notification settings - Fork 17.4k
Bump minidump @aminya/[email protected] #21792
Conversation
MacOS executable is not found. I don't have a Mac machine to test build and test this. Can someone on Mac run |
Did an
|
Thanks! Does it actually build the executable? Is this file readable or it is an executable file? |
The file is readable and not an executable file.
Contents
|
I am setting up a virtual machine to troubleshoot the issue. |
I didn't realize that is so hard to set up a Mac virtual machine. I'm afraid I cannot troubleshoot the build script. The original developers at Electron also have not responded. Should we just disable minidump for Mac instead until Electron people fix it? |
@sadick254 MacOS error is fixed now. If you want you can merge my fork now, or wait until my PR merges into node-minidump. |
@aminya Thank you for looking into this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Am happy with using the fork. 👍 . node-minidump
maintainers seem to delay doing a release with your fix.
Very brief summary of this comment: This PR changes the build requirements for Atom. Is there a benefit to using newer Hi folks. I should have raised this here earlier, but this PR changes the build requirements of Atom on macOS. This changes the requirement from "either the command line tools OR XCode", to strictly requiring XCode. So at minimum it will require changes to the docs at Hacking Atom Core in the Flight Manual. I was hoping this would be resolved upstream, but it wasn't. I personally prefer to use the lighter "command line tools", so I was personally hoping this would not be merged to I notice this updated Does this have a benefit that outweighs the downside (increasing build requirements on macOS, and requiring a follow-up PR for documentation? |
As mentioned above, this PR gives me an error when bootstrapping: Error message (click to expand):
Can we please revert this? Or can someone provide a strong reason why this PR is actually needed? (One that makes this PR worth the downside of changing the build requirements of Atom? Again, properly documenting this change would require a PR over at the Flight Manual repo. I'd rather not have the build requirements change and would rather not have to update the docs to reflect that if it's not providing a substantial and well-understood benefit.) I appreciate the work that went into this, but |
Instead of removing features, we can prebuild minidump. Setting up a CI for building the executable is not that hard. |
My suggestion is toward using an older version of this package (0.9.0), which used to work on macOS just fine, but with the benefit of having easier-to-meet build requirements. (Yes, minidump 0.9.0 can dump symbols on macOS). It also used an older version of Google's |
I already made a PR for prebuilding minidump: Without my prebuild PR, the downside only affects a small demographics. The developers who want to build Atom locally and are on macOS and do not want to install XCode. |
So I want to at least attempt to look at the pros and cons here. This main Atom repo only uses the This file is in turn only used by And finally the only obvious place I see these being "used" is compressing them and uploading them as an artifact in CI/for releases. If no-one is using this zipped symbol dump archive, then having newer |
This comment has been minimized.
This comment has been minimized.
Okay, so symbol dumping was actually added here: #1618 Supposedly it is useful for debugging some crashes. Per the author who added the feature, writing in a follow-up issue that never got resolved:
|
In statically compiled languages (in contrast to interpreted and JIT languages), the stack traces and error messages require symbols to be included with the binaries, so in case of an error or crash, the error message points to the original code location. Without symbols debugging any binary is impossible. |
Thanks. That's useful context. I already vaguely understood this, but it's confusing to me because they're not actually included in any of the binaries. They're just a separate release artifact. I think users would have to download the debug symbols and put them in the right place, or manually load them in their debugger. From the author of that PR:
I checked the build scripts and the symbols really do not appear to be included in the built app. |
Reading this documentation (see link), I think the built-in Electron dev tools can debug the renderer process, and Chrome can now natively debug the main process: https://www.electronjs.org/docs/tutorial/application-debugging Since this As far as I can tell, there is no obvious way to actually use these debug symbols anymore, so I'd like to propose deleting |
#21916 fixes this. |
This reverts commit 11b9559.
Description of the change
Resolves the mindump issues on MacOS and Linux for Electron 9 in #21777
Verification
I fixed minidump's building for MacOS and Linux in my fork:
My fork: https://github.com/aminya/node-minidump
I have made a PR to the original package, but it may take some time until they merge it, so I have registered it with my name temporarily.
electron/node-minidump#40
Release Notes
N/A