Coder Social home page Coder Social logo

Comments (18)

JayDugger avatar JayDugger commented on August 23, 2024

I also have this bug on a Samsung; Galaxy Note running Cyanogen Mod 9.

from emacs-android.

zielmicha avatar zielmicha commented on August 23, 2024

I think it happens on all devices.

from emacs-android.

leahneukirchen avatar leahneukirchen commented on August 23, 2024

It seems to crash here with any font size... I tried 3 of them.

HTC Desire Z A7272
Android 2.3.3, HTC Sense 2.1, Kernel 2.6.35.10-g53a84f9, Buildnumber 2.42.405.4

from emacs-android.

JayDugger avatar JayDugger commented on August 23, 2024

I tried all available font sizes with and without UTF-8 enabled. I got the segmentation fault every single time.

from emacs-android.

vapniks avatar vapniks commented on August 23, 2024

I get a segfault after the terminal starts, before emacs has even started.
Phone = Motorola Droid 2 global
Android version = 2.3.4 (rooted)
Build = 4.5.1_57_D2GA-59
Kernel = 2.6.32.9-g177d714
System = 4.5.629.A956.Verizon.en.US

from emacs-android.

red0ck33g avatar red0ck33g commented on August 23, 2024

segfault right after install, in the install, I think when it was starting emacs up for the first time. (I think just like above user (vapniks). Attempt run emacs again from the same terminal and got the segfault again.

Tablet = Asus Infinity TF700
AndroidVersion = 4.0.3
Build Number = IML74K.WW_epad-9.4.5.26-20120720
Kernel = 2.6.39.4

from emacs-android.

aperomsik avatar aperomsik commented on August 23, 2024

@red0ck33g did you try other font sizes? Start from the smallest one, if that works try the next one up just in case it works too.

from emacs-android.

dgutov avatar dgutov commented on August 23, 2024

On Google Nexus 7, Android 4.1.0 (stock firmware), segfaults with both Normal and Small font sizes.
Haven't tried with bigger ones.

from emacs-android.

jerryw avatar jerryw commented on August 23, 2024

Can I ask when to release a bug fixing version on Google Play?

from emacs-android.

zielmicha avatar zielmicha commented on August 23, 2024

I don't know. First I would have to fix this bug.

from emacs-android.

bryanlarsen avatar bryanlarsen commented on August 23, 2024

On Nexus 7, the smallest font and the 10pt fonts work.

from emacs-android.

smtindall avatar smtindall commented on August 23, 2024

I also have a Nexus 7. Here is a (somewhat kludgey) work-around:

  • Set the terminal emulator to a font size that works (10pt is the biggest on my Nexus 7)
  • start emacs
  • Set the terminal emulator to a larger font size WITHOUT exiting emacs IE 14pt
  • emacs should hopefully still be running, but look kind of weird because the frame size mismatches the terminal size
  • issue the following command (experiment with height & width to find what works on your screen)
    M-x eval-expression RET (set-frame-size (selected-frame) 80 24) RET
  • this should reset emacs' frame-size to something that fits within your device.
  • by doing this I end up with a fully functional emacs with a larger font size that would otherwise crash during start-up.
    • Note that this is not a permanent solution and must be repeated each time you exit & restart emacs.
    • also note that I have not tested this on anything other than my Nexus 7 so YMMV

from emacs-android.

mcandre avatar mcandre commented on August 23, 2024

Setting the font size to 7px works on my Samsung Galaxy S III.

Manually adding the -nw flag works, but any attempt to modify the scripts to automatically pass this flag will fail, as emacs overwrites the scripts on every run. :(

Please fix this!

from emacs-android.

zielmicha avatar zielmicha commented on August 23, 2024

Adding -nw doesn't help, at least in my case.
You can create script /sdcard/emacs/emacsrc, which will be executed before Emacs start. (with something like exec emacs -nw)

from emacs-android.

AchromatReader avatar AchromatReader commented on August 23, 2024

Workaround for segfault error (tested on HTC Evo 3D with Android 4.0.3):
Step 1: As soon as you get the Segmentation Fault message, change Terminal's font size to 8 or 9 or 10 pt
(Menu button, Preferences, Font Size)
Step 2: cd src
(should be identical to cd /data/data/com.zielm.emacs/src)
Step 3: ./bootstrap-emacs

If Emacs loads successfully you may want to deactivate Emacs's menu bar:
M-x menu-bar-mode
or evaluate the elisp term (menu-bar-mode -1)

from emacs-android.

mcandre avatar mcandre commented on August 23, 2024

@AchromatReader Does disabling the menu bar prevent future segmentation faults? Can the font size be increased after inserting (menu-bar-mode -1) at the top of ~/.emacs?

from emacs-android.

AchromatReader avatar AchromatReader commented on August 23, 2024

Does disabling the menu bar prevent future segmentation faults?

No. This was just a suggestion.

Can the font size be increased after inserting (menu-bar-mode -1)

Yes, it can be increased or decreased. However, even after pressing cntl-L the screen is not set up satisfactorily. You still have to set one of the display size variables (I cant' remember which one it is).

I've just done a few more tests with several font size settings. It seems that the font size has no effect or only an inconsistent effect on segfault errors. The real difference between segfault error and no error is this:

cd /data/data/com.zielm.emacs ./src/bootstrap-emacs

----> this causes a segfault error. This is effectively what the script file /data/data/com.zielm.emacs/emacs does.


cd /data/data/com.zielm.emacs/src ./bootstrap-emacs

----> Emacs starts without any errors.

from emacs-android.

mcandre avatar mcandre commented on August 23, 2024

@AchromatReader On my phone, font size plays a critical role in causing or preventing segfaults.

Hmm, seems like some portions of emacs are using current working directory-relative paths instead of emacs binary-relative paths.

from emacs-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.