Giter Site home page Giter Site logo

mistlib's People

Contributors

thulinma avatar

Stargazers

 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  avatar  avatar  avatar  avatar  avatar

mistlib's Issues

Infinite loop in DTSC::Stream::updateHeaders()

I've done different streaming tests on a LAN and quite often MistBuffer locks up in mistlib dtsc.cpp updateHeaders in the code block which starts on line 417:

  // delete fragments of which the beginning can no longer be reached
  while (metadata["frags"][0u]["num"].asInt() < metadata["keynum"][0u].asInt()){
    metadata["frags"].shrink(metadata["frags"].size() - 1);
    // increase the missed fragments counter
    metadata["missed_frags"] = metadata["missed_frags"].asInt() + 1;
  }

Basically, what seems to happen is that metadata["frags"].size() ends up being 0, but then when metadata["frags"][0u]["num"] is checked the size goes back to 1 (and returns 0 for the "num"), and the loop never terminates.

A hacky workaround which seems to ameliorate the problem is to add a size check in the while loop condition, like this:

  while (metadata["frags"].size() > 0 && metadata["frags"][0u]["num"].asInt() < metadata["keynum"][0u].asInt()){

However, this is probably a bit lame and someone who is more familiar with the code can probably think of a better fix :-)

make does not work on Mac OS X 10.8.2

If I run make, I get the following error:

  config.cpp:11:18: error: wait.h: No such file or directory
  config.cpp: In function ‘void Util::Daemonize()’:
  config.cpp:403: warning: ‘daemon’ is deprecated (declared at /usr/include/stdlib.h:292)
  config.cpp:403: warning: ‘daemon’ is deprecated (declared at /usr/include/stdlib.h:292)
  make[1]: *** [config.lo] Error 1
  make: *** [all-recursive] Error 1

Full log: gist

Configure doesn't notice that openssl is missing

On ubuntu 12.10, when building from git, compilation stops after a short while looking for openssl headers:

[..]
auth.cpp:2:25: fatal error: openssl/rsa.h: No such file or directory
compilation terminated.
make[1]: *** [auth.lo] Error 1
make[1]: Leaving directory `/home/lkarsten/mistlib/lib'
make: *** [all-recursive] Error 1
lkarsten@host:~/mistlib$

Fix: apt-get install libssl-dev

This should be handled by configure/automake.

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.