Giter Site home page Giter Site logo

mini-breakpad-server's Introduction

mini-breakpad-server

Minimum collecting server for crash reports sent by google-breakpad.

Features

  • No requirement for setting up databases or web servers.
  • Collecting crash reports with minidump files.
  • Simple web interface for viewing translated crash reports.

Run

  • npm install .
  • grunt
  • Put your breakpad symbols under pool/symbols/PRODUCT_NAME
  • node lib/app.js

mini-breakpad-server's People

Contributors

chocoladisco avatar thughes avatar zcbenz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mini-breakpad-server's Issues

Buffer.write(string, encoding, offset[, length]) is no longer supported

I use the Electron CrashReporter and set the submitURL to "http://localhost:1127/post". When I use process.crash(), the server throws this error:

Error [ERR_NO_LONGER_SUPPORTED]: Buffer.write(string, encoding, offset[, length]) is no longer supported
at Buffer.write (buffer.js:931:11)
at MultipartParser.initWithBoundary (/Users/haoyuantang/Downloads/mini-breakpad-server-master/node_modules/formidable/lib/multipart_parser.js:61:17)
at IncomingForm._initMultipart (/Users/haoyuantang/Downloads/mini-breakpad-server-master/node_modules/formidable/lib/incoming_form.js:326:10)
at IncomingForm._parseContentType (/Users/haoyuantang/Downloads/mini-breakpad-server-master/node_modules/formidable/lib/incoming_form.js:269:12)
at IncomingForm.writeHeaders (/Users/haoyuantang/Downloads/mini-breakpad-server-master/node_modules/formidable/lib/incoming_form.js:142:8)
at IncomingForm.parse (/Users/haoyuantang/Downloads/mini-breakpad-server-master/node_modules/formidable/lib/incoming_form.js:110:8)
at Function.Record.createFromRequest (/Users/haoyuantang/Downloads/mini-breakpad-server-master/lib/record.js:36:19)
at Object.exports.saveRequest (/Users/haoyuantang/Downloads/mini-breakpad-server-master/lib/saver.js:13:19)
at /Users/haoyuantang/Downloads/mini-breakpad-server-master/lib/app.js:56:18
at Layer.handle [as handle_request] (/Users/haoyuantang/Downloads/mini-breakpad-server-master/node_modules/express/lib/router/layer.js:95:5)

minidump.js commands execute error

minidump version 0.19.0
I install minidump by npm intall [email protected] --no-bin-links
but node_modules/minidump/build have nothing, the minidump.js content commands excute path minidump\build\src\processor\minidump_stackwalk.exe is not exsit

app.post must send a reportID response

The Mac OSX breakpad uploader expects the POST response to be a reportID, which it uses to rename the minidump file on the user's system. The mini-breakpad-server's app.post method is not giving a response, so the Mac OSX uploader renames the mindump file to just ".dmp". I've filed an issue with google breakpad to check for this and avoid the problem.

So I tried adding "res.send(path.basename(filename))" in the app.post method, above the res.end() call. This worked fine with the current version of google breakpad.

I've never used CoffeeScript or node.js, but your code was clear enough for me to make this change in my checkout workdir, and it seems to fix the problem.

Thanks for making a handy breakpad upload server!

Pages for custom fields in crash reports

Hi,

I'd like to add some custom fields to the crash report such as a log file.

For this, I want to add a new route at /view/:id/:field to view the contents of that field because the log file will be rather large.

Are you interested in this change?

[Bug]: cannot upload crash to mini-breakpad-server

Preflight Checklist

Electron Version

20.3.5

What operating system are you using?

macOS

Operating System Version

macOS Monterey 12.5.1

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

I use mini-breakpad-server to collect crash. It is expected to save crash and log 'save...'.
I wonder whether I can use this repository to set up a server to accept and process crash reports.
I will be appreciated if any response

Actual Behavior

mini-breakpad-server throws an error: 'Error: Invalid breakpad request'

Testcase Gist URL

No response

Additional Information

No response

npm install fails on windows

Windows 10
node -v 6.9.2
npm -v 3.10.6

Fails building [email protected]

npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the minidump package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs minidump
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls minidump
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\rem0te\Desktop\mini-breakpad-server\npm-debug.log

I was able to get passed this by specifying [email protected] in package.json

Wrong syms-Path in README

On OS X, if you put the symbol files into the directory structure, which your README suggests, minidump does not find the symbols.

On my system I had to put the Symbols into

pool/symbols/PRODUCT_NAME/APPLICATION_NAME/PRODUCT_VERSION/APPLICATION_NAME.sym

Where:
PRODUCT_NAME = Product name configured in Breakpead (on OS X you can configure this in the app's Info.plist)
APPLICATION_NAME = Name of the application bundle and executable name.
PRODUCT_VERSION = head -n1 application.sym | cut -d " " -f4

Also I found the PRODUCT_VERSION from your readme confusing. This could also have been the version, which you configure in breakpad (e.g. "v1.3").

Please publish 0.2.0 to npm, and corresponding minidump 0.3.0

Hi, this package looks like it could be useful for others. Please publish it to npm. I know 0.1.0 is already published, but the install fails because minidump 0.1.1 doesn't exist on npm:

$ npm install mini-breakpad-server
npm http GET https://registry.npmjs.org/minidump/-/minidump-0.1.1.tgz
npm http 404 https://registry.npmjs.org/minidump/-/minidump-0.1.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/minidump/-/minidump-0.1.1.tgz
npm ERR! Error: 404 Not Found
npm ERR!     at WriteStream.<anonymous> (/usr/lib/node_modules/npm/lib/utils/fetch.js:57:12)
npm ERR!     at emitNone (events.js:85:20)
npm ERR!     at WriteStream.emit (events.js:179:7)
npm ERR!     at fs.js:1855:14
npm ERR!     at /usr/lib/node_modules/graceful-fs/graceful-fs.js:103:5
npm ERR!     at FSReqWrap.oncomplete (fs.js:82:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.19.8-100.fc20.x86_64
npm ERR! command "/apps/infra/bin/opteron_rhel20/node" "/usr/bin/npm" "install" "mini-breakpad-server"
npm ERR! cwd /spare/local/vchijwani/downloads
npm ERR! node -v v5.5.0
npm ERR! npm -v 1.3.6
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /spare/local/vchijwani/downloads/npm-debug.log
npm ERR! not ok code 0

How to create breakpad symbols

Hey, I run the mini-breakpad-server on my server and it's collecting the reports correctly from my Electron app, however I don't know how to create breakpad symbols (for windows, OSX, Linux) to work with my Electron app, could you give me a hint please? thanks

Empty list shows on localhost:1127

I setup the server and make it running successfully, and I add the config in electron to send crash report to this address, then I use process.crash() to fire a crash manually. Now I can see xxx.dmp file generated in tmp folder, but when I open localhost:1127, I can only see the "Crash Reports" title on the page, no report list.

something wrong in minidump

operating system:Windows 10x64
node:v12.14.1
electron:8.0.2

I deploy the mini-breakpad-server,and i receive the dump file from my electron.
But when I use the url http://localhost:1127/view/:id,the process will spend much time,and it doesn't export anything,only the record.fields。
Here is my file tree:
D:.
├─database
│ └─dirty
├─files
│ └─minidump
└─symbols
└─electron.exe.pdb
└─6A6A418ECC331A144C4C44205044422E1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.