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

samples/HelloMvc doesn't work with Mono 1.0.0-rc1-update1 #1161

Closed
shrayasr opened this Issue Dec 9, 2015 · 3 comments

Comments

Projects
None yet
1 participant
@shrayasr
Copy link

shrayasr commented Dec 9, 2015

Title

samples/HelloMvc doesn't work with Mono 1.0.0-rc1-update1

Minimal repro steps

$ git clone https://github.com/aspnet/home
$ cd home/samples/1.0.0-rc1-update1/HelloMvc
$ dnvm list

Active Version              Runtime Architecture OperatingSystem Alias
------ -------              ------- ------------ --------------- -----
  *    1.0.0-rc1-final      coreclr x64          linux           rc1-core, default
       1.0.0-rc1-update1    mono                 linux/osx       rc1-mono
       1.0.0-rc2-16258      coreclr x64          linux           rc2-core

$ dnvm use rc1-mono
$ dnu restore
$ dnx web

Following this, Point a browser to http://localhost:5004.

Expected result

Index page be rendered.

Actual result

The server gets stuck at one point and the response is never received

Further technical details

❯ dnx web
Hosting environment: Production
Now listening on: http://*:5004
Application started. Press Ctrl+C to shut down.
info: Microsoft.AspNet.Hosting.Internal.HostingEngine[1]
      Request starting HTTP/1.1 GET http://localhost:5004/  
info: Microsoft.AspNet.Mvc.Controllers.ControllerActionInvoker[1]
      Executing action method MvcSample.Web.HomeController.Index with arguments () - ModelState is Valid'

Here is a more verbose output with DNX_TRACE set.

Hosting environment: Production
Now listening on: http://*:5004
Application started. Press Ctrl+C to shut down.
Information: [LoaderContainer]: Load name=System.Numerics.Vectors, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Information: [PackageAssemblyLoader]: Loaded name=System.Numerics.Vectors, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a in 0ms
info: Microsoft.AspNet.Hosting.Internal.HostingEngine[1]
      Request starting HTTP/1.1 GET http://localhost:5004/  
Information: [LoaderContainer]: Load name=Microsoft.AspNet.Http.Extensions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
Information: [PackageAssemblyLoader]: Loaded name=Microsoft.AspNet.Http.Extensions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 i
n 0ms
Information: [LoaderContainer]: Load name=Microsoft.Net.Http.Headers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
Information: [PackageAssemblyLoader]: Loaded name=Microsoft.Net.Http.Headers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 in 0ms
Information: [LoaderContainer]: Load name=Microsoft.Extensions.Localization.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829dd
ae60
Information: [PackageAssemblyLoader]: Loaded name=Microsoft.Extensions.Localization.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9
793829ddae60 in 0ms
Information: [LoaderContainer]: Load name=Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
Information: [PackageAssemblyLoader]: Loaded name=Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed in 0ms
Information: [ApplicationHostContext] Using Lock File Target: DNX,Version=v4.5.1/ubuntu.14.04-x64
Information: [LoaderContainer]: Load name=Microsoft.AspNet.WebUtilities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
Information: [PackageAssemblyLoader]: Loaded name=Microsoft.AspNet.WebUtilities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 in 0
ms
info: Microsoft.AspNet.Mvc.Controllers.ControllerActionInvoker[1]
      Executing action method MvcSample.Web.HomeController.Index with arguments () - ModelState is Valid'
Information: [LoaderContainer]: Load name=Microsoft.AspNet.Razor.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
Information: [PackageAssemblyLoader]: Loaded name=Microsoft.AspNet.Razor.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 in 
0ms

My OS information:

❯ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.1 LTS
Release:        14.04
Codename:       trusty

dnx, dnu and dnvm versions:

❯ dnx --version
Microsoft .NET Execution environment
 Version:      1.0.0-rc1-16231
 Type:         Mono
 Architecture: x64
 OS Name:      Linux
 OS Version:   ubuntu 14.04
 Runtime Id:   ubuntu.14.04-x64

❯ dnu --version 
Microsoft .NET Development Utility
 Version:      1.0.0-rc1-16231
 Type:         Mono
 Architecture: x64
 OS Name:      Linux
 OS Version:   ubuntu 14.04
 Runtime Id:   ubuntu.14.04-x64

❯ dnvm --version
1.0.0-rc2-15545

❯ mono --version
Mono JIT compiler version 4.2.1 (Stable 4.2.1.102/6dd2d0d Thu Nov 12 09:52:44 UTC 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       altstack
        Notifications: epoll
        Architecture:  amd64
        Disabled:      none
        Misc:          softdebug 
        LLVM:          supported, not enabled.
        GC:            sgen


I've been looking around for a solution but to no avail and I'm not sure if this is even the right place to put up this issue. Apologies if this isn't. Please direct me to the right place and I will open it over there instead.


Edit: Adding Mono version

@shrayasr

This comment has been minimized.

Copy link

shrayasr commented Dec 9, 2015

Managed to catch @davidfowl over on AspNetvNext JabbR room and he suggested that I try with Mono 4.0.5. Will give that a shot.

@shrayasr

This comment has been minimized.

Copy link

shrayasr commented Dec 9, 2015

Works fine on Mono 4.0.5. Seems like a problem with Mono 4.2.1. @davidfowl.

@shrayasr shrayasr closed this Dec 9, 2015

@shrayasr

This comment has been minimized.

Copy link

shrayasr commented Dec 10, 2015

Have documented the entire thing over on my blog: link

jkotalik pushed a commit that referenced this issue Nov 1, 2018

natemcmaster pushed a commit that referenced this issue Dec 1, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment