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

Division by zero in POS section #25

Closed
Hopobcn opened this issue Dec 25, 2015 · 11 comments
Closed

Division by zero in POS section #25

Hopobcn opened this issue Dec 25, 2015 · 11 comments
Labels

Comments

@Hopobcn
Copy link

Hopobcn commented Dec 25, 2015

I found a division by zero in the 'STARBASES' section. The application crashes showing

Whoops, looks like something went wrong.

to the user.

In storage/logs/laravel.log:

Next exception 'ErrorException' with message 'Division by zero (View: /var/www/seat/vendor/eveseat/web/src/resources/views/corporation/starbase/detail.blade.php) (View: /var/www/seat/vendor/eveseat/web/src/resources/views/corporation/starbase/detail.blade.php)' in /var/www/seat/storage/framework/views/d89ddc46cf0b535482924c0e015ec91a:323
Stack trace:
#0 /var/www/seat/bootstrap/cache/compiled.php(14631): Illuminate\View\Engines\CompilerEngine->handleViewException(Object(ErrorException), 1)
#1 /var/www/seat/bootstrap/cache/compiled.php(14665): Illuminate\View\Engines\PhpEngine->evaluatePath('/var/www/seat/s...', Array)
#2 /var/www/seat/bootstrap/cache/compiled.php(14498): Illuminate\View\Engines\CompilerEngine->get('/var/www/seat/v...', Array)
#3 /var/www/seat/bootstrap/cache/compiled.php(14486): Illuminate\View\View->getContents()
#4 /var/www/seat/bootstrap/cache/compiled.php(14477): Illuminate\View\View->renderContents()
#5 /var/www/seat/bootstrap/cache/compiled.php(15626): Illuminate\View\View->render()
#6 /var/www/seat/bootstrap/cache/compiled.php(15141): Illuminate\Http\Response->setContent(Object(Illuminate\View\View))
#7 /var/www/seat/bootstrap/cache/compiled.php(7695): Symfony\Component\HttpFoundation\Response->__construct(Object(Illuminate\View\View))
#8 /var/www/seat/bootstrap/cache/compiled.php(8922): Illuminate\Routing\Router->prepareResponse(Object(Illuminate\Http\Request), Object(Illuminate\View\View))
#9 [internal function]: Illuminate\Routing\ControllerDispatcher->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#10 /var/www/seat/bootstrap/cache/compiled.php(9592): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#11 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#12 /var/www/seat/bootstrap/cache/compiled.php(9574): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#13 /var/www/seat/bootstrap/cache/compiled.php(8923): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#14 /var/www/seat/bootstrap/cache/compiled.php(8908): Illuminate\Routing\ControllerDispatcher->callWithinStack(Object(Seat\Web\Http\Controllers\Corporation\ViewController), Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'getStarbases')
#15 /var/www/seat/bootstrap/cache/compiled.php(7862): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'Seat\\Web\\Http\\C...', 'getStarbases')
#16 /var/www/seat/bootstrap/cache/compiled.php(7833): Illuminate\Routing\Route->runWithCustomDispatcher(Object(Illuminate\Http\Request))
#17 /var/www/seat/bootstrap/cache/compiled.php(7486): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request))
#18 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#19 /var/www/seat/bootstrap/cache/compiled.php(9592): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#20 /var/www/seat/vendor/eveseat/web/src/Http/Middleware/CorporationBouncer.php(69): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#21 [internal function]: Seat\Web\Http\Middleware\CorporationBouncer->handle(Object(Illuminate\Http\Request), Object(Closure), 'starbases')
#22 /var/www/seat/bootstrap/cache/compiled.php(9584): call_user_func_array(Array, Array)
#23 /var/www/seat/vendor/eveseat/web/src/Http/Middleware/Mfa.php(51): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#24 [internal function]: Seat\Web\Http\Middleware\Mfa->handle(Object(Illuminate\Http\Request), Object(Closure))
#25 /var/www/seat/bootstrap/cache/compiled.php(9584): call_user_func_array(Array, Array)
#26 /var/www/seat/vendor/eveseat/web/src/Http/Middleware/Locale.php(43): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#27 [internal function]: Seat\Web\Http\Middleware\Locale->handle(Object(Illuminate\Http\Request), Object(Closure))
#28 /var/www/seat/bootstrap/cache/compiled.php(9584): call_user_func_array(Array, Array)
#29 /var/www/seat/vendor/eveseat/web/src/Http/Middleware/Authenticate.php(67): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#30 [internal function]: Seat\Web\Http\Middleware\Authenticate->handle(Object(Illuminate\Http\Request), Object(Closure))
#31 /var/www/seat/bootstrap/cache/compiled.php(9584): call_user_func_array(Array, Array)
#32 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#33 /var/www/seat/bootstrap/cache/compiled.php(9574): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#34 /var/www/seat/bootstrap/cache/compiled.php(7487): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#35 /var/www/seat/bootstrap/cache/compiled.php(7475): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#36 /var/www/seat/bootstrap/cache/compiled.php(7460): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#37 /var/www/seat/bootstrap/cache/compiled.php(2307): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#38 [internal function]: Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#39 /var/www/seat/bootstrap/cache/compiled.php(9592): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#40 /var/www/seat/bootstrap/cache/compiled.php(2925): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 [internal function]: Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /var/www/seat/bootstrap/cache/compiled.php(9584): call_user_func_array(Array, Array)
#43 /var/www/seat/bootstrap/cache/compiled.php(12952): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 [internal function]: Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /var/www/seat/bootstrap/cache/compiled.php(9584): call_user_func_array(Array, Array)
#46 /var/www/seat/bootstrap/cache/compiled.php(11549): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#47 [internal function]: Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#48 /var/www/seat/bootstrap/cache/compiled.php(9584): call_user_func_array(Array, Array)
#49 /var/www/seat/bootstrap/cache/compiled.php(12689): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 [internal function]: Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /var/www/seat/bootstrap/cache/compiled.php(9584): call_user_func_array(Array, Array)
#52 /var/www/seat/bootstrap/cache/compiled.php(12626): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#53 [internal function]: Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#54 /var/www/seat/bootstrap/cache/compiled.php(9584): call_user_func_array(Array, Array)
#55 /var/www/seat/bootstrap/cache/compiled.php(2982): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#56 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#57 /var/www/seat/bootstrap/cache/compiled.php(9584): call_user_func_array(Array, Array)
#58 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#59 /var/www/seat/bootstrap/cache/compiled.php(9574): call_user_func(Object(Closure), Object(Illuminate\Http\Request))
#60 /var/www/seat/bootstrap/cache/compiled.php(2254): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#61 /var/www/seat/bootstrap/cache/compiled.php(2237): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#62 /var/www/seat/public/index.php(54): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#63 {main}
$ sudo php artisan seat:version
[x] SeAT Package Versions
+---------------+---------+
| Package Name  | Version |
+---------------+---------+
| Api           | 1.0.5   |
| Console       | 1.0.7   |
| Eveapi        | 1.0.6   |
| Notifications | 1.0.3   |
| Web           | 1.0.13  |
| Services      | 1.0.10  |
+---------------+---------+
@Hopobcn
Copy link
Author

Hopobcn commented Dec 25, 2015

Nop, we have two towers online.

@warlof
Copy link
Member

warlof commented Dec 25, 2015

what about assets ? There are some in silo or not ?!

@Hopobcn
Copy link
Author

Hopobcn commented Dec 25, 2015

Well, the towers contain a whole set of arms (and 1/3 of them are offline for redundancy). The rest of objects inside those POS are online (so yes, there are more objects, than the tower itself, and maybe some of them are offline).

@leonjza leonjza added the bug label Dec 25, 2015
@apfelqoo
Copy link

We had the same problem with v0.xx a year ago - a bookmark with 0.00m³ stored was it - it may be the same problem here.

@apfelqoo
Copy link

@leonjza
Copy link
Member

leonjza commented Dec 26, 2015

Thanks @apfelqoo. Got some small refactoring ideas in mind to help debugging this type of thing better. Will also try and address the / by 0 situations mentioned.

@shibdib
Copy link

shibdib commented Dec 26, 2015

Same issue, only occurred once the tower assets updated.

@leonjza
Copy link
Member

leonjza commented Dec 26, 2015

@shibdib do you have like a bookmark in a CHA?

@leonjza
Copy link
Member

leonjza commented Dec 26, 2015

eveseat/web 1.0.14 released, which hopefully fixes this. Please update and let me know.

@Hopobcn
Copy link
Author

Hopobcn commented Dec 26, 2015

It works for me now! Thanks.

@Hopobcn Hopobcn closed this as completed Dec 26, 2015
@shibdib shibdib mentioned this issue Dec 27, 2015
@Netsuno Netsuno mentioned this issue Dec 31, 2015
@fackir fackir mentioned this issue Mar 2, 2017
This was referenced Dec 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants