ysimeneh / scandinavian-keyboard

Automatically exported from code.google.com/p/scandinavian-keyboard
0 stars 0 forks source link

Force Close on Gingerbread (Android 2.3) with dictionary #91

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Installed the application with Finnish dictionary

What is the expected output? What do you see instead?
Force close if the dictionary is in use.

What version of the product are you using? On what operating system?
Version 1.4.4 on Gingerbread

Original issue reported on code.google.com by zua...@gmail.com on 16 Dec 2010 at 11:16

GoogleCodeExporter commented 9 years ago
This is probably a similar issue to the force close problem that came when 
Froyo was released. I don't think I will be able to fix it until the source for 
Gingerbread is released (probably in a couple of weeks). I'll probably don't 
have time to work on it earlier anyway because I'm in the middle of an exam 
period.

Original comment by trygv...@gmail.com on 16 Dec 2010 at 2:42

GoogleCodeExporter commented 9 years ago
Here's a stack trace, in case it helps.

Can you describe the possible issue in more detail? I installed the tools and 
the SDK to get the stack trace -- if it's something trivial, I could have a 
look. OTOH, the openNative call looks a bit scary...

--Hannu

E/AndroidRuntime( 5773): FATAL EXCEPTION: main
E/AndroidRuntime( 5773): java.lang.UnsatisfiedLinkError: openNative
E/AndroidRuntime( 5773):    at 
com.android.inputmethod.norwegian.BinaryDictionary.openNative(Native Method)
E/AndroidRuntime( 5773):    at 
com.android.inputmethod.norwegian.BinaryDictionary.loadDictionary(BinaryDictiona
ry.java:79)
E/AndroidRuntime( 5773):    at 
com.android.inputmethod.norwegian.BinaryDictionary.<init>(BinaryDictionary.java:
59)
E/AndroidRuntime( 5773):    at 
com.android.inputmethod.norwegian.Suggest.<init>(Suggest.java:65)
E/AndroidRuntime( 5773):    at 
com.android.inputmethod.norwegian.NorwegianIME.initSuggest(NorwegianIME.java:275
)
E/AndroidRuntime( 5773):    at 
com.android.inputmethod.norwegian.NorwegianIME.onStartInputView(NorwegianIME.jav
a:361)
E/AndroidRuntime( 5773):    at 
android.inputmethodservice.InputMethodService.showWindowInner(InputMethodService
.java:1327)
E/AndroidRuntime( 5773):    at 
android.inputmethodservice.InputMethodService.showWindow(InputMethodService.java
:1285)
E/AndroidRuntime( 5773):    at 
android.inputmethodservice.InputMethodService$InputMethodImpl.showSoftInput(Inpu
tMethodService.java:388)
E/AndroidRuntime( 5773):    at 
android.inputmethodservice.IInputMethodWrapper.executeMessage(IInputMethodWrappe
r.java:176)
E/AndroidRuntime( 5773):    at 
com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java
:61)
E/AndroidRuntime( 5773):    at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 5773):    at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 5773):    at 
android.app.ActivityThread.main(ActivityThread.java:3647)
E/AndroidRuntime( 5773):    at java.lang.reflect.Method.invokeNative(Native 
Method)
E/AndroidRuntime( 5773):    at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 5773):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime( 5773):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime( 5773):    at dalvik.system.NativeStart.main(Native Method)

Original comment by hannu.he...@gmail.com on 17 Dec 2010 at 8:00

GoogleCodeExporter commented 9 years ago
It seems that the application crashes when it tries to load the native library 
libjni_norwegianime_froyo.so. I downloaded the source codes and compiled the 
application with Gingerbread toolchain. Had to edit the makefiles so that 
libjni_norwegianime_froyo.so is build and added to package.

No problems so far...

-Juha-

Original comment by zua...@gmail.com on 27 Dec 2010 at 1:50

GoogleCodeExporter commented 9 years ago
zuah75: Could you share your build with us? Thanks!

Original comment by henrik.a...@gmail.com on 31 Dec 2010 at 1:47

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
zuah75: Thanks, it seems to be working without any problems on my Nexus S.  
Maybe you should publish a more detailed guide on how to build this thing?

Original comment by henrik.a...@gmail.com on 31 Dec 2010 at 3:25

GoogleCodeExporter commented 9 years ago
zuah75's package won't install on my Wildfire (CM7).

Original comment by jsilt...@gmail.com on 21 Jan 2011 at 7:12

GoogleCodeExporter commented 9 years ago
Error message?

Have you allowed installation of non-Market applications from Application 
settings?
If you installed Scandinavian keyboard from Market you need to uninstall the 
Market version first. 

Original comment by zua...@gmail.com on 21 Jan 2011 at 7:42

GoogleCodeExporter commented 9 years ago
Thank you! The problem was that I had the Market version installed. Removed, 
and your package installed. It also seems to work without issue, using the 
Finnish dictionary at least.

Original comment by jsilt...@gmail.com on 21 Jan 2011 at 7:51

GoogleCodeExporter commented 9 years ago
Trygve, have you been able to look at this? I have the same issue with my Nexus 
S and wasn't quite ready to install Juha's "nasty" hack...

Original comment by tsund...@gmail.com on 21 Jan 2011 at 9:49

GoogleCodeExporter commented 9 years ago
I think that it's safe to install my build. I didn't change the application 
permissions or add malicious code.

The "nasty" part comes from following issues.
-I didn't change the version information -> problems with installation if the 
Market version is already installed.
-I replaced the native C libraries with the one that I compiled for Gingerbread 
-> issues if installed to devices running Froyo or older Android.

So, no code changes at all.

Maybe I should make another version while waiting for Trygve's answer.
-update the version information
-separate library for Gingerbread
-add checks to load correct library based on Android API level

Original comment by zua...@gmail.com on 21 Jan 2011 at 12:54

GoogleCodeExporter commented 9 years ago
I just installed your nasty hack and it works great. Thanks

Original comment by danij...@gmail.com on 25 Jan 2011 at 5:34

GoogleCodeExporter commented 9 years ago
I guess I need an apps installer to install this one? I've tried a couple, but 
it's the chicken and the egg, they are force closing just like the keyboard 
app. Any tip on an installer that works well with 2.3.2?

Original comment by tsund...@gmail.com on 25 Jan 2011 at 8:45

GoogleCodeExporter commented 9 years ago
Found an apps installer that works well with 2.3.2 (Easy Installer), and the 
keyboard app works well. Thanks a lot to Juha for that! Cheers Thorbjørn

Original comment by tsund...@gmail.com on 25 Jan 2011 at 9:59

GoogleCodeExporter commented 9 years ago
The fixed package is zuah75's, please stop crediting me :)

Original comment by jsilt...@gmail.com on 25 Jan 2011 at 10:05

GoogleCodeExporter commented 9 years ago
It crashes on my Nexus One / Cyanogenmod 7 (nightly build from yesterday). The 
"nasty hack" version works, but I get the 2.2 look. :)

Original comment by jonragna...@gmail.com on 27 Jan 2011 at 3:49

GoogleCodeExporter commented 9 years ago
Here is an unofficial 1.4.5 version and source code.
- updated the version information
- separate native C library for Gingerbread
- added checks to load correct library based on Android API level

Original comment by zua...@gmail.com on 9 Feb 2011 at 7:44

Attachments:

GoogleCodeExporter commented 9 years ago
Normal Scandinavian Keyboard crashed on my Nexus S with Icelandic Dictionary 
installed, the hacked version works though!

Original comment by axelpa...@gmail.com on 10 Feb 2011 at 3:53

GoogleCodeExporter commented 9 years ago
Works great on ADP1 with ADS_magpie Gingerbread (based off ezterry's GB) too. 

Original comment by 253...@gmail.com on 21 Feb 2011 at 12:12

GoogleCodeExporter commented 9 years ago
works, how about updating the original code now

Original comment by kub...@gmail.com on 22 Feb 2011 at 9:10

GoogleCodeExporter commented 9 years ago
It would be nice too get an updated version in the market. Just got the 
official Gingerbread on my Nexus one.

Original comment by sverrirf...@gmail.com on 25 Feb 2011 at 7:02

GoogleCodeExporter commented 9 years ago
Ditto, just got the official Gingerbread on my Nexus One and the genuine 
Scandinavian Keyboard crashes! Please fix!

Original comment by gudj...@gmail.com on 25 Feb 2011 at 7:49

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Second that! Trygve: Please update the Market version - Gingerbread is rolling 
out in Norway now.. 

Btw. Thanks for a great app!

Original comment by alexa...@gmail.com on 1 Mar 2011 at 9:03

GoogleCodeExporter commented 9 years ago
I agree, and would like to thank Trygve for the work that he has done so far. 
In the meantime, I tried out the "unofficial" 1.4.5 version released in comment 
#17 and it works fine.

I would also encourage all those who have been happy with the Scandinavian 
Keyboard so far to make a donation to Trygve so that he knows that his work is 
appreciated.

Original comment by paul.nyh...@gmail.com on 1 Mar 2011 at 10:26

GoogleCodeExporter commented 9 years ago
Please state in android market place when there are updates 
For gingerbread.  Thanks

Original comment by mch.p...@gmail.com on 3 Mar 2011 at 8:59

GoogleCodeExporter commented 9 years ago
Sorry for taking so long to fix this. I haven't really worked on the keyboard 
in a while. The updated version I just uploaded to market should fix the 
problem.

Original comment by trygv...@gmail.com on 4 Mar 2011 at 3:50