Pages: « 1 2 3 4 »
  Print  
Author Topic: Fixed those Makefiles  (Read 7551 times)
Offline (Female) IsmAvatar
Reply #15 Posted on: May 14, 2010, 09:53:46 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
I don't understand. That just restarts X and takes you to the login screen.

Also, if Java freezes up and you don't want to log out, use [Ctrl]+Alt+F1 (or any F-key from 1 to 6), give your credentials, and then $ pkill java
Logged
Offline (Male) Josh @ Dreamland
Reply #16 Posted on: May 14, 2010, 10:01:44 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2958

View Profile Email
That doesn't help the shit-my-entire-computer-is-frozen-because-java-killed-X problem.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Unknown gender) freezway
Reply #17 Posted on: May 14, 2010, 10:54:25 PM

Member
Joined: Dec 2009
Posts: 220

View Profile
do u know why LGM makes java kill it?
Logged
if you drop a cat with buttered toast strapped to its back, which side lands down?
joshdreamland: our languages are based on the idea that it's going to end up FUBAR
/kick retep998
Offline (Male) Josh @ Dreamland
Reply #18 Posted on: May 14, 2010, 11:11:49 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2958

View Profile Email
It's some Java bug (Ism says it's actually an X bug, but I blame Java as well since nothing else kills X) invoked when a drag and drop tile is released.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Unknown gender) Micah
Reply #19 Posted on: May 15, 2010, 12:01:32 PM

Resident Troll
Joined: May 2008
Posts: 129

View Profile
Wow. You're seriously assuming that Java has a bug before assuming that X has a bug?
Logged
Offline (Unknown gender) luiscubal
Reply #20 Posted on: May 15, 2010, 01:39:47 PM
Member
Joined: Jun 2009
Posts: 452

View Profile Email
Relevant bug trackers:
http://bugs.sun.com/view_bug.do?bug_id=6397447
https://bugs.freedesktop.org/show_bug.cgi?id=17126

Forums:
http://forums.sun.com/thread.jspa?threadID=5319312
Logged
Offline (Female) IsmAvatar
Reply #21 Posted on: May 15, 2010, 04:08:33 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
http://www.ismavatar.com/lgm/forum/index.php?t=11
LGM forum already had a bug filed on this. We realized that it's not a bug with LGM, but seems to be Java-end. The bug is reproduced by having any program with D&D, with a splash screen, running on a specific set of versions of X with specific graphics cards, and only seems to take effect if the program is a JAR. The problem can be worked around either by not using D&D or disabling the splash screen (which can be achieved by modifying the manifest, a text file inside the jar).

Once we realized it wasn't an LGM bug, we moved it from Bugs to Help. It has been an argument between Java and X to figure out whose fault it is. I suspect X.
Logged
Offline (Unknown gender) luiscubal
Reply #22 Posted on: May 16, 2010, 12:00:28 PM
Member
Joined: Jun 2009
Posts: 452

View Profile Email
I don't see how any program should be allowed to freeze X. That specially applies to non-admin users.
Even if it would be acceptable for a program to do that with a lot of effort, doing it "accidentally" makes me automatically consider it a X11 bug, even if Java could possibly work around it.
Logged
Offline (Unknown gender) freezway
Reply #23 Posted on: May 16, 2010, 12:04:06 PM

Member
Joined: Dec 2009
Posts: 220

View Profile
so.... whats the plan? wait for a bugfix? buy josh a new puter?
Logged
if you drop a cat with buttered toast strapped to its back, which side lands down?
joshdreamland: our languages are based on the idea that it's going to end up FUBAR
/kick retep998
Offline (Female) IsmAvatar
Reply #24 Posted on: May 16, 2010, 12:16:02 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
LGM has been working around this by encouraging anyone on Linux who believes they may encounter this bug to remove the splash screen from the Manifest file in the jar. We've also considered distributing a version of LGM without the splash screen.

Alternatively, avoid using D&D (consider using alternative functionality, if available), and wait for a bugfix in Java or X. According to one of those pages linked before, a fix is expected in java 6u19 or 6u20. Apparently 6u20 beta still exhibits this problem.

A possible workaround is to apply a binary patch if using 6u18.

Quote
1) find libsplashscreen.so file (on Debian it is in
/usr/lib/jvm/java-6-sun-1.6.0.18/jre/lib/i386/)
2) take your favorite hex editor and starting from 0x70d0 replace 6 bytes to
0x90 0x90 0x90 0x90 0x90 0x90
3) save the file and enjoy.

Use at your own risk, obviously.
« Last Edit: May 16, 2010, 12:23:59 PM by IsmAvatar » Logged
Offline (Male) Josh @ Dreamland
Reply #25 Posted on: May 16, 2010, 12:21:57 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2958

View Profile Email
The splash screen doesn't display here; I assumed you'd removed it.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Female) IsmAvatar
Reply #26 Posted on: May 16, 2010, 12:27:17 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
I don't recall removing it. The splash screen not showing up appears to be another bug, actually.
Logged
Offline (Unknown gender) score_under
Reply #27 Posted on: May 16, 2010, 01:34:36 PM

Member
Joined: Aug 2008
Posts: 308

View Profile
Wow. You're seriously assuming that Java has a bug before assuming that X has a bug?
Logged
Offline (Male) RetroX
Reply #28 Posted on: May 16, 2010, 02:01:31 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
Note: the file is supposed to be called "Makefile," not "makefile"

Also, I'm segfaulting in LGM again. :/
« Last Edit: May 16, 2010, 02:07:04 PM by RetroX » Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Male) Josh @ Dreamland
Reply #29 Posted on: May 16, 2010, 02:07:11 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2958

View Profile Email
As a matter of fact, Linux is the only OS they work on at the moment, because Windows can't call make. ^_^
System() can't parse the program name from the arguments.
CreateProcess() can't find mingw32-make.
So really, it only works on Linux at the moment.

Makefile is given priority over makefile; other than that, either is fine.

Only one makefile should be outputting an exe, and it's the one under SHELL. Windows will only run EXE, Linux will run anything given --e permissions. So I used exe.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Pages: « 1 2 3 4 »
  Print