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

NegativeSampleGenerator::generateFromRealData: Minimum value must be less than or equal to the maximum value #492

Closed
ChristophWurst opened this issue Jun 25, 2021 · 5 comments
Labels
1. to develop bug Something isn't working good first issue Good for newcomers

Comments

@ChristophWurst
Copy link
Member

Bildschirmfoto von 2021-06-25 08-46-16

cc @adi-dev @GrillGuth @Zocker1999NET seems to be fixable easily with a check for an empty array :)

@jknockaert
Copy link

Isn't this a duplicate of #443?

@ChristophWurst
Copy link
Member Author

No, there Missing class definition for unserialized object is the error.

@Knapoc
Copy link

Knapoc commented Dec 17, 2021

I'm experiencing this bug... are there any temporary fixes like modifying the underlaying data in the database?

@nunesgh
Copy link

nunesgh commented Mar 26, 2022

Same error here.

$ sudo -u www-data php -f occ suspiciouslogin:train
Using ipv4 strategy
An unhandled exception has been thrown:
Error: Minimum value must be less than or equal to the maximum value in /nextcloud/apps/suspicious_login/lib/Service/NegativeSampleGenerator.php:74
Stack trace:
#0 /nextcloud/apps/suspicious_login/lib/Service/NegativeSampleGenerator.php(74): random_int()
#1 /nextcloud/apps/suspicious_login/lib/Service/NegativeSampleGenerator.php(114): OCA\SuspiciousLogin\Service\NegativeSampleGenerator->generateFromRealData()
#2 [internal function]: OCA\SuspiciousLogin\Service\NegativeSampleGenerator->OCA\SuspiciousLogin\Service\{closure}()
#3 /nextcloud/apps/suspicious_login/lib/Service/NegativeSampleGenerator.php(115): array_map()
#4 /nextcloud/apps/suspicious_login/lib/Service/DataLoader.php(123): OCA\SuspiciousLogin\Service\NegativeSampleGenerator->generateShuffledFromPositiveSamples()
#5 /nextcloud/apps/suspicious_login/lib/Command/Train.php(174): OCA\SuspiciousLogin\Service\DataLoader->generateRandomShuffledData()
#6 /nextcloud/3rdparty/symfony/console/Command/Command.php(255): OCA\SuspiciousLogin\Command\Train->execute()
#7 /nextcloud/3rdparty/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run()
#8 /nextcloud/3rdparty/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
#9 /nextcloud/3rdparty/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()
#10 /nextcloud/lib/private/Console/Application.php(211): Symfony\Component\Console\Application->run()
#11 /nextcloud/console.php(99): OC\Console\Application->run()
#12 /nextcloud/occ(11): require_once('/nextcloud...')
#13 {main}

App version: 4.1.0
Nextcloud version: 23.0.3
PHP version: 7.4.28
MySQL version: 10.5.12

@joshtrichards
Copy link
Member

Duplicate of #745
Fixed in #810

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

5 participants