Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes when sending messages #414

Closed
kerosyn opened this issue Apr 15, 2011 · 87 comments
Closed

Crashes when sending messages #414

kerosyn opened this issue Apr 15, 2011 · 87 comments

Comments

@kerosyn
Copy link
Contributor

kerosyn commented Apr 15, 2011

Updated (May 10, 2011);
When trying to send a message on the windows version of emesene2 with Adium Output enabled, emesene crashes. It sometimes is able to send the message, but it still crashes.

The current workaround for me is to go to Preferences > Live Messenger > Open Live Profile, and then REMOVING the avatar. Restart emesene, and if you have previously saved your login data DELETE it.

Tested on Windows XP and 7.

@astagi
Copy link
Member

astagi commented Apr 15, 2011

Please report your terminale output...

@kerosyn
Copy link
Contributor Author

kerosyn commented Apr 15, 2011

Not sure if this is what you wanted, but here anyways.
http://pastebin.com/uhpse7nf

Here is the emesene.exe.log just in case.
http://pastebin.com/TbgbJWg7

@marianoguerra
Copy link
Member

that's a packaging problem, I had those crashes when I didn;t included the font configuration from gtk on the package.

the only way to find that for me was to use process explorer and see which resources the app was trying to access before crashing (yeah, it sucks)

I don't now if we should track package bugs here?

wdyt?

@c10ud
Copy link
Member

c10ud commented Apr 15, 2011

@syst3mfailur3: on a side note, you may want to fix your profile in Preferences-Live Messenger, i see lots of 404 in there, and they are a consequence of a broken profile

@marianoguerra: i think we can leave the issues to packagers, just we write somewhere (your old "package for windows" post? windows page in github wiki?) the issue that has been found

@kerosyn
Copy link
Contributor Author

kerosyn commented Apr 16, 2011

When running it out of the git terminal, python.exe is crashing which then brings down emesene.
python.exe is actually crashing as soon as I open a chat window.

@ghost ghost assigned arielj Apr 18, 2011
@c10ud
Copy link
Member

c10ud commented Apr 18, 2011

added possible issue to windows wiki page https://github.com/emesene/emesene/wiki/windows

@c10ud c10ud closed this as completed Apr 18, 2011
@marianoguerra
Copy link
Member

try copyin all you can from the gtk library folder to the dist folder, it will generate a huge .exe but check if that works, if that works it means you are missing an important file (it happened to me with the fonts folder)

@kerosyn
Copy link
Contributor Author

kerosyn commented May 5, 2011

Everything in C:\Python26\Lib\site-packages\gtk-2.0\runtime?

@marianoguerra
Copy link
Member

On Thu, May 5, 2011 at 12:53 PM, syst3mfailur3
reply@reply.github.com
wrote:

Everything in C:\Python26\Lib\site-packages\gtk-2.0\runtime?

remove all the locales and all the themes but one to get some speedup
and less package size (I think the problem is with some of the other
folders)

@kerosyn
Copy link
Contributor Author

kerosyn commented May 5, 2011

while waiting for a response, I did copy everything in C:\Python26\Lib\site-packages\gtk-2.0\runtime, but didnt remove any of the other files since I wasn't sure. Anyways, it is still crashing when I try to send a message.

@marianoguerra
Copy link
Member

it doesn't crash if run from the source right?

@kerosyn
Copy link
Contributor Author

kerosyn commented May 5, 2011

I'm pretty sure it is crashing from source, but I will double check.

@kerosyn
Copy link
Contributor Author

kerosyn commented May 5, 2011

When I run from source I get "python.exe has stopped working" and it crashes.

@marianoguerra
Copy link
Member

I think you have a mess with dependencies, maybe some wrong combination of dlls is making the interreter crash.

can you run a clean vm and install the dependencies that I listed on the blog in that order and try again?

the other solution (harder) is to clean/remove all the installations and try again, but it always leave traces of previous instalations.

@kerosyn
Copy link
Contributor Author

kerosyn commented May 5, 2011

Ok so I installed everything from the guide in order on XP (vm), but its still crashing when i send a message.
It does seem to be at least running on XP now which is an improvement, but right now im still just running from the source.

@kerosyn
Copy link
Contributor Author

kerosyn commented May 5, 2011

The crashes seem to be caused by adium output. With the normal text output, its fine.

@kerosyn kerosyn reopened this May 5, 2011
@arielj
Copy link
Member

arielj commented May 6, 2011

The crashes with Adium output happened to me before when webkit missed dependencies (I've never used a package, just source), it must be that. It's hard to find the right dependencies though...

Can you run dependency walker agains the installer? maybe it shows more dependencies missing.

@kerosyn
Copy link
Contributor Author

kerosyn commented May 6, 2011

Not sure if I'm using it right, but it says there is an "Error opening file. The system cannot find the file specified (2)." for GPSVC.DLL and IESHIMS.DLL.

Also the adium theme works fine with dummy, but crashes with msn.

@arielj
Copy link
Member

arielj commented May 6, 2011

I have those missing dll's too, they are not really needed I guess, and you say it working with dummy backend, so it's a problem with something done by papylib... maybe contacts pictures? do you have two accounts to test? put both with no picture and try opening a conversation. Can you send my the installer so I can test it too?

@kerosyn
Copy link
Contributor Author

kerosyn commented May 6, 2011

Seems to have worked with no avatars.
http://imageshack.us/photo/my-images/848/adiumoutput.png/

And installer and portable version (updated when I have time) are here:
http://www.fileserve.com/list/3sn6UZV

@marianoguerra
Copy link
Member

I updated the guide http://blog.emesene.org/2011/03/rough-guide-to-create-windows-packages.html

it uses the xmppy submodule and patches the boot_common.py file from py2exe to avoid the error on close.

if there is any problem with the guide let me know.

btw, I made a portable build and it doesn't crash on gtalk, (no avatars there), so I will try to debug what's causing the problem with the avatars

PS: sorry for the merge, I commited directly to emesene/emesene, no idea why it happened

@c10ud
Copy link
Member

c10ud commented May 6, 2011

commit to your personal branch, and i'll fix the thing

2011/5/6 marianoguerra
reply@reply.github.com:

I updated the guide http://blog.emesene.org/2011/03/rough-guide-to-create-windows-packages.html

it uses the xmppy submodule and patches the boot_common.py file from py2exe to avoid the error on close.

if there is any problem with the guide let me know.

btw, I made a portable build and it doesn't crash on gtalk, (no avatars there), so I will try to debug what's causing the problem with the avatars

PS: sorry for the merge, I commited directly to emesene/emesene, no idea why it happened

Reply to this email directly or view it on GitHub:
#414 (comment)

@marianoguerra
Copy link
Member

On Fri, May 6, 2011 at 5:53 PM, c10ud
reply@reply.github.com
wrote:

commit to your personal branch, and i'll fix the thing

my personal branch is a mess, I can't fix it with my more than basic
git knowledge, that's why I tried to push to emesene/emesene to avoid
this, but it seems that git hates me

@c10ud
Copy link
Member

c10ud commented May 6, 2011

ok no need, i rewrote history for good :D

2011/5/6 Riccardo (C10uD) c10ud.dev@gmail.com:

commit to your personal branch, and i'll fix the thing

2011/5/6 marianoguerra
reply@reply.github.com:

I updated the guide http://blog.emesene.org/2011/03/rough-guide-to-create-windows-packages.html

it uses the xmppy submodule and patches the boot_common.py file from py2exe to avoid the error on close.

if there is any problem with the guide let me know.

btw, I made a portable build and it doesn't crash on gtalk, (no avatars there), so I will try to debug what's causing the problem with the avatars

PS: sorry for the merge, I commited directly to emesene/emesene, no idea why it happened

Reply to this email directly or view it on GitHub:
#414 (comment)

@marianoguerra
Copy link
Member

On Fri, May 6, 2011 at 6:03 PM, Mariano Guerra
luismarianoguerra@gmail.com wrote:

On Fri, May 6, 2011 at 5:53 PM, c10ud
reply@reply.github.com
wrote:

commit to your personal branch, and i'll fix the thing

my personal branch is a mess, I can't fix it with my more than basic
git knowledge, that's why I tried to push to emesene/emesene to avoid
this, but it seems that git hates me

I would like to start again forking emesene/emesene, but I would loose
all the watchers and related data

@c10ud
Copy link
Member

c10ud commented May 6, 2011

no need, just:

git reset HEAD^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ (this uncommits a lot)

then

git reset --hard (cleans stuff)

and

git clean -f (cleans other stuff)

remove things external from the repo (check with git status) and hopefully you'll get in an old commit but still in emesene master. at this point: git pull emesene master and you'll hopefully be at current HEAD

@c10ud
Copy link
Member

c10ud commented May 6, 2011

once you fixed locally, just git push mariano -f and rewrite your remote

@mariano
Copy link

mariano commented May 17, 2011

And now, obviously, I was added as a watcher of this ticket and can't seem to get out of it :)

@arielj
Copy link
Member

arielj commented May 17, 2011

At the bottom of the page it says (bellow the comment buttons):

Notifications for new comments on this Issue are on. Disable notifications for this Issue

Sorry about that :P!

@mariano
Copy link

mariano commented May 17, 2011

Oh duh. Thanks :)

@Sbte
Copy link
Member

Sbte commented May 24, 2011

@syst3mfailur3, did you maybe find any problems with arielj's fix? If not, can this issue be closed?

@kerosyn
Copy link
Contributor Author

kerosyn commented May 24, 2011

Been busy the last while and haven't really had a chance until today to try anything out.
I'll let you know later today.

@kerosyn
Copy link
Contributor Author

kerosyn commented May 25, 2011

@arielj Just tried the package you made (#552 (comment)), it didn't seem to work for me. Conversation output is gone from the extension part of preferences, and it seems text output is used.

Also when trying to recreate your fix on my end, no files made it into "dist" except "etc" "lib" and "share" from C:\Python26\Lib\site-packages\gtk-2.0\runtime. I instead tried not doing the command "cp *.dll ../dist/". The result was the same as using your package

@arielj
Copy link
Member

arielj commented May 26, 2011

I'm sending my package to some friends to test it a little more, just tried yesterday on another pc and it worked right :S, I'm not really sure where's the problem.

@c10ud
Copy link
Member

c10ud commented May 30, 2011

are the new incoming packages affected by this issue?

@arielj
Copy link
Member

arielj commented May 30, 2011

I can't find testers! I'll made a new package with most recent changes, it works on my two pc's with Windows XP, I don't have another Windows version to test them :/

@c10ud
Copy link
Member

c10ud commented May 30, 2011

@syst3mfailur3 can you check this out with @arielj ?

@Sbte
Copy link
Member

Sbte commented May 30, 2011

Or else just release it. Them we'll find them complaining soon enough.

Does Adium work for you with your package btw arielj?

@arielj
Copy link
Member

arielj commented May 30, 2011

Yes, it works here, I'm doing the new package right now.

@Sbte
Copy link
Member

Sbte commented May 30, 2011

@arielj, I'll test it in my vm as soon as soon as your package is ready

@markuznw
Copy link

Up to test it, got like 4 computers but just one with xp (and your old package worked ;))

@arielj
Copy link
Member

arielj commented May 30, 2011

WT...? now it's not working on one of the pc's here, I don't know why, it's not showing any error importing webkit, but it's not imported :S

@kerosyn
Copy link
Contributor Author

kerosyn commented May 30, 2011

Its only seems to happen when logged into msn. Gtalk and dummy are both file. I still think its avatar/profile related.

@arielj
Copy link
Member

arielj commented May 31, 2011

Ok, I think I've found the problem! Py2exe is not packaging these dll's:
libxml2.dll
libxml2-2.dll
libiconv-2.dll
iconv.dll
z.dll

How can I tell NSIS to include those files too? I've put them inside /dist, I guess that works, but I have to wait until the package finish :P

Can you try this installer? http://www.mediafire.com/?x972xzs0x62u467
If adium themes doesn't get loaded (run emesene_debug.exe from the command line and you should see the error and emesene will crash), copy those 5 dll's from emesene/dlls folder (source) to program files/emesene2 and start emesene again, it should work! with adium themes too!!!

I've also found that most of the dll's from emesene/dlls are different than mines, maybe that caused emesene to crash when I do:
cp ../dlls/* .

@syst3mfailur3, can you try to package emesene yourself but replacing the dll's from emesene/dlls with the ones on this package? if it works for you too we can change them on the main repo so everyone has them!

I'm uploading a version including those missing dll's too, I'll update here with the new package later, if it works we can use it as the installer for emesene 2.11.5 and finally close this issue ;)

EDIT: installer including missing dlls http://www.mediafire.com/?qmndb9mk21m4bgi

@kerosyn
Copy link
Contributor Author

kerosyn commented May 31, 2011

@arielj It works! The installer at the bottom at least, the first one you posted didn't run at all including the debug.

What was your exact process in getting this dlls included? Did you do it do something different in the git bash? Or did you just drag and drop?

I don't have time now to do anything now, but maybe later.

@arielj
Copy link
Member

arielj commented May 31, 2011

@syst3mfailur3, the first link on my other post will crash because I made it to crash to see the error, you have to run it from a windows cmd so the output of emesene_debug.exe can be seen, and, if you copy and paste those 5 dlls listed above inside program files/emesene2, it should not crash anymore.

To get those dlls included I just put them inside /dist (copy paste using windows explorer), but only those dlls, the others were already there (I have them inside my gtk installation and they are different). I'll upload my dll versions on a different dll folder so you can test with those dlls (instead of ignoring the cp ../dlls/* . command at build, do something like cp ../dlls2/* ., if dlls2 works, we can remove the ones from dlls and use mines).

Here are the finished exes:
Installer: http://www.mediafire.com/?qmndb9mk21m4bgi
Portable: http://www.mediafire.com/?1d5ay9kyxkkoxj7

test them, so we can finally close this issue for good ;D

@kerosyn
Copy link
Contributor Author

kerosyn commented May 31, 2011

Don't have time to create my own package and test that right now, but I didn't run from terminal and it worked. It did freeze for a sec before showing, which scared me, but then it displayed fine. No crash. After the first message, no more little freezes. Using your installer, didn't notice any little freezes.

Second time I tested from terminal, stall was even shorter. I think its just because I'm running from terminal, and I don't think that the fact its being run from a vm with only 512mb memory helped.

I say lets go with your dlls, they are working better then the others.

@marianoguerra
Copy link
Member

On Tue, May 31, 2011 at 5:16 PM, arielj
reply@reply.github.com
wrote:

@syst3mfailur3, the first link on my other post will crash because I made it to crash to see the error, you have to run it from a windows cmd so the output of emesene_debug.exe can be seen, and, if you copy and paste those 5 dlls listed above inside program files/emesene2, it should not crash anymore.

To get those dlls included I just put them inside /dist (copy paste using windows explorer), but only those dlls, the others were already there (I have them inside my gtk installation and they are different). I'll upload my dll versions on a different dll folder so you can test with those dlls (instead of ignoring the cp ../dlls/* . command at build, do something like cp ../dlls2/* ., if dlls2 works, we can remove the ones from dlls and use mines).

Here are the finished exes:
Installer: http://www.mediafire.com/?qmndb9mk21m4bgi
Portable: http://www.mediafire.com/?1d5ay9kyxkkoxj7

test them, so we can finally close this issue for good ;D

if you find that some dlls can be taken from the gtk installation (or
other package that we installed in the process of packaging emesene)
then we should remove the dlls from the dll folder and update the
instructiomns.

the ideal state would be not to have dlls on the repo so if we can get
them from the installations then better!

@arielj
Copy link
Member

arielj commented Jun 1, 2011

I think that most dlls came from google :P, I've put them on gtk's folders just to make webkit work before knowing that emesene had a dlls folder

@marianoguerra
Copy link
Member

On Wed, Jun 1, 2011 at 1:45 PM, arielj
reply@reply.github.com
wrote:

I think that most dlls came from google :P, I've put them on gtk's folders just to make webkit work before knowing that emesene had a dlls folder

we should be careful with the procedence of the dlls, some may be
infected, we don't want to be on the news because of that :)

@c10ud
Copy link
Member

c10ud commented Jun 3, 2011

to windows installers builders: please clean up the dll/ dll2/ folders :D

@c10ud
Copy link
Member

c10ud commented Jun 3, 2011

i mean, leave only what's needed and kill the rest

@arielj
Copy link
Member

arielj commented Jun 3, 2011

If someone can confirm that the ones on dlls2 work and the installer doesn't crash sending messages with adium, we can remove dlls folder and close this issue.

@Sbte
Copy link
Member

Sbte commented Jun 3, 2011

syst3m said on irc they worked:

hey syst3m, did you try arieljs dlls yet?
sbte, yea
they seem to work

arielj, can you remove the other dlls that are not needed too?

@arielj
Copy link
Member

arielj commented Jun 3, 2011

ok, i'll remove them

@arielj arielj closed this as completed Jun 3, 2011
@markuznw
Copy link

markuznw commented Jun 4, 2011

Doesn't work on my work xp machine with latest installer. As soon as i open one contact window and try type something it locks (and only with adium output). The first one u made was working fine :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants