Networked Media Tank
[CSI] Community Software Installer 2.6.1 (OLD THREAD) - Printable Version

+- Networked Media Tank (http://www.networkedmediatank.com)
+-- Forum: Community Jukebox, Themes, & UserApps Section (/forumdisplay.php?fid=106)
+--- Forum: 200/300/400 Series - Development and User Apps (/forumdisplay.php?fid=121)
+---- Forum: 100 Series - Development and User Apps (/forumdisplay.php?fid=33)
+---- Thread: [CSI] Community Software Installer 2.6.1 (OLD THREAD) (/showthread.php?tid=13161)



RE: [CSI] Community software installer 1.5.2 - dc11ab - 02-03-2009 02:44 PM

Yes, you are probably right.

The strange thing is that the screenshots of various apps and themes are downloaded and displayed nicely!?


RE: [CSI] Community software installer 1.5.2 - Ger Teunis - 02-03-2009 02:48 PM

(02-03-2009 02:44 PM)dc11ab Wrote:  Yes, you are probably right.

The strange thing is that the screenshots of various apps and themes are downloaded and displayed nicely!?

Those are not downloaded into the temp folder but directly into memory.
The temp folder is determined by your system itself: my application asks the .NET Framework/Mono: give me my temp folder, then I create a folder in there (nmtinstaller) and in there I store the files.


RE: [CSI] Community software installer 1.5.2 - dc11ab - 02-03-2009 03:38 PM

Ah, I see.

According what I read here, there is no libgluezilla for Mac yet, darn.
http://lists.ximian.com/pipermail/mono-osx/2008-June/001414.html
http://stackoverflow.com/questions/468906/how-to-instal-libgluezilla-for-mac-os-x

Hmm, not giving up just yet, perhaps it's old info by know. But if it's true I don't think I'm skilled enough to make a hacked workaround myself.

On a side note, xulrunner has a nice installer for Mac OSX here:
http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/1.9.0.5/runtimes/xulrunner-1.9.0.5.en-US.mac-pkg.dmg
But it doesn't help me much on it's own (yes, of course I tried, hehe)

Oh, and I also checked the permissions on the -Caches-, -Tmp- and TemporaryItems directories. They seemed fine but just to make sure I chmodded 777 for all users and tried again. No dice, although I wasn't really expecting it to make a difference Undecided

Would it make a difference to load the apps to memory as well in the portable version? Huh


RE: [CSI] Community software installer 1.5.2 - Ger Teunis - 02-03-2009 03:46 PM

(02-03-2009 03:38 PM)dc11ab Wrote:  Ah, I see.

According what I read here, there is no libgluezilla for Mac yet, darn.
http://lists.ximian.com/pipermail/mono-osx/2008-June/001414.html
http://stackoverflow.com/questions/468906/how-to-instal-libgluezilla-for-mac-os-x

Hmm, not giving up just yet, perhaps it's old info by know. But if it's true I don't think I'm skilled enough to make a hacked workaround myself.

On a side note, xulrunner has a nice installer for Mac OSX here:
http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/1.9.0.5/runtimes/xulrunner-1.9.0.5.en-US.mac-pkg.dmg
But it doesn't help me much on it's own (yes, of course I tried, hehe)

Oh, and I also checked the permissions on the -Caches-, -Tmp- and TemporaryItems directories. They seemed fine but just to make sure I chmodded 777 for all users and tried again. No dice, although I wasn't really expecting it to make a difference Undecided

Would it make a difference to load the apps to memory as well in the portable version? Huh

Webbrowser / gluezilla / XulRunner
Hmm, I might completely drop the web browser part which will remove the dependency on XulRunner and LibGluezilla. According:
http://www.mail-archive.com/mono-winforms-list@lists.ximian.com/msg02074.html There is no OSX implementation for the Webbrowser part of Mono.

Temp folder
According the -temp- folder, I am a bit surprised this is not working right out of the box because this is a very Rudimentary part of .NET. I nicely ask the framework for a temp folder. Can you see the folder "nmtinstaller" in your (kinda weird) temp folder (/var/folders/po/poXKTg81EDmIDagj5vSpPpR6pbs/-Tmp-/) ? Is the executing user able to create a folder there and store files in it?
(could you manually check by opening a terminal with the correct user credentials).


RE: [CSI] Community software installer 1.5.2 - dc11ab - 02-03-2009 04:03 PM

(02-03-2009 03:46 PM)Ger Teunis Wrote:  Webbrowser / gluezilla / XulRunner
Hmm, I might completely drop the web browser part which will remove the dependency on XulRunner and LibGluezilla. According:
http://www.mail-archive.com/mono-winforms-list@lists.ximian.com/msg02074.html There is no OSX implementation for the Webbrowser part of Mono.
I hope it will not be too much of an effort, but of course that would be a very nice gesture to the Mac community, given they cannot use the CSI just yet as it seems.

Quote:Temp folder
According the -temp- folder, I am a bit surprised this is not working right out of the box. I nicely ask the framework for a temp folder. Can you see the folder "nmtinstaller" in your (kinda weird) temp folder (/var/folders/po/poXKTg81EDmIDagj5vSpPpR6pbs/-Tmp-/) ? Is the executing user able to create a folder there and store files in it?
(could you manually check by opening a terminal with the correct user credentials).
Logged in with dc11ab
drwx------ 4 dc11ab 619956085 136 Feb 3 15:52 -Caches-
drwxr-xr-x 3 dc11ab 619956085 102 Feb 3 15:53 -Tmp-


I'm no guru by far, so please consider renaming these folders to something that doesnt begin with a dash "-" since that is interpreted as some sort of command option in *nix. I tried making a cd \-Tmp\- and cd "-Tmp-" but it will not work for me. I'm sure there is a way to get there by CLI though, just need to figure out how Wink
Meanwhile, I can go there with the Mac Finder and create a new directory, drop other files etc.

In the nmtappinstaller subfolder I see that ExtendedGaya.tar has been downloaded OK (456 KB), together with installer.cgi and installprepare.cgi.


EDIT: A completely other note: it seems CSI is always re-downloading and does not check if there is already a complete (or partial) download available?
Perhaps there is some opportunity to save bandwidth (and users some download time)?


RE: [CSI] Community software installer 1.5.2 - Ger Teunis - 02-03-2009 04:11 PM

(02-03-2009 04:03 PM)dc11ab Wrote:  I'm no guru by far, so please consider renaming these folders to something that doesnt begin with a dash "-" since that is interpreted as some sort of command option in *nix.

[...]

In the nmtappinstaller subfolder I see that ExtendedGaya.tar has been downloaded OK (456 KB), together with installer.cgi and installprepare.cgi.

Webbrowser> I'll look into it. It will make using this application a lot easier on Linux as well.

Regarding temp folder; I do not create those folders, it is done by your system (or mono, I don't know, not using OSX myself). It could be a dash problem indeed. But the weird part is that while you are installing an application the Installer is trying to detect a HD folder (which is part of a theme).

At what moment is it crashing, during click on next after selecting application, or on the upload screen?

(02-03-2009 04:03 PM)dc11ab Wrote:  EDIT: A completely other note: it seems CSI is always re-downloading and does not check if there is already a complete (or partial) download available?
Perhaps there is some opportunity to save bandwidth (and users some download time)?
That is correct, but implementing a file checker with content(crc) checking is completely out of the question. Will cost way to much developement time, and there is a big change people want to redownload because something went wrong during initial download. Also the small number of occurrences will never compensate the amount extra code and time.


RE: [CSI] Community software installer 1.5.2 - jackadam - 02-03-2009 04:19 PM

Does this app run under Mac OSX as well?


RE: [CSI] Community software installer 1.5.2 - Ger Teunis - 02-03-2009 04:22 PM

(02-03-2009 04:19 PM)jackadam Wrote:  Does this app run under Mac OSX as well?

Currently; no. But it is not far off.
In an upcoming version there will be better support of OsX and Linux.
Linux will work as long as you install some additional libraries and use mono 2.0.1 or up.


RE: [CSI] Community software installer 1.5.2 - dc11ab - 02-03-2009 04:29 PM

(Just for reference: I now run with xulrunner installed)

The CSI quits directly after it has downloaded the theme, right at when you expect to click Next.

E.g: start CSI -> Click Theme Tab -> Mark AppleTV (mcmilly) -> Press Next -> Download starts -> Download finishes -> Gone!


I ran with mono verbose, here are the last lines before it quits:
Code:
Method System.Drawing.Icon:Dispose () emitted at 0x164e35e8 to 0x164e3670 (code length 136) [NMT Community Software Installer.exe]
Method System.IO.StreamWriter:Finalize () emitted at 0x164e3680 to 0x164e36bd (code length 61) [NMT Community Software Installer.exe]
Method System.IO.StreamWriter:Dispose (bool) emitted at 0x164e36c0 to 0x164e3722 (code length 98) [NMT Community Software Installer.exe]
Method System.Runtime.Remoting.Contexts.Context:.cctor () emitted at 0x164e3728 to 0x164e375e (code length 54) [NMT Community Software Installer.exe]
Method System.Runtime.Remoting.Contexts.Context:Finalize () emitted at 0x164e3760 to 0x164e378a (code length 42) [NMT Community Software Installer.exe]
Method System.Security.Cryptography.RNGCryptoServiceProvider:Finalize () emitted at 0x164e3790 to 0x164e37ee (code length 94) [NMT Community Software Installer.exe]
Method (wrapper managed-to-native) System.Security.Cryptography.RNGCryptoServiceProvider:RngClose (intptr) emitted at 0x164e3800 to 0x164e3845 (code length 69) [NMT Community Software Installer.exe]
Method System.Windows.Forms.Cursor:Finalize () emitted at 0x164e3848 to 0x164e3888 (code length 64) [NMT Community Software Installer.exe]
Method System.Windows.Forms.Cursor:Dispose () emitted at 0x164e3898 to 0x164e3911 (code length 121) [NMT Community Software Installer.exe]
Method System.Windows.Forms.XplatUICarbon:Finalize () emitted at 0x164e3918 to 0x164e3942 (code length 42) [NMT Community Software Installer.exe]
Method System.Globalization.CompareInfo:Finalize () emitted at 0x164e3948 to 0x164e3980 (code length 56) [NMT Community Software Installer.exe]
Method (wrapper managed-to-native) System.Globalization.CompareInfo:free_internal_collator () emitted at 0x164e3990 to 0x164e39d5 (code length 69) [NMT Community Software Installer.exe]
Let me know if you want more.

Thank's for looking into this. Hope this helps.


RE: [CSI] Community software installer 1.5.2 - Ger Teunis - 02-03-2009 04:33 PM

(02-03-2009 04:29 PM)dc11ab Wrote:  (Just for reference: I now run with xulrunner installed)

The CSI quits directly after it has downloaded the theme, right at when you expect to click Next.

E.g: start CSI -> Click Theme Tab -> Mark AppleTV (mcmilly) -> Press Next -> Download starts -> Download finishes -> Gone!

I ran with mono verbose, here are the last lines before it quits:
Let me know if you want more.

Thank's for looking into this. Hope this helps.

Sadly enough not usefull. This is a crash in one of the libraries of mono itself.

Could you post a dump while installing an application?


RE: [CSI] Community software installer 1.5.2 - dc11ab - 02-03-2009 04:45 PM

(02-03-2009 04:33 PM)Ger Teunis Wrote:  Sadly enough not usefull. This is a crash in one of the libraries of mono itself.

Could you post a dump while installing an application?

This part is from right after I have selected to install the VeraMono-font (clicking Next) until I get the error message that we cannot get into the FTP server:

http://pastebin.com/m26999d98

The crash have so far no applied to applications, just the Theme/Custom menu.
I'll try to re-produce and try some more.


RE: [CSI] Community software installer 1.5.2 - Ger Teunis - 02-03-2009 04:48 PM

(02-03-2009 04:45 PM)dc11ab Wrote:  This part is from right after I have selected to install the VeraMono-font (clicking Next) until I get the error message that we cannot get into the FTP server:

http://pastebin.com/m26999d98

The crash have so far no applied to applications, just the Theme/Custom menu.
I'll try to re-produce and try some more.

So Applications install correctly and Themes/Custom menu's don't work?
Please do not use verbose output, just the default console output.


RE: [CSI] Community software installer 1.5.2 - dc11ab - 02-03-2009 04:55 PM

No, the applications do not install, but they are downloaded (correctly it seems) to the temp-folder on my Mac.


As for the Themes: tested with the "Stilrent". It downloads fine and the zip-file is extracted too, but then CSI vanishes.


Since Xulrunner was installed I do not get much of anything from Terminal running normally (without verbose), just the
libgluezilla not found. To have webbrowser support, you need libgluezilla installed

EDIT
The Apps file created in the temp-dir has no Execute rights:
$ ls -al Apps
-rw-r--r-- 1 dc11ab 619956085 1626 Feb 3 16:50 Apps



RE: [CSI] Community software installer 1.5.2 - Ger Teunis - 02-03-2009 05:00 PM

(02-03-2009 04:55 PM)dc11ab Wrote:  No, the applications do not install, but they are downloaded (correctly it seems) to the temp-folder on my Mac.


As for the Themes: tested with the "Stilrent". It downloads fine and the zip-file is extracted too, but then CSI vanishes.


Since Xulrunner was installed I do not get much of anything from Terminal running normally (without verbose), just the
libgluezilla not found. To have webbrowser support, you need libgluezilla installed

Great, so to recapitulate:
- Themes downloads and unzips okay
- Application downloads and unzips okay
- Themes crash directly after downloading
- Applications crashes during upload

I think the Applications upload problem is due to the webbrowser component.

Themes is something completely different, ohh if just somebody could sponsor me a Apple Laptop (just kidding Smile)

Thanks for you feedback! I have more insight now.


RE: [CSI] Community software installer 1.5.2 - dc11ab - 02-03-2009 05:15 PM

Almost correct.

I don't get a crash with Applications, just with Themes. Otherwise well summarized.
With Apps I get an error message, but no crash:
[Image: picture1xk3.png]

But the Apps file created contains a full dir list of my PCH HDD!?

I'll post if I find something else that could be of interest.