[ndnSIM] Assert failed: CustomApp not found

Alex Afanasyev alexander.afanasyev at ucla.edu
Sun Feb 16 01:44:37 PST 2014

Hi Sandhya,

Sorry for my delayed reply.  The problem you're facing is basically a linking issue and you have to change the way you creating your scenario.  If you put a single file under scratch/ folder, the build system will treat it as a whole scenario and link against NS-3 libraries.  You're trying to use CustomApp, which is not part of any NS-3 libraries and needs to be linked with your scenario.

A simple trick will fix your problem:

- create a directory under scratch/  and give it a name that you will use to run your scenario (e.g., ndn-mod1)
- put ndn-mod1.cc under scratch/ndn-mod1/
- put custom-app.h|cc under the same scratch/ndn-mod1/ folder

compile the code and you shouldn't have the assertion anymore.


On Jan 28, 2014, at 9:23 PM, Sandhya Giri <sandhya.giri18 at gmail.com> wrote:

> Dear sir,
>         I am trying to run ndn-mod1.cc from scratch folder. But after build process, i am getting the following error:
> 'build' finished successfully (5.429s)
> assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: CustomApp not found", file=../src/core/model/type-id.cc, line=539
> terminate called without an active exception
> Command ['/home/sandhya/ndnSIM/ns-3/build/scratch/ndn-mod1'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").
> Can you please help me with this problem??
> Thank you
> Sandhya

More information about the ndnSIM mailing list