zielmicha / emacs-android

Emacs port to Android.
141 stars 23 forks source link

Emacs segfaults on installation #19

Closed vjandrea closed 11 years ago

vjandrea commented 11 years ago

During install, after lisp download, terminal window shows: Fatal Error (11)Segmentation fault. After reboot if i reopen the app to see if the installation may continue, the same error appears. ICS on HTC G2.

mcandre commented 11 years ago

Me, too! Please patch Emacs so that it handles different window and font sizes.

vjandrea commented 11 years ago

I'm looking through the code to see where this is handled, but since i don't have a detailed log this is pretty hard. Is there a debug mode for this app?

mcandre commented 11 years ago

Anyone know of a source for gdb on Android?

aperomsik commented 11 years ago

Does this help? I have used NDK GDB once or twice, but not sure if it will work with the way emacs runs. http://stackoverflow.com/questions/10534367/how-to-get-ndk-gdb-working-on-android

zielmicha commented 11 years ago

I used addr2line from Android NDK on adress that is shown in crash dump from adb logcat. Than I inserted debug printf and I found out that a some elisp variable is not initialized (and NULL dereference or abort() follows, I don't remember (abort() is redefined in emacs to something strange). Then I gave up, as the error was in internationalization code, which was to strange for me to handle.

mcandre commented 11 years ago

The segfault is somehow related to screen dimensions and font size. If I set the font too big in Android Terminal, or use portrait mode, Emacs crashes. If I use really tiny font in landscape mode, Emacs runs very well.

Something is segfaulting for small screen sizes.

zielmicha commented 11 years ago

This is duplicate, main bug is #2 .