LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
LinkBack Search this Thread
Old 01-28-2014, 01:38 AM   #1
Ipolit
Member
 
Registered: Nov 2003
Location: Bulgaria
Distribution: Vector Linux, Morphix
Posts: 293

Rep: Reputation: 31
Fedora 20 Multiseat - mono libgdiplus issues


Hello
I am trying to build multiseat system with Fedora 20 and Plugable DC-125. Most of the problems, connected with our custom built software are already resolved, but now we face hugh problem with custom built mono application.
The application uses windows forms and cannot be started from plugable devices. It works if started from the main station. Here is the error

Code:
exception inside UnhandledException handler: Object reference not set to an instance of an object

[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter]
  at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] in <filename unknown>:0 
  at System.Drawing.Bitmap..ctor (Int32 width, Int32 height, PixelFormat format) [0x00000] in <filename unknown>:0 
  at System.Drawing.Bitmap..ctor (System.Drawing.Image original, Int32 width, Int32 height) [0x00000] in <filename unknown>:0 
  at System.Drawing.Bitmap..ctor (System.Drawing.Image original, Size newSize) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (System.Drawing.Image,System.Drawing.Size)
  at System.Windows.Forms.XplatUIX11.DefineCursor (System.Drawing.Bitmap bitmap, System.Drawing.Bitmap mask, Color cursor_pixel, Color mask_pixel, Int32 xHotSpot, Int32 yHotSpot) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUI.DefineCursor (System.Drawing.Bitmap bitmap, System.Drawing.Bitmap mask, Color cursor_pixel, Color mask_pixel, Int32 xHotSpot, Int32 yHotSpot) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Cursor.CreateCursor (System.IO.Stream stream) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Cursor..ctor (System.Type type, System.String resource) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Cursors.get_SizeNWSE () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.SizeGrip..ctor (System.Windows.Forms.Control CapturedControl) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.SizeGrip:.ctor (System.Windows.Forms.Control)
  at System.Windows.Forms.ScrollableControl.CreateScrollbars () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ContainerControl..ctor () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Form..ctor () [0x00000] in <filename unknown>:0 
  at MyApp.UI.Forms.AboutForm..ctor (Boolean aboutAction) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) MyApp.UI.Forms.AboutForm:.ctor (bool)
  at MyApp.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
In my opinion the problem is that the application doesn't know it has been launched from DISPLAY different than 0 and perhaps it is gdm issue.
If I connect remotely with ssh -X and launch the application, it runs and the DISPLAY is not 0, but when launched from plugable, it thinks it si from 0 (I think so).
I made launcher with setting the propper display before launch, but result is the same.
I tryed multiple windows forms libgdiplus applications (downloaded from internet) and result is the same. I tryed mono gtk-sharp applications and they work as expected.
The last thing I tryed was to run the application in Xephyr nested server and it works, but I have to make a lot of settings, so it is not acceptable decision for my needs.
Please, advice how to fix this issue or is there a way to some how virtualize this application and to run it other way.

Thank you in advance
 
Old 01-28-2014, 02:48 AM   #2
Ipolit
Member
 
Registered: Nov 2003
Location: Bulgaria
Distribution: Vector Linux, Morphix
Posts: 293

Original Poster
Rep: Reputation: 31
We just installed Fedora 17 and the application is running as expected. The mono and libgdiplus versions are same as in 20. So the issue remains in gdm.
Probably security settings?
 
Old 01-28-2014, 08:01 AM   #3
Ipolit
Member
 
Registered: Nov 2003
Location: Bulgaria
Distribution: Vector Linux, Morphix
Posts: 293

Original Poster
Rep: Reputation: 31
We tested also on Fedora 19 and doesn't work. What we did last is to prepare CDE package with mono from Ubuntu system. CDE is package which includes all needed libraries for running an application without satisfying dependencies. The CDE package was running properly on Fedora 17 and didn't run on 19, which means the problem remains in GDM (probably).
So please suggest how to configure GDM to run our mono app.
 
Old 01-28-2014, 09:32 AM   #4
Ipolit
Member
 
Registered: Nov 2003
Location: Bulgaria
Distribution: Vector Linux, Morphix
Posts: 293

Original Poster
Rep: Reputation: 31
Tested on Fedora 18 - doesn't work.
So what was changed in GDM from Fedora 17 to 18?
 
Old 01-28-2014, 01:17 PM   #5
John VV
Guru
 
Registered: Aug 2005
Posts: 12,061

Rep: Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573Reputation: 1573
the fedora project made a LOT of big changes in 18

welcome to "life with fedora"

you might want to read through the "changelog" for the now UNSUPPORTED 17 and 18
and soon to be unsupported 19

fedora is after all a "Research and Development" distro
and changes very very fast

also gcc changed a LOT from fedora 17 to 20
fedora 20 is using 4.8
and i think 17 was using 4.3


have you installed a second version of gcc along side the current

i have ( on suse) gcc 3.4,4.1, 4.3 and 4.7

different programs were built for DIFFERENT versions of c++ ( or in your case C#)
 
  


Reply

Tags
libgdiplus, mono, multiseat, winforms


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiseat with MPX: Keyboard focus issues zagzagel Linux - Desktop 0 05-10-2013 06:45 PM
Fedora 17 multiseat Ipolit Fedora 4 06-28-2012 01:40 PM
mono issues dauphinfay Linux - Software 0 07-16-2006 10:40 AM
libgdiplus make error /want to install for mono gaddargarson Programming 2 04-10-2005 03:38 PM
libgdiplus make error /about mono gaddargarson Fedora 1 04-05-2005 10:29 AM


All times are GMT -5. The time now is 11:18 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration