小编kur*_*arc的帖子

使用硬件加速绘制路径时的Android SIGSEGV

尝试使用硬件加速绘制路径时,我们遇到了SIGSEGV.它发生在我的draw()调用之后,所以我相信它会在OpenGL层尝试渲染显示列表时发生.路径没什么了不起的,它不会一直发生.设备是Nexus 4,Note 2或运行4.2.2的Nexus 10.

05-08 18:42:58.577: A/libc(2905): Fatal signal 11 (SIGSEGV) at 0x00000005 (code=1), thread 2905 (...)
05-08 18:42:58.682: I/DEBUG(118): Build fingerprint: 'google/mantaray/manta:4.4/KRT16O/907817:user/release-keys'
05-08 18:42:58.682: I/DEBUG(118): Revision: '8'
05-08 18:42:58.682: I/DEBUG(118): pid: 2905, tid: 2905, name: ...  >>> ... <<<
05-08 18:42:58.682: I/DEBUG(118): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000005
05-08 18:42:58.737: I/DEBUG(118):     r0 00000001  r1 bef854ac  r2 783fa714  r3 75d163e0
05-08 18:42:58.737: I/DEBUG(118):     r4 752ceac0  r5 bef854ac  r6 c8a804c0  r7 75e53128
05-08 18:42:58.737: I/DEBUG(118):     r8 bef85508  r9 …
Run Code Online (Sandbox Code Playgroud)

android opengl-es segmentation-fault

6
推荐指数
0
解决办法
436
查看次数

OSMdroid绑定标记

//// OSMdroid以标记为中心////

我添加标记,我需要以所有标记都可见的方式映射最大增加或减少

我的代码:

public class mapcode extends Activity {
    globalvar appState;
    int stats=0;
    private MapView mapView;
    private IMapController mapController;
    private SimpleLocationOverlay mMyLocationOverlay;
    private ScaleBarOverlay mScaleBarOverlay;  
    ItemizedIconOverlay<OverlayItem> currentLocationOverlay;
    DefaultResourceProxyImpl resourceProxy;

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
        setContentView(R.layout.map);

        appState = ((globalvar) getApplicationContext());





        mapView = (MapView) this.findViewById(R.id.mapview);  
        mapView.setTileSource(TileSourceFactory.MAPNIK);
      //  mapView.setBuiltInZoomControls(true); //?????? ZOOM +-
        mapView.setMultiTouchControls(true);

        mapController = this.mapView.getController();
        mapController.setZoom(2);

        this.mMyLocationOverlay = new SimpleLocationOverlay(this);                          
        this.mapView.getOverlays().add(mMyLocationOverlay);

        this.mScaleBarOverlay = new ScaleBarOverlay(this);                          
        this.mapView.getOverlays().add(mScaleBarOverlay);
//      this.mapView

        /////////////////
        resourceProxy = new DefaultResourceProxyImpl(getApplicationContext());
        GeoPoint  currentLocation = new GeoPoint(55.860863,37.115046); 
        GeoPoint …
Run Code Online (Sandbox Code Playgroud)

osmdroid

5
推荐指数
1
解决办法
3034
查看次数

标签 统计

android ×1

opengl-es ×1

osmdroid ×1

segmentation-fault ×1