phoenixframework / phoenix_live_dashboard

Realtime dashboard with metrics, request logging, plus storage, OS and VM insights

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"bad argument in arithmetic expression" when opening OS metrics page

extesy opened this issue · comments

Environment

Make sure you are using the latest LiveView and Dashboard versions before continuing.

  • Elixir version (elixir -v): 1.13.0-rc.0 (but it also reproduces in 1.12)
  • Phoenix version (mix deps): 1.6.2
  • Phoenix LiveView version (mix deps): 0.17.5
  • Phoenix Dashboard version (mix deps): 0.6.1
  • Operating system: Windows 11
  • Browsers you attempted to reproduce this bug on (the more the merrier): Chrome, Firefox

Actual behavior

Navigating to http://localhost:4000/dashboard/os_mon page results in a "bad argument in arithmetic expression" exception.

[warning] OS_MON (:cpu_sup) called by #PID<0.4705.0>, unavailable

[warning] OS_MON (:cpu_sup) called by #PID<0.4705.0>, unavailable

[warning] OS_MON (:cpu_sup) called by #PID<0.4705.0>, unavailable

[warning] OS_MON (:cpu_sup) called by #PID<0.4705.0>, unavailable

[warning] OS_MON (:cpu_sup) called by #PID<0.4705.0>, unavailable

[error] GenServer #PID<0.4705.0> terminating
** (ArithmeticError) bad argument in arithmetic expression
    (phoenix_live_dashboard 0.6.1) lib/phoenix/live_dashboard/pages/os_mon_page.ex:172: Phoenix.LiveDashboard.OSMonPage.rup_avg/2
    (phoenix_live_dashboard 0.6.1) lib/phoenix/live_dashboard/pages/os_mon_page.ex:75: Phoenix.LiveDashboard.OSMonPage.cpu_avg_row/1
    (phoenix_live_dashboard 0.6.1) lib/phoenix/live_dashboard/pages/os_mon_page.ex:39: Phoenix.LiveDashboard.OSMonPage.render_page/1
    (phoenix_live_dashboard 0.6.1) lib/phoenix/live_dashboard/page_live.ex:237: Phoenix.LiveDashboard.PageLive.render_page/2
    (phoenix_live_dashboard 0.6.1) lib/phoenix/live_dashboard/page_live.ex:225: anonymous fn/2 in Phoenix.LiveDashboard.PageLive.render/1
    (phoenix_live_view 0.17.5) lib/phoenix_live_view/diff.ex:387: Phoenix.LiveView.Diff.traverse/7
    (phoenix_live_view 0.17.5) lib/phoenix_live_view/diff.ex:138: Phoenix.LiveView.Diff.render/3
    (phoenix_live_view 0.17.5) lib/phoenix_live_view/channel.ex:744: Phoenix.LiveView.Channel.render_diff/3
    (phoenix_live_view 0.17.5) lib/phoenix_live_view/channel.ex:406: Phoenix.LiveView.Channel.mount_handle_params_result/3
    (phoenix_live_view 0.17.5) lib/phoenix_live_view/channel.ex:927: Phoenix.LiveView.Channel.verified_mount/7
    (phoenix_live_view 0.17.5) lib/phoenix_live_view/channel.ex:58: Phoenix.LiveView.Channel.handle_info/2
    (stdlib 3.16) gen_server.erl:695: :gen_server.try_dispatch/4
    (stdlib 3.16) gen_server.erl:771: :gen_server.handle_msg/6
    (stdlib 3.16) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Last message: {Phoenix.Channel, %{"params" => %{"_csrf_token" => "MgM5WwtjJTAEJTIYIj0cGlUvIBUjFmoOtqQlrTbHeLfiUlFubxglVWXC", "_mounts" => 0, "refresh_data" => nil}, "redirect" => "http://localhost:4000/dashboard/os_mon", "session" => "SFMyNTY.g2gDaAJhBXQAAAAIZAACaWRtAAAAFHBoeC1GclRUNTBqLUNSRHZTbDhEZAAMbGl2ZV9zZXNzaW9uaAJkAA5saXZlX2Rhc2hib2FyZG4HAOTkQsLWIDpkAApwYXJlbnRfcGlkZAADbmlsZAAIcm9vdF9waWRkAANuaWxkAAlyb290X3ZpZXdkACVFbGl4aXIuUGhvZW5peC5MaXZlRGFzaGJvYXJkLlBhZ2VMaXZlZAAGcm91dGVyZAAcRWxpeGlyLkZvbGxvd1Nob3dzV2ViLlJvdXRlcmQAB3Nlc3Npb250AAAABG0AAAAZYWxsb3dfZGVzdHJ1Y3RpdmVfYWN0aW9uc2QABWZhbHNlbQAAAApjc3Bfbm9uY2VzdAAAAANkAANpbWdkAANuaWxkAAZzY3JpcHRkAANuaWxkAAVzdHlsZWQAA25pbG0AAAAFcGFnZXNsAAAACmgCZAAEaG9tZWgCZAAlRWxpeGlyLlBob2VuaXguTGl2ZURhc2hib2FyZC5Ib21lUGFnZXQAAAACZAAIZW52X2tleXNkAANuaWxkAAhob21lX2FwcGgCbQAAAAlEYXNoYm9hcmRkABZwaG9lbml4X2xpdmVfZGFzaGJvYXJkaAJkAAZvc19tb25oAmQAJkVsaXhpci5QaG9lbml4LkxpdmVEYXNoYm9hcmQuT1NNb25QYWdldAAAAABoAmQAB21ldHJpY3NoAmQAKEVsaXhpci5QaG9lbml4LkxpdmVEYXNoYm9hcmQuTWV0cmljc1BhZ2V0AAAAAmQAB21ldHJpY3NoAmQAH0VsaXhpci5Gb2xsb3dTaG93c1dlYi5UZWxlbWV0cnlkAAdtZXRyaWNzZAAPbWV0cmljc19oaXN0b3J5ZAADbmlsaAJkAA5yZXF1ZXN0X2xvZ2dlcmgCZAAuRWxpeGlyLlBob2VuaXguTGl2ZURhc2hib2FyZC5SZXF1ZXN0TG9nZ2VyUGFnZXQAAAACZAANY29va2llX2RvbWFpbmQAA25pbGQADnJlcXVlc3RfbG9nZ2VyaAJtAAAADnJlcXVlc3RfbG9nZ2VybQAAAA5yZXF1ZXN0X2xvZ2dlcmgCZAAMYXBwbGljYXRpb25zaAJkAC1FbGl4aXIuUGhvZW5peC5MaXZlRGFzaGJvYXJkLkFwcGxpY2F0aW9uc1BhZ2V0AAAAAGgCZAAJcHJvY2Vzc2VzaAJkACpFbGl4aXIuUGhvZW5peC5MaXZlRGFzaGJvYXJkLlByb2Nlc3Nlc1BhZ2V0AAAAAGgCZAAFcG9ydHNoAmQAJkVsaXhpci5QaG9lbml4LkxpdmVEYXNoYm9hcmQuUG9ydHNQYWdldAAAAABoAmQAB3NvY2tldHNoAmQAKEVsaXhpci5QaG9lbml4LkxpdmVEYXNoYm9hcmQuU29ja2V0c1BhZ2V0AAAAAGgCZAADZXRzaAJkACRFbGl4aXIuUGhvZW5peC5MaXZlRGFzaGJvYXJkLkV0c1BhZ2V0AAAAAGgCZAAKZWN0b19zdGF0c2gCZAAqRWxpeGlyLlBob2VuaXguTGl2ZURhc2hib2FyZC5FY3RvU3RhdHNQYWdldAAAAAJkAAxlY3RvX29wdGlvbnNsAAAAAmgCZAAYZWN0b19wc3FsX2V4dHJhc19vcHRpb25zamgCZAAZZWN0b19teXNxbF9leHRyYXNfb3B0aW9uc2pqZAAFcmVwb3NkAA1hdXRvX2Rpc2NvdmVyam0AAAAMcmVxdWlyZW1lbnRzbAAAAAFoAmQAC2FwcGxpY2F0aW9uZAAGb3NfbW9uamQABHZpZXdkACVFbGl4aXIuUGhvZW5peC5MaXZlRGFzaGJvYXJkLlBhZ2VMaXZlbgYAExMR83wBYgABUYA.BZ0tTzGfhATwgx__CkH_prBocLFruhdO3I8KGYRcgfE", "static" => "SFMyNTY.g2gDaAJhBXQAAAADZAAKYXNzaWduX25ld2pkAAVmbGFzaHQAAAAAZAACaWRtAAAAFHBoeC1GclRUNTBqLUNSRHZTbDhEbgYAFxMR83wBYgABUYA.tkuAPbqtf-UM35TqypQDm5XLfSVfhMUkTpc5-TbmS9k"}, {#PID<0.4675.0>, #Reference<0.2934239975.2920546316.176013>}, %Phoenix.Socket{assigns: %{}, channel: Phoenix.LiveView.Channel, channel_pid: nil, endpoint: FollowShowsWeb.Endpoint, handler: Phoenix.LiveView.Socket, id: nil, join_ref: "11", joined: false, private: %{connect_info: %{session: %{"_csrf_token" => "Frh7y7GxaiTqwQZo7WGyuA2M"}}}, pubsub_server: FollowShows.PubSub, ref: nil, serializer: Phoenix.Socket.V2.JSONSerializer, topic: "lv:phx-FrTT50j-CRDvSl8D", transport: :websocket, transport_pid: #PID<0.4675.0>}}
State: #Reference<0.2934239975.2920546316.176015>
[error] an exception was raised:
    ** (ArithmeticError) bad argument in arithmetic expression
        (phoenix_live_dashboard 0.6.1) lib/phoenix/live_dashboard/pages/os_mon_page.ex:172: Phoenix.LiveDashboard.OSMonPage.rup_avg/2
        (phoenix_live_dashboard 0.6.1) lib/phoenix/live_dashboard/pages/os_mon_page.ex:75: Phoenix.LiveDashboard.OSMonPage.cpu_avg_row/1
        (phoenix_live_dashboard 0.6.1) lib/phoenix/live_dashboard/pages/os_mon_page.ex:39: Phoenix.LiveDashboard.OSMonPage.render_page/1
        (phoenix_live_dashboard 0.6.1) lib/phoenix/live_dashboard/page_live.ex:237: Phoenix.LiveDashboard.PageLive.render_page/2
        (phoenix_live_dashboard 0.6.1) lib/phoenix/live_dashboard/page_live.ex:225: anonymous fn/2 in Phoenix.LiveDashboard.PageLive.render/1
        (phoenix_live_view 0.17.5) lib/phoenix_live_view/diff.ex:387: Phoenix.LiveView.Diff.traverse/7
        (phoenix_live_view 0.17.5) lib/phoenix_live_view/diff.ex:138: Phoenix.LiveView.Diff.render/3
        (phoenix_live_view 0.17.5) lib/phoenix_live_view/channel.ex:744: Phoenix.LiveView.Channel.render_diff/3
        (phoenix_live_view 0.17.5) lib/phoenix_live_view/channel.ex:406: Phoenix.LiveView.Channel.mount_handle_params_result/3
        (phoenix_live_view 0.17.5) lib/phoenix_live_view/channel.ex:927: Phoenix.LiveView.Channel.verified_mount/7
        (phoenix_live_view 0.17.5) lib/phoenix_live_view/channel.ex:58: Phoenix.LiveView.Channel.handle_info/2
        (stdlib 3.16) gen_server.erl:695: :gen_server.try_dispatch/4
        (stdlib 3.16) gen_server.erl:771: :gen_server.handle_msg/6
        (stdlib 3.16) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
[info] GET /dashboard/os_mon
[debug] Processing with Phoenix.LiveView.Plug.page/2
  Parameters: %{"page" => "os_mon"}
  Pipelines: [:fetch_session, :protect_from_forgery]
[warning] OS_MON (:cpu_sup) called by #PID<0.4708.0>, unavailable

[warning] OS_MON (:cpu_sup) called by #PID<0.4708.0>, unavailable

[warning] OS_MON (:cpu_sup) called by #PID<0.4708.0>, unavailable

[warning] OS_MON (:cpu_sup) called by #PID<0.4708.0>, unavailable

[warning] OS_MON (:cpu_sup) called by #PID<0.4708.0>, unavailable

[info] Sent 500 in 22ms
[error] #PID<0.4708.0> running FollowShowsWeb.Endpoint (connection #PID<0.4707.0>, stream id 1) terminated
Server: localhost:4000 (http)
Request: GET /dashboard/os_mon
** (exit) an exception was raised:
    ** (ArithmeticError) bad argument in arithmetic expression
        (phoenix_live_dashboard 0.6.1) lib/phoenix/live_dashboard/pages/os_mon_page.ex:172: Phoenix.LiveDashboard.OSMonPage.rup_avg/2
        (phoenix_live_dashboard 0.6.1) lib/phoenix/live_dashboard/pages/os_mon_page.ex:75: Phoenix.LiveDashboard.OSMonPage.cpu_avg_row/1
        (phoenix_live_dashboard 0.6.1) lib/phoenix/live_dashboard/pages/os_mon_page.ex:39: Phoenix.LiveDashboard.OSMonPage.render_page/1
        (phoenix_live_dashboard 0.6.1) lib/phoenix/live_dashboard/page_live.ex:237: Phoenix.LiveDashboard.PageLive.render_page/2
        (phoenix_live_dashboard 0.6.1) lib/phoenix/live_dashboard/page_live.ex:225: anonymous fn/2 in Phoenix.LiveDashboard.PageLive.render/1
        (phoenix_live_view 0.17.5) lib/phoenix_live_view/diff.ex:387: Phoenix.LiveView.Diff.traverse/7
        (phoenix_live_view 0.17.5) lib/phoenix_live_view/diff.ex:138: Phoenix.LiveView.Diff.render/3
        (phoenix_live_view 0.17.5) lib/phoenix_live_view/static.ex:234: Phoenix.LiveView.Static.to_rendered_content_tag/4
        (phoenix_live_view 0.17.5) lib/phoenix_live_view/static.ex:126: Phoenix.LiveView.Static.render/3
        (phoenix_live_view 0.17.5) lib/phoenix_live_view/controller.ex:38: Phoenix.LiveView.Controller.live_render/3
        (phoenix 1.6.2) lib/phoenix/router.ex:355: Phoenix.Router.__call__/2
        (followshows 0.1.0) lib/followshows_web/endpoint.ex:1: FollowShowsWeb.Endpoint.plug_builder_call/2
        (followshows 0.1.0) lib/plug/debugger.ex:136: FollowShowsWeb.Endpoint."call (overridable 3)"/2
        (followshows 0.1.0) lib/followshows_web/endpoint.ex:1: FollowShowsWeb.Endpoint.call/2
        (phoenix 1.6.2) lib/phoenix/endpoint/cowboy2_handler.ex:43: Phoenix.Endpoint.Cowboy2Handler.init/4
        (cowboy 2.9.0) d:/Projects/Research/followshows/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
        (cowboy 2.9.0) d:/Projects/Research/followshows/deps/cowboy/src/cowboy_stream_h.erl:306: :cowboy_stream_h.execute/3
        (cowboy 2.9.0) d:/Projects/Research/followshows/deps/cowboy/src/cowboy_stream_h.erl:295: :cowboy_stream_h.request_process/3
        (stdlib 3.16) proc_lib.erl:226: :proc_lib.init_p_do_apply/3

Expected behavior

Successfully open a dashboard page.

Nevermind. I'm apparently an idiot and didn't notice that it was closed as part of a commit that (ostensibly) fixes the issue. 🤦🏻‍♂️

I'm curious why this was closed without comment. I found this issue as I'm running into the same problem (running on Linux, not Windows).

I am running 0.6.2 and I think i still have the issue? I receive the stacktrace below on the OS metrics page.

  • Elixir version (elixir -v): ```Erlang/OTP 24 [erts-12.2] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit] [dtrace] Elixir 1.13.1 (compiled with Erlang/OTP 24)````

  • Phoenix version (mix deps): locked at 1.6.6 (phoenix) 807bd646

  • Phoenix LiveView version (mix deps): locked at 0.17.5 (phoenix_live_view) c5586e6a

  • Phoenix Dashboard version (mix deps): locked at 0.6.2 (phoenix_live_dashboard) 5bc6c6b3

  • Operating system: Mac OS

  • Browsers you attempted to reproduce this bug on (the more the merrier): Chrome.

Stacktrace:

  ** (ArithmeticError) bad argument in arithmetic expression
        (phoenix_live_dashboard 0.6.2) lib/phoenix/live_dashboard/pages/os_mon_page.ex:173: Phoenix.LiveDashboard.OSMonPage.rup_avg/2
        (phoenix_live_dashboard 0.6.2) lib/phoenix/live_dashboard/pages/os_mon_page.ex:76: Phoenix.LiveDashboard.OSMonPage.cpu_avg_row/1
        (phoenix_live_dashboard 0.6.2) lib/phoenix/live_dashboard/pages/os_mon_page.ex:45: Phoenix.LiveDashboard.OSMonPage.cpu_components/1
        (phoenix_live_dashboard 0.6.2) lib/phoenix/live_dashboard/pages/os_mon_page.ex:33: Phoenix.LiveDashboard.OSMonPage.render_page/1
        (phoenix_live_dashboard 0.6.2) lib/phoenix/live_dashboard/page_live.ex:237: Phoenix.LiveDashboard.PageLive.render_page/2
        (phoenix_live_dashboard 0.6.2) lib/phoenix/live_dashboard/page_live.ex:225: anonymous fn/2 in Phoenix.LiveDashboard.PageLive.render/1
        (phoenix_live_view 0.17.5) lib/phoenix_live_view/diff.ex:387: Phoenix.LiveView.Diff.traverse/7
        (phoenix_live_view 0.17.5) lib/phoenix_live_view/diff.ex:138: Phoenix.LiveView.Diff.render/3
        (phoenix_live_view 0.17.5) lib/phoenix_live_view/static.ex:234: Phoenix.LiveView.Static.to_rendered_content_tag/4
        (phoenix_live_view 0.17.5) lib/phoenix_live_view/static.ex:126: Phoenix.LiveView.Static.render/3
        (phoenix_live_view 0.17.5) lib/phoenix_live_view/controller.ex:38: Phoenix.LiveView.Controller.live_render/3
        (phoenix 1.6.6) lib/phoenix/router.ex:355: Phoenix.Router.__call__/2 
        (phoenixtest 0.1.0) lib/phoenixtest_web/endpoint.ex:1: PhoenixtestWeb.Endpoint.plug_builder_call/2
        (phoenixtest 0.1.0) lib/plug/debugger.ex:136: PhoenixtestWeb.Endpoint."call (overridable 3)"/2
        (phoenixtest 0.1.0) lib/phoenixtest_web/endpoint.ex:1: PhoenixtestWeb.Endpoint.call/2
        (phoenix 1.6.6) lib/phoenix/endpoint/cowboy2_handler.ex:54: Phoenix.Endpoint.Cowboy2Handler.init/4
        (cowboy 2.9.0) /Users/jeduden/dev/git/phoenixtest/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
        (cowboy 2.9.0) /Users/jeduden/dev/git/phoenixtest/deps/cowboy/src/cowboy_stream_h.erl:306: :cowboy_stream_h.execute/3
        (cowboy 2.9.0) /Users/jeduden/dev/git/phoenixtest/deps/cowboy/src/cowboy_stream_h.erl:295: :cowboy_stream_h.request_process/3
        (stdlib 3.17) proc_lib.erl:226: :proc_lib.init_p_do_apply/3

@jeduden just curious: are you using a Mac with M1 processor? If so, can you tell us the model?

@jeduden just curious: are you using a Mac with M1 processor? If so, can you tell us the model?

It is an intel mac. 2019 model.

I retried this on a different project. There it worked. The deps were not exactly the same. I tried the failing project {:telemetry_metrics, "~> 0.4"},. That worked, when I reverted back to the original version 0.6, it also worked.
So I am not clear yet, what potentially could cause such a behaviour.

I have the same problem. Accessing OS_metrics page generates the "bad arg in arithmetic expression".

Running it on Win 10 x64 with following phx deps:

      {:phoenix_live_dashboard, "~> 0.6.2"},
      {:telemetry_metrics, "~> 0.6.1"},
      {:telemetry_poller, "~> 1.0"},
      {:telemetry, "~> 1.0", override: true},

I have attempted to downgrade telemetry_metrics version to 0.4 just what jeduden advised above but to no effect.

Thanks.

This has been fixed in the main/master branch. CN you please check?

This has been fixed in the main/master branch. CN you please check?

Hi Jose, thanks for your kind reply.

I have modified my deps to include:
{:phoenix_live_dashboard, git: "https://github.com/phoenixframework/phoenix_live_dashboard.git",tag: "master"},

I have re-run mix deps.clean phoenix_live_dashboard and mix deps.get phoenix_live_dashboard and verified that the os_mon_page.ex contains the commit 033199a which you made

And still gets a error when accessing /dashboard/os_mon_page.ex

[warning] OS_MON (:cpu_sup) called by #PID<0.1204.0>, unavailable

[warning] OS_MON (:cpu_sup) called by #PID<0.1204.0>, unavailable

[warning] OS_MON (:cpu_sup) called by #PID<0.1204.0>, unavailable

[warning] OS_MON (:cpu_sup) called by #PID<0.1204.0>, unavailable

[warning] OS_MON (:cpu_sup) called by #PID<0.1204.0>, unavailable

[info] Sent 500 in 101ms
[error] #PID<0.1204.0> running ProjectWeb.Endpoint (connection #PID<0.1203.0>, stream id 1) terminated
Server: localhost:6001 (http)
Request: GET /dashboard/os_mon
** (exit) an exception was raised:
** (ArithmeticError) bad argument in arithmetic expression
(phoenix_live_dashboard 0.6.2) lib/phoenix/live_dashboard/pages/os_mon_page.ex:173: Phoenix.LiveDashboard.OSMonPage.rup_avg/2
(phoenix_live_dashboard 0.6.2) lib/phoenix/live_dashboard/pages/os_mon_page.ex:76: Phoenix.LiveDashboard.OSMonPage.cpu_avg_row/1
(phoenix_live_dashboard 0.6.2) lib/phoenix/live_dashboard/pages/os_mon_page.ex:45: Phoenix.LiveDashboard.OSMonPage.cpu_components/1
(phoenix_live_dashboard 0.6.2) lib/phoenix/live_dashboard/pages/os_mon_page.ex:33: Phoenix.LiveDashboard.OSMonPage.render_page/1
(phoenix_live_dashboard 0.6.2) lib/phoenix/live_dashboard/page_live.ex:237: Phoenix.LiveDashboard.PageLive.render_page/2
(phoenix_live_dashboard 0.6.2) lib/phoenix/live_dashboard/page_live.ex:225: anonymous fn/2 in Phoenix.LiveDashboard.PageLive.render/1
(phoenix_live_view 0.17.6) lib/phoenix_live_view/diff.ex:387: Phoenix.LiveView.Diff.traverse/7
(phoenix_live_view 0.17.6) lib/phoenix_live_view/diff.ex:138: Phoenix.LiveView.Diff.render/3
(phoenix_live_view 0.17.6) lib/phoenix_live_view/static.ex:244: Phoenix.LiveView.Static.to_rendered_content_tag/4
(phoenix_live_view 0.17.6) lib/phoenix_live_view/static.ex:126: Phoenix.LiveView.Static.render/3
(phoenix_live_view 0.17.6) lib/phoenix_live_view/controller.ex:39: Phoenix.LiveView.Controller.live_render/3
(phoenix 1.6.6) lib/phoenix/router.ex:355: Phoenix.Router.call/2
(project 0.1.0) lib/project_web/endpoint.ex:1: ProjectWeb.Endpoint.plug_builder_call/2
(project 0.1.0) lib/plug/debugger.ex:136: ProjectWeb.Endpoint."call (overridable 3)"/2
(project 0.1.0) lib/project_web/endpoint.ex:1: ProjectWeb.Endpoint.call/2
(phoenix 1.6.6) lib/phoenix/endpoint/cowboy2_handler.ex:54: Phoenix.Endpoint.Cowboy2Handler.init/4
(cowboy 2.9.0) d:/Sources/project/deps/cowboy/src/cowboy_handler.erl:37: :cowboy_handler.execute/2
(cowboy 2.9.0) d:/Sources/project/deps/cowboy/src/cowboy_stream_h.erl:306: :cowboy_stream_h.execute/3
(cowboy 2.9.0) d:/Sources/project/deps/cowboy/src/cowboy_stream_h.erl:295: :cowboy_stream_h.request_process/3
(stdlib 3.15) proc_lib.erl:226: :proc_lib.init_p_do_apply/3

Please let me know how I can help further in testing this.

elixir -v
Erlang/OTP 24 [erts-12.0] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit]

Elixir 1.13.2 (compiled with Erlang/OTP 22)

Am running on a i9-9900K on Windows 10 x64 Enterprise. Running direct from cmd line and terminal within vscode.

Thanks a lot.

I think I fixed it now, can you please try again? :)

I think I fixed it now, can you please try again? :)

Works perfectly. Thank you very much Jose and I appreciate all what you have done for the elixir community.

Btw, some checks failed and your commit didn't make it into the master. I tweaked my local copy of the os_mon file with your changes. Just a headsup.

commented

This bad argument in arithmetic expression error happened for me just now when doing a fresh install of phoenix (1.7.6) from the up and running guide, using Elixir 1.15.2

I am having the same issue on the fresh setup of Phoenix v1.7.6

Can you please post your stacktrace and your Erlang/OTP version?

@josevalim it seems to be working fine after I removed _build to force clean build.

same problem with elixir 1.15.4 and Phoenix 1.7.7