Skip to content

Uh oh... Something went wrong #664

@rafirafirafi

Description

@rafirafirafi

Happened when i attached this picture to the qr code generator, now impossible to back to the project (i don't mind)
tested with 3 firefox-based browser and chromium

https://github.com/user-attachments/assets/d1ccb318-eadb-401e-9645-587c667097f4

Traceback (most recent call last):
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/errors.py", line 162, in call
await self.app(scope, receive, _send)
File "/app/./server.py", line 102, in middleware
await app(scope, receive, send)
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/sentry_sdk/integrations/starlette.py", line 158, in _create_span_call
return await old_call(app, scope, new_receive, new_send, **kwargs)
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/sessions.py", line 86, in call
await self.app(scope, receive, send_wrapper)
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/sentry_sdk/integrations/starlette.py", line 310, in _sentry_authenticationmiddleware_call
await old_call(self, scope, receive, send)
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/sentry_sdk/integrations/starlette.py", line 158, in _create_span_call
return await old_call(app, scope, new_receive, new_send, **kwargs)
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/authentication.py", line 48, in call
await self.app(scope, receive, send)
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/sentry_sdk/integrations/starlette.py", line 158, in _create_span_call
return await old_call(app, scope, new_receive, new_send, **kwargs)
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/cors.py", line 92, in call
await self.simple_response(scope, receive, send, request_headers=headers)
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/cors.py", line 147, in simple_response
await self.app(scope, receive, send)
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/sentry_sdk/integrations/starlette.py", line 257, in _sentry_exceptionmiddleware_call
await old_call(self, scope, receive, send)
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/sentry_sdk/integrations/starlette.py", line 158, in _create_span_call
return await old_call(app, scope, new_receive, new_send, **kwargs)
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 75, in call
raise exc
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 64, in call
await self.app(scope, receive, sender)
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/sentry_sdk/integrations/starlette.py", line 158, in _create_span_call
return await old_call(app, scope, new_receive, new_send, **kwargs)
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in call
raise e
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/routing.py", line 680, in call
await route.handle(scope, receive, send)
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/routing.py", line 275, in handle
await self.app(scope, receive, send)
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/routing.py", line 65, in app
response = await func(request)
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/sentry_sdk/integrations/fastapi.py", line 137, in _sentry_app
return await old_app(*args, **kwargs)
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/fastapi/routing.py", line 231, in app
raw_response = await run_endpoint_function(
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/fastapi/routing.py", line 162, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
return await anyio.to_thread.run_sync(func, *args)
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/sentry_sdk/integrations/fastapi.py", line 91, in _sentry_call
return old_call(*args, **kwargs)
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/gooey_gui/core/renderer.py", line 74, in wrapper
return renderer(
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/gooey_gui/core/renderer.py", line 126, in renderer
ret = render()
File "/app/routers/root.py", line 604, in recipe_or_handle_or_static
return render_recipe_page(request, parts[0], RecipeTabs.run, example_id)
File "/app/routers/root.py", line 680, in render_recipe_page
page.render()
File "/app/./daras_ai_v2/base.py", line 371, in render
self.render_selected_tab()
File "/app/./daras_ai_v2/base.py", line 1100, in render_selected_tab
submitted = self._render_input_col()
File "/app/./daras_ai_v2/base.py", line 1639, in _render_input_col
self.render_settings()
File "/app/recipes/QRCodeGenerator.py", line 418, in render_settings
repositioning_preview_widget(
File "/app/./daras_ai_v2/repositioning.py", line 140, in repositioning_preview_widget
img, _ = reposition_object(
File "/app/./daras_ai_v2/repositioning.py", line 52, in reposition_object
obj_xmin, obj_xmax, obj_ymin, obj_ymax = get_mask_bounds(orig_mask)
File "/app/./daras_ai_v2/repositioning.py", line 123, in get_mask_bounds
ymin = white_pixels[0].min()
File "/root/.cache/pypoetry/virtualenvs/ddgai-9TtSrW0h-py3.10/lib/python3.10/site-packages/numpy/core/_methods.py", line 45, in _amin
return umr_minimum(a, axis, None, out, keepdims, initial, where)
ValueError: zero-size array to reduction operation minimum which has no identity

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions