Page 1 of 1

[fixed] Zoom buttons sometimes cause errors and levels skip

Posted: Sat May 04, 2013 4:08 pm
by Guest
I have the paid version 1.4.0 (newest) on a Samsung Galaxy 3. I am a long time user & everything worked great until this latest version. I now get the following JAVA(?) error:
An error occurred.
Call: aio.onAction(on ViewReleased,[MotionEvent])
In: afy
Throws: java.lang.illegalStateExceptionMessave: The specified child already has a parent. You must call removeView() on the child's parent first.
My maps are not are not large (from smallest 300KB to largest 24,000KB). However, I do have maps of each level (from level 11 to 18). I like this because the different levels show different POI.
I get this error about every 3rd time I zoom in or out.

ALSO -- AlpineQuest now SKIPS levels! Using zoom buttons - > I will be looking at level 18 then zoom out - it will just shrink the level 18, zoom out again (more shrink - unreadable), zoom out again and it jumps to level 15.
Same when zooming in -- magnifies, magnifies, then jumps 3 levels.
Note: I can use the map MENU to view any level (so I know they ALL work) but then when zooming from the new level it jumps (after pressing the zoom button 3 times) 3 levels offset to the one I was at.

The error message appears -- EVERY TIME IT DOES THE 3 LEVEL JUMP ----- I get the Java error on my screen.

HELP? (For a temp fix -- can I download a previous version?????)

Re: Zoom buttons sometimes cause Java error and levels skip

Posted: Sat May 04, 2013 7:16 pm
by Psyberia-Support
Hi and thanks for using AlpineQuest,
I'll have a look soon at this issue and let you know.
It would be very useful if you could send me the log file of AlpineQuest (usually "/sdcard/alpinequest/alpinequest.log"), or post it here, after having an error message displayed.

You can download previous versions here: http://www.alpinequest.net/res/
Sorry for this disagreement.
Best regards

Re: Zoom buttons sometimes cause Java error and levels skip

Posted: Sat May 04, 2013 7:35 pm
by Psyberia-Support
Hi again,
I just realized what's happening concerning the map skipping.
It seems that you're using different maps for each zoom levels.
I have changed the behavior of the zoom buttons and didn't think about this particular use of levels.
Is there a particular reason for saving each levels in different map files, and not putting all levels in one single map? Creating a single map containing all levels, everything will work fine.
However I'll take care to better handle this case, in addition of correcting the reported error.
Best regards

Re: Zoom buttons sometimes cause Java error and levels skip

Posted: Sat May 04, 2013 10:20 pm
by tomp
I sent you the log file as a private msg. I am not experienced at posting here thus I did not see a way to attach a file, so I just copied the contents of the log and pasted it in the msg. private msg.
The reason I like each level in a different map file is that -- I can always know what level I am looking at. Since some POI (from the map source itself) are only on a single level, I can remember that and quickly zoom to level that displays it. Also, if I later find I want more or less coverage for a single level, I can easily swap that out. If you would display the Zoom level with the map name ... I would not need to do that! Could you please display the zoom level?
However, I will try to combine all levels into one map to test if that works for me. Thanks for quick response!!

Re: Zoom buttons sometimes cause Java error and levels skip

Posted: Sun May 05, 2013 1:52 am
by HoggetNZ
Hi,
Having same problem but my maps are single maps with multiple levels. Worked excellently before last update. Get error everytime I use zoom buttons but not when I use finger/thumb pinch gesture on touch screen. Can use touch gesture to move from top level right down to magnified bottom level.
Cheers HoggetNZ

Re: Zoom buttons sometimes cause Java error and levels skip

Posted: Sun May 05, 2013 7:04 pm
by Yemble
I agree that having a small indicator of the current zoom level would be useful, maybe within one of the info boxes (the scale box would be the obvious choice, IMHO)?

Re: Zoom buttons sometimes cause Java error and levels skip

Posted: Mon May 06, 2013 3:36 am
by tomp
here is a copy of my alpinequest.log:
# Current date is 2013-05-04
[16:53:25.767] <AlpineQuestActivity.onCreate()>
[16:53:25.828] <AlpineQuestActivity.onResume()>
[16:53:25.948] no: building application core...
[16:53:25.952] CoreBuilder: Android SDK 16 (4.1.1) with 64MB of max memory
[16:53:25.979] mo: AlpineQuest GPS Hiking 1.4.0
[16:53:25.982] mo: screen density is 2.0 (system: 2.0, metrics: 1.0), scaling high-res bitmap: true
[16:53:25.994] lu: detected external storage is '/mnt/extSdCard/'
[16:53:26.124] lu: application folder is '/mnt/extSdCard/alpinequest/'
[16:53:26.125] lu: detected internal storage is '/data/data/psyberia.alpinequest.full/files/'
[16:53:26.130] mg: shared preferences are not empty
[16:53:26.138] jc: 14 crs loaded in 3ms
[16:53:26.171] jc: projection 'EPSG:27700' successfully created
[16:53:26.176] jc: projection 'EPSG:29903' successfully created
[16:53:26.179] du: setting log file to '/mnt/extSdCard/alpinequest/logs/alpinequest.log' (13 logs in buffer)
[16:53:26.713] du: log file will stay opened
[16:53:26.737] agq: new main map is 'DefaultMap' (old was 'null')
[16:53:26.751] psyScaleDetectorFactory: SDK 16 detected, system multitouch activated
[16:53:26.757] no: loading modules...
[16:53:26.879] anh: orientation sensor is available
[16:53:26.885] no: initializing modules...
[16:53:26.886] [xc.initialize()]
[16:53:27.105] [aiw.initialize()]
[16:53:27.109] akz: loading maps from folder '/mnt/extSdCard/alpinequest/maps/' (recursive=false)
[16:53:28.226] akz: maps loading time: 1116ms
[16:53:28.237] [ann.initialize()]
[16:53:28.238] [amy.initialize()]
[16:53:28.238] [vx.initialize()]
[16:53:28.245] wm: 3 location source(s) available: gps, network, passive
[16:53:28.247] wq: pressure sensor is available
[16:53:28.248] [anb.initialize()]
[16:53:28.250] [anv.initialize()]
[16:53:28.250] no: modules loaded
[16:53:28.251] agq: restoring used map painters...
[16:53:28.254] akm: loading previously used AQM map '/mnt/extSdCard/alpinequest/maps/Google Maps_15_BK 15.AQM' (17,460.1 KB)...
[16:53:28.375] agw: previously used map 'BK 15 1:16 000' restored
[16:53:28.376] agq: new main map is 'BK 15 1:16 000' (old was 'DefaultMap')
[16:53:28.386] no: entering ui thread safe mode...
[16:53:28.390] wm: some location sources are enabled: gps, network, passive
[16:53:28.391] wg: starting listening to provider 'gps' (minTime: 2s, minDist: 1m, minAcc: 256m)
[16:53:28.405] anc: updating declinaison from screen center: [WGS84 13.6168928 N 100.6231155 E +0.0]
[16:53:28.435] aoc: tracker service is not started
[16:53:28.455] aoc: loading tracker data...
[16:53:28.465] aoh: tracker data loaded (19 locations in 4ms)
[16:53:28.474] <afz.onViewInitialized()>
[16:53:28.475] agq: initialize high-res canvas size to (6/6) (screen: 360x640, tiles: 256x256)
[16:53:28.480] agv: set maximum bitmap pool size to 8
[16:53:28.484] agv: changing allocation size to 256x256
[16:53:28.520] ajy: setting background default map
[16:53:40.043] aja: creating explorer...
[16:53:40.173] aja: browsed place 'Folder > /mnt/extSdCard/alpinequest/maps/'
[16:53:40.188] akz: loading maps from folder '/mnt/extSdCard/alpinequest/maps/' (recursive=false)
[16:53:40.768] akz: maps loading time: 580ms
[16:53:40.777] ajs: searching custom map files from folder '/mnt/extSdCard/alpinequest/maps/'
[16:53:48.195] aja: explorer destroyed
[16:53:48.317] agq: new main map is 'BK 9 10 1:512 000' (old was 'BK 15 1:16 000')
[16:53:48.318] agq: initialize high-res canvas size to (6/6) (screen: 360x640, tiles: 256x256)
[16:53:48.319] agv: set maximum bitmap pool size to 8
[16:55:51.018] *** EXCEPTION *** class 'afy', function 'aio.onAction(onViewReleased, [MotionEvent])', throws 'IllegalStateException' (The specified child already has a parent. You must call removeView() on the child's parent first.)
java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
at android.view.ViewGroup.addViewInner(ViewGroup.java:3387)
at android.view.ViewGroup.addView(ViewGroup.java:3258)
at android.view.ViewGroup.addView(ViewGroup.java:3234)
at aq.air.d(SourceFile:170)
at aq.air.b(SourceFile:145)
at aq.afx.b(SourceFile:141)
at aq.akb.c(SourceFile:263)
at aq.akb.a(SourceFile:287)
at aq.aio.b(SourceFile:171)
at aq.y.c(SourceFile:175)
at aq.y.c(SourceFile:164)
at aq.afz.b(SourceFile:733)
at aq.afz.a(SourceFile:539)
at aq.agb.onTouchEvent(SourceFile:153)
at android.view.View.dispatchTouchEvent(View.java:7241)
at android.view.ViewGroup.cancelTouchTarget(ViewGroup.java:2095)
at android.view.ViewGroup.removeAllViewsInLayout(ViewGroup.java:3821)
at android.view.ViewGroup.removeAllViews(ViewGroup.java:3774)
at aq.air.d(SourceFile:169)
at aq.air.b(SourceFile:145)
at aq.afx.b(SourceFile:141)
at aq.akb.c(SourceFile:263)
at aq.akb.a(SourceFile:287)
at aq.aio.b(SourceFile:171)
at aq.y.c(SourceFile:175)
at aq.y.c(SourceFile:164)
at aq.afz.b(SourceFile:733)
at aq.afz.a(SourceFile:530)
at aq.agb.onTouchEvent(SourceFile:153)
at android.view.View.dispatchTouchEvent(View.java:7241)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2185)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1928)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2185)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1928)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2185)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1928)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2185)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1928)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2185)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1928)
at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2113)
at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1466)
at android.app.Activity.dispatchTouchEvent(Activity.java:2436)
at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2061)
at android.view.View.dispatchPointerEvent(View.java:7425)
at android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:3376)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:3308)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:4402)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:4380)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:4484)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:171)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:125)
at android.os.Looper.loop(Looper.java:124)
at android.app.ActivityThread.main(ActivityThread.java:4918)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1004)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:771)
at dalvik.system.NativeStart.main(Native Method)

[16:55:51.220] agq: new main map is 'BK 13 1:64 000' (old was 'BK 9 10 1:512 000')
[16:55:51.222] agq: initialize high-res canvas size to (6/6) (screen: 360x640, tiles: 256x256)
[16:55:51.223] agv: set maximum bitmap pool size to 8
you can see the Java error in the above log

Re: Zoom buttons sometimes cause Java error and levels skip

Posted: Mon May 06, 2013 3:47 am
by tomp
1) I have downloaded and installed an older version (1.3.12) of Alpinequest.
It works and I now can correctly see all my levels.
HOWEVER, this is the FREE version and thus my landmarks do not work and some other features are not available in the FREE version.
How do I download the PAID version so I can have everything working ???

2) I started to make a new map with all the levels in one file so it will work with version 1.4.
But I discovered that this is not practical because (for example) I need a large area for lower levels for all of Hong Kong and surrounding local, but as I zoom in (all the way to level 18) I select smaller areas to keep the size reasonable. Thus only part of Hong Kong is level 18.
If you put all levels into one map then (I think) you must have only one selection for the covered area.

Re: Zoom buttons sometimes cause Java error and levels skip

Posted: Mon May 06, 2013 9:25 pm
by Psyberia-Support
Hi again,
I answered by email concerning the full version.

Using MOBAC, you can create different levels covering different areas, but I agree it's more tricky. You have to create an empty Atlas, then select the larger area (smaller zoom value), click on "Add selection", then zoom in and select the area for the next level, then click again on "Add selection", and finally drag and drop the second area (in the atlas tree) on the first one, to have both areas in the same file. You can do this how many times you want, you just has to be careful to have the zoom levels properly ordered from the smallest to the highest.

But the easiest way is to have a working application, so I'll take care of correcting this bug quickly.

Best regards

Re: Zoom buttons sometimes cause Java error and levels skip

Posted: Tue May 07, 2013 7:43 pm
by HoggetNZ
Hi, While we are waiting for a bug fix, please could you email instructions how to downgrade to 1.3.12. I have downloaded the apk. Many thanks for a great app, the only reason I have a smart phone!

Re: Zoom buttons sometimes cause Java error and levels skip

Posted: Tue May 07, 2013 10:22 pm
by Psyberia-Support
Hi,
As an update, this bug has been corrected (as is the level skip problem).
An new version will be available within few days to correct it.

Until then, if you find this issue blocking and want to switch back to the previous version right now, you can find the previous version APK using the link given above.
If you have the paid version, please email me your Google Play order ID so you can get your version activated.

However, I suggest you to wait for the update (the issue is only related to the zoom buttons while switching maps, moreover the + button can be simulated by a double-click on the map, and the minus button by manually selecting another map from the map explorer).

Sorry for all these disagreements.

Re: Zoom buttons sometimes cause Java error and levels skip

Posted: Sat May 11, 2013 2:32 pm
by tomp
I have installed the newest version 1.4.1. Everything works great again!
Thank you, thank you!!
I travel a lot and Alpine Quest has become VERY important to me.
Keep up the great work and fast response to correct problems.

Re: Zoom buttons sometimes cause Java error and levels skip

Posted: Sat May 18, 2013 10:44 am
by Psyberia-Support
Thanks for the feedback.