CosmosOS / Cosmos

Cosmos is an operating system "construction kit". Build your own OS using managed languages such as C#, VB.NET, and more!
https://www.goCosmos.org
BSD 3-Clause "New" or "Revised" License
2.91k stars 549 forks source link

Debug works but release doesn't #373

Closed Raepheles closed 8 years ago

Raepheles commented 8 years ago

Hello,

I was trying to make a simple calculator but I had couple problems. Current code below is compilable at debug mode perfectly but it doesn't compile at release mode.

Error: Exception: System.Exception: Error compiling method 'SystemVoidCosmosKernel1KernelRun': System.Exception: OpCode IL_0088: Call tries to pop more stuff from analytical stack than there is!

Functions.cs Kernel.cs

There are couple things about the code. GetNum is between -100 and 100 currently to make it run faster. That virtual machine is extremely slow I don't think it'll be big issue when I boot it via usb. And I use int because I got another error when I tried to use float numbers instead.

charlesbetros commented 8 years ago

Currently the release target isn't supported, only debug.

On Jun 2, 2016, at 3:50 PM, Raepheles notifications@github.com wrote:

Hello,

I was trying to make a simple calculator but I had couple problems. Current code below is compilable at debug mode perfectly but it doesn't compile at release mode.

Error: Exception: System.Exception: Error compiling method 'SystemVoidCosmosKernel1KernelRun': System.Exception: OpCode IL_0088: Call tries to pop more stuff from analytical stack than there is!

Functions.cs Kernel.cs

There are couple things about the code. GetNum is between -100 and 100 currently to make it run faster. That virtual machine is extremely slow I don't think it'll be big issue when I boot it via usb. And I use int because I got another error when I tried to use float numbers instead.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

Raepheles commented 8 years ago

But someone said that in order to boot from usb drive I gotta save iso file in release mode. I tried in debug one anyway it got stuck at start never booted program. So this means I cannot boot it with usb?

charlesbetros commented 8 years ago

I think he was referring to disabling the kernel debugger in Cosmos. Right click on your .Cosmos project and select properties. Under the debug tab there is an "Enable Remote Debugging" option. Turn that off.

On Jun 2, 2016, at 4:03 PM, Raepheles notifications@github.com wrote:

But someone said that in order to boot from usb drive I gotta save iso file in release mode. I tried in debug one anyway it got stuck at start never booted program. So this means I cannot boot it with usb?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

Raepheles commented 8 years ago

There is no debug tab under ISO Image Profile.

This is the comment I'm talking about btw: https://github.com/CosmosOS/Cosmos/issues/112#issuecomment-104767464

charlesbetros commented 8 years ago

I can't remember the options under Iso. I'll have to check when I get to my machine.

On Jun 2, 2016, at 4:12 PM, Raepheles notifications@github.com wrote:

There is no debug tab under ISO Image Profile.

This is the comment I'm talking about btw: #112 (comment)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

Raepheles commented 8 years ago

Not much actually doubt there is something that can be done here.

http://prntscr.com/bbmduo http://prntscr.com/bbmdx0 http://prntscr.com/bbmdyq http://prntscr.com/bbme10

charlesbetros commented 8 years ago

Looks like we are missing the Debug options for the ISO profile. They are there for the other profiles.

On Jun 2, 2016, at 4:19 PM, Raepheles notifications@github.com wrote:

Not much actually doubt there is something that can be done here.

http://prntscr.com/bbmduo http://prntscr.com/bbmdx0 http://prntscr.com/bbmdyq http://prntscr.com/bbme10

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

Raepheles commented 8 years ago

Yes I found what you were talking about under VMware profile but changing it there doesn't effect ISO Image profile right? Documentation on this cosmos is almost non-existent :(

yewmisgoat commented 8 years ago

I updated the instructions; I could have sworn I set it from debug to release, but I recreated it and it works just fine without the release setting if you're using the latest dev-kit. Sorry for the inconvenience!

Raepheles commented 8 years ago

But I tried it with debug settings and it really got stuck at booting like you said :D

yewmisgoat commented 8 years ago

Hmm... I'll make you a video tutorial. Trust me, I'm very impatient so I'd hate to leave you waiting too XD

yewmisgoat commented 8 years ago

Give me roughly 15-45 minutes and I'll have that tutorial for you ;P

Raepheles commented 8 years ago

Thanks waiting for it!

yewmisgoat commented 8 years ago

Well, XSplit gave me problems and so did OBS, so I'm reinstalling XSplit Broadcaster again. I promise you I will make this for you! XD

Raepheles commented 8 years ago

Don't force yourself to do it right now :D It's 3.00 AM here anyway I'll probably hang around 1-1.5h more and sleep. I'll check here tomorrow. Thanks again for your effort.

yewmisgoat commented 8 years ago

No problem! I love the COSMOS project, and if I can help it and it's community, I will :)

charlesbetros commented 8 years ago

Why not come visit the gitter chat? :)

On Jun 2, 2016, at 6:55 PM, yewmisgoat notifications@github.com wrote:

No problem! I love the COSMOS project, and if I can help it and it's community, I will :)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

Raepheles commented 8 years ago

I actually went there and stood there for couple hours but it's not very active I guess.

yewmisgoat commented 8 years ago

How does one navigate to said locale?

Raepheles commented 8 years ago

https://gitter.im/CosmosOS/Cosmos

It's on wiki page. There are also other groups like yahoo facebook etc.

yewmisgoat commented 8 years ago

Okay, you're lucky I'm persistent. Just downloafed the forsaken Bandicam software. Talk about desperate measures. Officially en route.

yewmisgoat commented 8 years ago

Video is done! However, Bandicam, being the crapware it is, doesn't allow for voice capture (Discovered that by the lack of my voice in the video XD) but I'll send it to you as is. If you have any questions, feel free to ask me! You can ask here or message me at yewmisgoat@gmail.com

Raepheles commented 8 years ago

Thanks. You guys should create discord server for cosmos. It's really popular chat program despite it being new and it's becoming even more popular every day.

yewmisgoat commented 8 years ago

Your voiceless (darn bandicam) tutorial can be found here. Sorry for all the hassle; trust me, I've been trying as hard as I can to provide you this information. XD

yewmisgoat commented 8 years ago

and lol, I love Discord.

yewmisgoat commented 8 years ago

Ignore my background lol. My gf drew it.

Raepheles commented 8 years ago

Btw I did the exact same things :D Even used rufus just like you did. Guess there is something wrong with my code or pc that I was trying to boot it. Gonna test tomorrow with default OS and see if it works. If it doesn't work too then gonna try on another pc. Background is fine :+1:

yewmisgoat commented 8 years ago

Hmm well if you want, don't hesitate to ask! My email, Skype, and Discord are in my GitHub profile, and I'm pretty much available most of the time (Graduated school over a year early, so I've got all the free time in the world atm ;)

charlesbetros commented 8 years ago

There are only a few core devs active active currently, but one of us is usually there or if not responds quickly.

On Jun 2, 2016, at 19:20, yewmisgoat notifications@github.com wrote:

and lol, I love Discord.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.