Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The pcap file size is about 300M, Error in rep(1:N, sapply(ngrams[-total], length)) : invalid 'times' argument #32

Open
higher75 opened this issue Sep 30, 2022 · 1 comment

Comments

@higher75
Copy link

I have tried many different network protocols. Each individual protocol is a pcap file, but the following errors will occur. Can you help me.. thank you..

  1. os: ubuntu20.04
  2. Language: python3.6.9
  3. Execute command: python3 pulsar.py -l -p icmp3.pcap
  4. Packet size: ~300M
  5. Data packets are from the same original address to the same destination address
  6. The error is as follows:

data = loadPrismaData(capture_dir)
Reading data...
Splitting ngrams...
Calc indices...
Setup matrix...
Error in rep(1:N, sapply(ngrams[-total], length)) :
invalid 'times' argument
Calls: loadPrismaData -> readPrismaInput -> readFSally -> sparseMatrix
Execution halted

@hgascon
Copy link
Owner

hgascon commented Oct 20, 2022

That seems like an error in the Prisma module (https://github.com/tammok/PRISMA/blob/a48624f5102875984975ce99ddd687e0ddd6dee5/R/prisma.R#L60). Maybe you can debug the previous lines or check the values of the variables involved (indices, ngrams...) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants