PDA

View Full Version : megui and linux - how?


Carpo
17th September 2008, 15:40
after extensive googling i still cant get megui to run, i have mono compiled and installed, as i cant get .net to install.

but everytime i try to start it i get this error

megui$ mono MeGUI.exe

Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.XplatUI ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: gdiplus.dll
at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x00000] --- End of inner exception stack trace ---

at System.Drawing.Graphics.FromHdcInternal (IntPtr hdc) [0x00000]
at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) [0x00000]
at System.Windows.Forms.XplatUIX11..ctor () [0x00000]
at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000]
at System.Windows.Forms.XplatUI..cctor () [0x00000] --- End of inner exception stack trace ---

at System.Windows.Forms.Application.EnableVisualStyles () [0x00000]
at MeGUI.MainForm.Main (System.String[] args) [0x00000]


using slackware12.1, kernel 2.6.24.5, mono 1.91

Sharktooth
17th September 2008, 16:36
currently megui needs some changes to run in linux.
try using wine btw... since all tools megui uses are for win32.

Carpo
17th September 2008, 16:47
i have been - megui installs but wont run, guessing because .net isnt there, when i can get the box back up (i needed the wall socket for something else) i'll post the error that gives me

Carpo
17th September 2008, 18:13
ok heres the full error when using wine - its a biggie :p

carpo@carp-serv:~/.wine/drive_c/Program Files/megui$ wine MeGUI.exe
wine: Unhandled privileged instruction at address 0x451e1a (thread 0014), starting debugger...
Unhandled exception: privileged instruction in 32-bit code (0x00451e1a).
Register dump:
CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b
EIP:00451e1a ESP:7eb41918 EBP:00451e1a EFLAGS:00210206( - 00 - RIP1)
EAX:00000000 EBX:7ef5d904 ECX:7efff6d4 EDX:00000000
ESI:004500c8 EDI:7eb419b4
Stack dump:
0x7eb41918: 004de662 7eb41928 00200246 004500c8
0x7eb41928: 7eb419d8 7ef5c0f0 7ef5dd80 7eb419b4
0x7eb41938: 00111050 00000000 00110ef0 7eb419c4
0x7eb41948: 00000000 00000130 00000026 7ef5c7be
0x7eb41958: 7eb419bc 7eb419b4 7ef5dd80 7eb41998
0x7eb41968: 7ef5c7aa 7eb419c8 7eb419c4 004f275c
Backtrace:
=>1 0x00451e1a in hardlock.sys (+0x1e1a) (0x00451e1a)
0x00451e1a: movl %cr4,%esi
Modules:
Module Address Debug info Name (31 modules)
PE 450000- 4f7400 Export hardlock.sys
ELF 7bf00000-7bf03000 Deferred <wine-loader>
ELF 7e9cb000-7ea33000 Deferred msvcrt<elf>
\-PE 7e9e0000-7ea33000 \ msvcrt
ELF 7eb43000-7eb56000 Deferred libresolv.so.2
ELF 7eb61000-7eb76000 Deferred hal<elf>
\-PE 7eb70000-7eb76000 \ hal
ELF 7eb76000-7eb94000 Deferred iphlpapi<elf>
\-PE 7eb80000-7eb94000 \ iphlpapi
ELF 7eb94000-7ebf4000 Deferred rpcrt4<elf>
\-PE 7eba0000-7ebf4000 \ rpcrt4
ELF 7ed04000-7ed3c000 Deferred ntoskrnl<elf>
\-PE 7ed10000-7ed3c000 \ ntoskrnl
ELF 7ed3c000-7ed8c000 Deferred advapi32<elf>
\-PE 7ed50000-7ed8c000 \ advapi32
ELF 7ed8c000-7ed97000 Deferred libnss_files.so.2
ELF 7ed97000-7eda1000 Deferred libnss_nis.so.2
ELF 7eda1000-7edb9000 Deferred libnsl.so.1
ELF 7edef000-7ef18000 Deferred kernel32<elf>
\-PE 7ee10000-7ef18000 \ kernel32
ELF 7ef18000-7ef3e000 Deferred libm.so.6
ELF 7ef4a000-7ef5e000 Deferred winedevice<elf>
\-PE 7ef50000-7ef5e000 \ winedevice
ELF 7ef5e000-7f000000 Deferred ntdll<elf>
\-PE 7ef70000-7f000000 \ ntdll
ELF b7c20000-b7c29000 Deferred libnss_compat.so.2
ELF b7c2a000-b7c2e000 Deferred libdl.so.2
ELF b7c2e000-b7d7a000 Deferred libc.so.6
ELF b7d7a000-b7d91000 Deferred libpthread.so.0
ELF b7db1000-b7ee7000 Deferred libwine.so.1
ELF b7ee8000-b7f06000 Deferred ld-linux.so.2
Threads:
process tid prio (all id:s are in hex)
00000008
00000009 0
0000000a
0000000b 0
0000000c
00000013 0
00000012 0
0000000e 0
0000000d 0
0000000f (D) C:\windows\system32\winedevice.exe
00000014 0 <==
00000011 0
00000010 0
Backtrace:
=>1 0x00451e1a in hardlock.sys (+0x1e1a) (0x00451e1a)
fixme:virtual:NtAllocateVirtualMemory MEM_WRITE_WATCH type not supported
fixme:ole:CoGetContextToken stub
fixme:advapi:CheckTokenMembership (0x13c 0x184928 0x32dd08) stub!

Unhandled Exception: System.TypeInitializationException: The type initializer for 'System.Globalizat
ion.TextInfo' threw an exception.
at System.Globalization.TextInfo.GetNativeTextInfo(Int32 cultureID)
at System.Globalization.TextInfo.get_InvariantNativeTextInfo()
at System.String.Compare(String strA, Int32 indexA, String strB, Int32 indexB, Int32 length, Stri
ngComparison comparisonType)
at System.Security.Util.URLString.PreProcessForExtendedPathRemoval(String url, Boolean isFileUrl)
at System.AppDomainSetup.NormalizePath(String path, Boolean useAppBase)
at System.AppDomainSetup.SetupDefaultApplicationBase(String imageLocation)
at System.AppDomain.SetupFusionStore(AppDomainSetup info)
at System.AppDomain.SetupDomain(Boolean allowRedirects, String path, String configFile)
wine: Unhandled exception 0xe0434f4d at address 0x7ee03cd0 (thread 0009), starting debugger...
Unhandled exception: 0xe0434f4d in 32-bit code (0x7ee03d4a).
Register dump:
CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b
EIP:7ee03d4a ESP:0032ef54 EBP:0032efb8 EFLAGS:00200293( - 00 -ISA1C)
EAX:7edee1b9 EBX:7ee7187c ECX:00000000 EDX:0032ef78
ESI:0032eff0 EDI:e0434f4d
Stack dump:
0x0032ef54: 0032eff0 00000004 15e15fb3 007f1c8c
0x0032ef64: e0434f4d 00000001 00000000 7ee03cd0
0x0032ef74: 00000001 80131534 0032eff0 007d2010
0x0032ef84: 02000036 0032ef9c 79e814da 0032efa8
0x0032ef94: 02000036 00000001 0032f018 79e87ff4
0x0032efa4: 0000012c 02cf161c 79f958b8 02d164b4
Backtrace:
=>1 0x7ee03d4a RaiseException+0x7a() in kernel32 (0x0032efb8)
2 0x79f97065 in mscorwks (+0x127065) (0x0032f018)
3 0x7a0945a4 in mscorwks (+0x2245a4) (0x0032f0dc)
4 0x02d2356b (0x0032f10c)
5 0x02d23431 (0x0032f138)
6 0x02d21855 (0x00000000)
0x7ee03d4a RaiseException+0x7a in kernel32: movl 0xfffffffc(%ebp),%ebx
Modules:
Module Address Debug info Name (67 modules)
PE 11000000-1110c000 Deferred megui
PE 5e380000-5e409000 Deferred diasymreader
PE 78130000-781cb000 Deferred msvcr80
PE 79000000-79045000 Deferred mscoree
PE 79060000-790b3000 Deferred mscorjit
PE 790c0000-794de000 Deferred mscorlib
PE 79e70000-7a3d1000 Export mscorwks
ELF 7bf00000-7bf03000 Deferred <wine-loader>
ELF 7e1ee000-7e202000 Deferred lz32<elf>
\-PE 7e1f0000-7e202000 \ lz32
ELF 7e341000-7e354000 Deferred libresolv.so.2
ELF 7e358000-7e371000 Deferred version<elf>
\-PE 7e360000-7e371000 \ version
ELF 7e371000-7e374000 Deferred iso8859-1.so
ELF 7e374000-7e3d4000 Deferred rpcrt4<elf>
\-PE 7e380000-7e3d4000 \ rpcrt4
ELF 7e3d4000-7e475000 Deferred ole32<elf>
\-PE 7e3e0000-7e475000 \ ole32
ELF 7e695000-7e6fd000 Deferred msvcrt<elf>
\-PE 7e6a0000-7e6fd000 \ msvcrt
ELF 7e6fd000-7e706000 Deferred libxcursor.so.1
ELF 7e706000-7e70b000 Deferred libxfixes.so.3
ELF 7e70b000-7e70e000 Deferred libxcomposite.so.1
ELF 7e70e000-7e714000 Deferred libxrandr.so.2
ELF 7e714000-7e71c000 Deferred libxrender.so.1
ELF 7e71c000-7e71f000 Deferred libxinerama.so.1
ELF 7e71f000-7e73f000 Deferred imm32<elf>
\-PE 7e730000-7e73f000 \ imm32
ELF 7e73f000-7e744000 Deferred libxdmcp.so.6
ELF 7e744000-7e75b000 Deferred libxcb.so.1
ELF 7e75b000-7e75d000 Deferred libxcb-xlib.so.0
ELF 7e75d000-7e760000 Deferred libxau.so.6
ELF 7e760000-7e847000 Deferred libx11.so.6
ELF 7e847000-7e855000 Deferred libxext.so.6
ELF 7e855000-7e85a000 Deferred libxxf86vm.so.1
ELF 7e85a000-7e871000 Deferred libice.so.6
ELF 7e871000-7e879000 Deferred libsm.so.6
ELF 7e879000-7e897000 Deferred iphlpapi<elf>
\-PE 7e880000-7e897000 \ iphlpapi
ELF 7e899000-7e92e000 Deferred winex11<elf>
\-PE 7e8b0000-7e92e000 \ winex11
ELF 7ea38000-7ea58000 Deferred libexpat.so.1
ELF 7ea58000-7ea83000 Deferred libfontconfig.so.1
ELF 7ea83000-7ea97000 Deferred libz.so.1
ELF 7ea97000-7eb08000 Deferred libfreetype.so.6
ELF 7eb08000-7eba1000 Deferred gdi32<elf>
\-PE 7eb20000-7eba1000 \ gdi32
ELF 7eba1000-7ece5000 Deferred user32<elf>
\-PE 7ebc0000-7ece5000 \ user32
ELF 7ece5000-7ed3c000 Deferred shlwapi<elf>
\-PE 7ecf0000-7ed3c000 \ shlwapi
ELF 7ed3c000-7ed8c000 Deferred advapi32<elf>
\-PE 7ed50000-7ed8c000 \ advapi32
ELF 7edc2000-7eeeb000 Export kernel32<elf>
\-PE 7ede0000-7eeeb000 \ kernel32
ELF 7eeeb000-7eef6000 Deferred libnss_files.so.2
ELF 7eef6000-7ef00000 Deferred libnss_nis.so.2
ELF 7ef00000-7ef18000 Deferred libnsl.so.1
ELF 7ef18000-7ef3e000 Deferred libm.so.6
ELF 7ef5e000-7f000000 Deferred ntdll<elf>
\-PE 7ef70000-7f000000 \ ntdll
ELF b7c64000-b7c68000 Deferred libdl.so.2
ELF b7c68000-b7db4000 Deferred libc.so.6
ELF b7db4000-b7dcb000 Deferred libpthread.so.0
ELF b7de2000-b7deb000 Deferred libnss_compat.so.2
ELF b7deb000-b7f21000 Deferred libwine.so.1
ELF b7f22000-b7f40000 Deferred ld-linux.so.2
Threads:
process tid prio (all id:s are in hex)
00000008 (D) C:\Program Files\megui\MeGUI.exe
0000001f 2
0000001e 0
00000009 0 <==
0000000c
0000001b 0
0000001a 0
00000013 0
0000000e 0
0000000d 0
00000017
0000001d 0
0000001c 0
00000019 0
00000018 0
00000020
00000021 0
Backtrace:
=>1 0x7ee03d4a RaiseException+0x7a() in kernel32 (0x0032efb8)
2 0x79f97065 in mscorwks (+0x127065) (0x0032f018)
3 0x7a0945a4 in mscorwks (+0x2245a4) (0x0032f0dc)
4 0x02d2356b (0x0032f10c)
5 0x02d23431 (0x0032f138)
6 0x02d21855 (0x00000000)
fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub
fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x000003ff,(nil),0x0001,0x00000000,0x32ea9c,(nil )): stub
err:eventlog:ReportEventW L".NET Runtime version 2.0.50727.42 - Fatal Execution Engine Error (79F970 75) (80131506)"
fixme:advapi:DeregisterEventSource (0xcafe4242) stub

Sharktooth
18th September 2008, 02:50
are you using mono with wine?

Carpo
18th September 2008, 17:18
both are installed, but no, i have tried to run megui with mono megui.exe - which gives the first error

and wine megui.exe which gives the 2nd longer error

should only wine be installed ?

it was just a few pages i looked at when i googled suggested installing mono

Sharktooth
19th September 2008, 01:36
it should work then.

Carpo
21st September 2008, 20:17
it should but it isnt :p and i dont really want to use ubuntu - which seems is what everyone else is using and it seems to work as i like my slackware :)

fbgd
22nd September 2008, 19:15
I think what he was suggesting was that you install the windows version of mono through wine and then try running megui with wine.

kinematic
28th September 2008, 01:29
I still don't understand why people insist on making apps like these Win native because there still aren't any great Linux native graphical encoding apps. Bunch of n00b coders.

linyx
28th September 2008, 02:43
I still don't understand why people insist on making apps like these Win native because there still aren't any great Linux native graphical encoding apps. Bunch of n00b coders.

AviDemux:rolleyes:

kinematic
28th September 2008, 10:44
Are you kidding me, avidemux is a second rate application. Have you seen the quality it produces using XviD, what a joke. There's only one way to go if you want quality, mencoder.

Gusar
28th September 2008, 12:18
Are you kidding me, avidemux is a second rate application. Have you seen the quality it produces using XviD, what a joke. There's only one way to go if you want quality, mencoder.Rude much?

And just FYI, what both mencoder and avidemux do is configure the encoder which then, well, encodes. The encoder is the exact same in both cases! So if avidemux gives worse results it's because you're misconfiguring the encoder.

In the slight chance that avidemux is misconfiguring the encoder outside your power, then investigate that and report a bug - but in a polite manner, with an explanation how to reproduce the problem.

Dark Shikari
28th September 2008, 12:32
Are you kidding me, avidemux is a second rate application. Have you seen the quality it produces using XviD, what a joke. There's only one way to go if you want quality, mencoder.:rolleyes::rolleyes::rolleyes::rolleyes:

kinematic
28th September 2008, 13:01
So how can it be that with exactly the same matrices and the filters configured exactly the same way with the codec also configured exactly the same in both avidemux and mencoder avidemux still produces worse results? (at least for me). Avidumex produces much more blurring and blockiness every single time. I've done a lot of research into the matter myself and to this day I can't explain it.

And FYI, vdubmod running with wine also produces better results than avidemux.

Dark Shikari
28th September 2008, 13:11
So how can it be that with exactly the same matrices and the filters configured exactly the same way with the codec also configured exactly the same in both avidemux and mencoder avidemux still produces worse results?Probably a PEBKAC error.

kinematic
28th September 2008, 13:48
That's what I thought at first, can't be the encoder...must be me. But my girlfriend and a couple of friends all say the same thing, a file encoded with mencoder looks better.

Sharktooth
1st October 2008, 01:29
@kinematic: before offending people, make sure you are able to do things by yourself. if it's not clear, im referring to megui. so if you're able to create a gui for linux, do it... otherwise STFU.

kinematic
1st October 2008, 21:10
Sorry about my earlier comments, I had a bad day that day and things just came out wrong. And yes, I am able to create a gui for Linux but I have no need for it since mencoder is all I need. I also don't have the time to create and maintain a gui.

Edit: I just read something about MeGuiX, what's the status of it at the moment?

Another edit: I read up on MeGui just out of curiousity and I wonder why you choose to use the abamonation know as .NET (with Mono being even worse). It should be wiped from the face of the earth never to be seen again!

Sharktooth
2nd October 2008, 19:05
megui started as a .net app. i just joined the project after it started, so...
about MeGUIx, actually it is freezed since the new versions of mono can manage .NET 2.0.
MeGUIx was a native port in GTK# of MeGUI.

kinematic
2nd October 2008, 19:53
Could you point me to a link of MeGUIx source code? I'd like to see what I can do with it. I'm not as proficient in .net as I am in Python, Perl or c but I can find my way around.

Sharktooth
2nd October 2008, 21:19
i never published it to any place. however i'll upload in on the sourceforge SVN ASAP

kinematic
2nd October 2008, 22:47
i never published it to any place.

Since it's a mencoder frontend it can only be published under the GPL. It would make developement a lot faster and easier because if there's one thing in the world of FOSS it's lots of very good coders (a lot of them are better at .net than me). If you post about it on the right forum (say the Ubuntu forum or linuxquestions.org) it would get picked up very quickly I think (or maybe I can post about it?). Than it wouldn't be just me putting an effort into it but lots of other people as well. Maybe someone could even port avisynth filters to it.

(Even tho I still think .net is an abamonation compared to for example a beautiful language like Python this has somehow sparked my interest :) )

Sharktooth
3rd October 2008, 01:43
kinematic, it was simplier to me to port the megui sources from .net to mono instead of rewriting it from scratch.
however, i asked if anyone was interested in porting the code an no-one replied...
as a sidenote, the actual megui sources have a couple of things to be fixed and then it can be compiled in mono. so, IMHO it is better to mantain a single branch instead of two different branches.
if you're interested, you can help "fixing" the issues with mono and adding native support (where possible) for the tools so the changes can be committed to the megui SVN and we can release a linux version too.

kinematic
4th October 2008, 00:21
I think I can help fixing outstanding issues but I cannot give you a time frame. I have a busy job and personal life so I can't work on it for extended periods of time, it will be a few hours here and there. I also have to brush up on .net a bit (won't take long) before I go over the source.

Sharktooth
4th October 2008, 03:47
there's no hurry. take your time. just ensure to get the latest sources before making a patch.

Greif
4th October 2008, 04:09
I'd be willing to help with getting MeGUI running under mono.

Are the issues documented somewhere?

Sharktooth
4th October 2008, 04:25
nope. just try to build it and you will see.
sources are available here: https://megui.svn.sourceforge.net/svnroot/megui
keep in mind it completely lacks linux tools support. there are 2 possible options: use win32 binaries thru wine OR add support for linux native binaries where possible and use wine for the remaining tools (like avisynth, dgindex...)
the latter also requires adding support in the update function for linux binaries.
however, the first step is to fix the compilation errors (that shouldnt be hard but i had no time to investigate)

Greif
4th October 2008, 04:41
It sounds like the best bet is to continue development on windows and fix the issues which are stopping MeGUI from running via wine.

I don't think I could work without VS. ;)

I'll take a look at it.

Sharktooth
4th October 2008, 04:46
an old and not mantained list of issues is here: https://sourceforge.net/tracker/index.php?func=detail&aid=1892351&group_id=156112&atid=798476

@Greif: agreed. however monodevelop is not that bad...

graysky
10th November 2008, 22:12
...so for us LINUX newbies, what is the recommended method to get MeGUI to work under LINUX? Running lenny amd64 here and would love to use MeGUI w/ it.

Sharktooth
11th November 2008, 03:40
wine + mono (under wine). im not sure about the latest builds though.

graysky
12th November 2008, 00:37
good point... anyone got the new builds to run under this setup?

graysky
14th November 2008, 21:26
Well, I downloaded the windows version of mono (ftp://ftp.novell.com/pub/mono/archive/2.0.1/windows-installer/1/) and installed it under lenny amd64. Install was successful. When I attempted to launch megui, I got the following:

$ wine MeGUI.exe
wine: Call from 0x7b845a70 to unimplemented function gdiplus.dll.GdipCreateFontFamilyFromName, aborting
err:seh:raise_exception Unhandled exception code c00000fd flags 0 addr 0x68f29764

Is anyone running the latest release of MeGUI under wine-mono?

Lenny amd64
wine-1.0.1
mono (windows version installed under wine) 2.0.1

Thanks!

Kurtnoise
14th November 2008, 22:25
why would you like to use megui under linux right now ? any good reason ?

megui is windows concentric for the moment.So, you should wait if you want to use it and there are plenty of alternative (aka linux native apps) which work fine.


edit: you have to install the linux mono, not the windows one...

graysky
14th November 2008, 22:38
@kurtnoise13 - I'd like to use MeGUI under LINUX because I love MeGUI and I love LINUX :)

Can you suggest some linux native apps that will do the same functions as MeGUI does?

Also, are you sure about the LINUX mono? On the prev. page I thought Sharktooth said you need to install mono for windows and run MeGUI via wine with mono for windows installed under wine...??? The error I got when I attempted to run MeGUI with mono (LINUX) installed was something like "You must installed windows version of mono."

EDIT: I installed mono for LINUX:

# aptitude install mono-2.0-devel

and attempted to run it via mono as you suggested, and got this:

$ mono ~/.wine/drive_c/Program\ Files/megui/MeGUI.exe

** (/home/user/.wine/drive_c/Program Files/megui/MeGUI.exe:30550): WARNING **: The following assembly referenced from /home/user/.wine/drive_c/Program Files/megui/MeGUI.exe could not be loaded:
Assembly: System.Windows.Forms (assemblyref_index=1)
Version: 2.0.0.0
Public Key: b77a5c561934e089
The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/home/user/.wine/drive_c/Program Files/megui).


** (/home/user/.wine/drive_c/Program Files/megui/MeGUI.exe:30550): WARNING **: Could not load file or assembly 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
The entry point method could not be loaded

Kurtnoise
15th November 2008, 07:25
Can you suggest some linux native apps that will do the same functions as MeGUI does?
depends on which functions you use...but if you're looking for GUIs, here is my list: OGMRip - HandBrake - Avidemux (from newbies to experts skills levels)

Also, are you sure about the LINUX mono? On the prev. page I thought Sharktooth said you need to install mono for windows and run MeGUI via wine with mono for windows installed under wine...??? The error I got when I attempted to run MeGUI with mono (LINUX) installed was something like "You must installed windows version of mono."
sorry, I read too fast. As you can see, it doesn't work...so, you have to wait (for a long long time. :p)

Sharktooth
15th November 2008, 15:40
at some point it worked... then, it stopped...
try 0.2.x versions...

Kurtnoise
15th November 2008, 15:58
There is a link on this post (http://forum.doom9.org/showthread.php?p=1192343#post1192343) that can help...;)

- GetMOStuff can be removed/modified as well
- VistaStuff can be omitted - well, I like it though...:D
- For the rest, I've no idea.