GitForce icon indicating copy to clipboard operation
GitForce copied to clipboard

Ubuntu 20.04: unhandled exception

Open TimurZanagar opened this issue 4 years ago • 6 comments

Hi folks,

GitForce.exe builded without any problems on Ubuntu 20.04 but can't start it.

`~/Projects/OSS/GitForce/bin/Release$ mono GitForce.exe

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object at GitForce.ClassWinGeometry.LoadGeometryDatabase () [0x0000b] in :0 at GitForce.ClassWinGeometry.Restore (System.Windows.Forms.Form form) [0x0001b] in :0 at GitForce.FormLog..ctor () [0x0000c] in :0 at (wrapper remoting-invoke-with-check) GitForce.FormLog..ctor() at GitForce.App.Main (System.String[] args) [0x000ad] in :0 [ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object at GitForce.ClassWinGeometry.LoadGeometryDatabase () [0x0000b] in :0 at GitForce.ClassWinGeometry.Restore (System.Windows.Forms.Form form) [0x0001b] in :0 at GitForce.FormLog..ctor () [0x0000c] in :0 at (wrapper remoting-invoke-with-check) GitForce.FormLog..ctor() at GitForce.App.Main (System.String[] args) [0x000ad] in :0`

TimurZanagar avatar Jul 09 '20 11:07 TimurZanagar

Curious which mono version Ubuntu 20.04 is using. I will try it this weekend.

gdevic avatar Jul 09 '20 13:07 gdevic

Mono JIT compiler version 6.8.0.105 (Debian 6.8.0.105+dfsg-2 Wed Feb 26 23:23:50 UTC 2020)
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 
	Interpreter:   yes
	LLVM:          supported, not enabled.
	Suspend:       hybrid
	GC:            sgen (concurrent by default)

TimurZanagar avatar Jul 09 '20 14:07 TimurZanagar

I installed a fresh Ubuntu 20.04 LTS and then the minimum necessary prerequisites (git, meld, mono-complete). Run the released Gitforce.exe (downloaded from SourceForge) with no problems (image attached). Then I rebuilt it on that Ubunutu and run that one, also without any issues. Try the released binary instead of building it? Not sure what else could be the problem, but it's likely something with your mono setup.

gitforce-ubuntu 20 04-1 gitforce-ubuntu 20 04-2

gdevic avatar Jul 10 '20 13:07 gdevic

I'll try it with the Release from sourceforge. I'm using this machine for .NET Core development with the latest 3.x. Can you try to install .NET Core SDK on your machine and try it again? Maybe this is the main problem.

TimurZanagar avatar Jul 10 '20 13:07 TimurZanagar

I am having exactly the same error but with RHEL 7.9. Was there a resolution to this issue? I tried both building from source and the prebuilt (earlier) version 1.0.57. Both run fine on my Windows machine.

cjbattles avatar Apr 26 '22 19:04 cjbattles

Hello everyone. I have same issue with @TimurZanagar.

Reproduce problem :

  1. git clone from source : https://github.com/gdevic/GitForce
  2. Tried the step Running GitForce.exe on Linux (and other Mono) environments
  3. After build then go to bin/Release and run

./GitForce.exe

or

mono GitForce.exe

then i get error

FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object

Temporary Solution : If you want use GitForce.exe running in ubuntu.

  1. Download from GitForce release
  2. chmod +x GitForce.exe
  3. running using

./GitForce.exe

or

mono GitForce.exe

Thanks to @gdevic for screnshoot

teguhteja avatar Sep 28 '22 02:09 teguhteja