Coder Social home page Coder Social logo

snapdump's People

Contributors

bocasti avatar noha avatar stonesong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

objectguild

snapdump's Issues

"Invalid UT8 byte" while fetching stack trace of a reported snapshot

From the UI client, if you click the "Stack trace" button, you get this kind of exception:

"Illegal leading byte for utf-8 encoding"

In order to reproduce, one could report a samp snaphot with this piece of code:

[Error signal: 'My first SnapDump snapshot']
on: Error
do: [ :error |
Smalltalk
at: #SnapDump
ifPresent: [ :reporter |
reporter handleException: error]].

The resulting snapshot snapshot will trigger the exception when fetch from a UI client

Make "max number of snapshots" configurable

The maximum number of snapshots that can be reported for a given exception is currently harcoded (it is set to 10).
This value should be configurable, and initialised at SnapDump server startup

Attach a "textual" stack trace to the snapshot generated by the handler.

It would be nice to still be able to take advantage of snapshots without having the exact same image context than the reported exception.
The UI could offer to display / download stack traces for a given snapshot.

In order to achieve that, we could add a "stack trace string" to the persisted snap file

Change metaSeparator to something more safe

The snap dump file format at the moment is a simple format that consists of text sections followed by a binary section containing a fuel dump. The separator between the text sections is a 255 byte which is unlikely to appear solely in an utf8 encoded string. But the constraint is too weak IMHO.
Needs to be more solid meaning it should be either an illegal utf8 sequence or we should change the format to TLV

How to deal with multiple server versions running at the same time

An idea that came up is to make server calls expect a version as first part of their path

This would help in the context of having multiple SnapDump servers running at the same time but with different versions.
A handler would have to use a version number in its url that matches the version of the target server.

I see the advantage as forcing snapdump users to consider version compatibility between handler and server.
We could have explicit error message when version numbers do not match.
That could prevent server from perfoming inconsistent actions if versions are not compatible

Another solution would be to let snapdump users administrate such concern completly outside pharo.
If they use specific urls to target a a given instance of snapdump server, they should make sure the path that end up into snapdump server instance is "refined"

Figure out dockerhub releases

The dockerhub configuration is not aligned with the github builds. Come up with a release scheme that matches github and dockerhub

Remove Iceberg dependency in sources

There is at least one dependency in #SDServer>>repositoryDescription.

this should be replaced by a static version set while setting up the image. This version can then be used by the SDServerVersionCall handler as well as by the SnapDumpAPI>>info

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.