收藏
回答

小程序访问闪退

问题模块 框架类型 问题类型 操作系统 操作系统版本 手机型号 微信版本
客户端 小程序 Bug Android 7.1.2 Redmi 4X 6.7.2

访问小程序加载图片就出现闪退

我在手机导出了微信奔溃日志文件

uin[1132621220] VERSION.RELEASE:[7.1.2] VERSION.CODENAME:[REL] VERSION.INCREMENTAL:[V9.6.1.0.NAMCNFD] BOARD:[QC_Reference_Phone] DEVICE:[santoni] DISPLAY:[N2G47H] FINGERPRINT:[Xiaomi/santoni/santoni:7.1.2/N2G47H/V9.6.1.0.NAMCNFD:user/release-keys] HOST:[c3-miui-ota-bd54.bj] MANUFACTURER:[Xiaomi] MODEL:[Redmi 4X] PRODUCT:[santoni] TAGS:[release-keys] TYPE:[user] USER:[builder] BRAND:[Xiaomi] c1[AArch64 Processor rev 4 (aarch64) ] c2[0] 

ai375612856,android-25_637993528_armeabi-v7a,exception,time_1535878842,error_I1tqaW5fY3Jhc2hdc2lnPS0xCiNjcmFzaC5wcmV2aW91cz10cnVlCiNjbGllbnQudmVyc2lvbj02Mzc5OTM1MjgKI2NsaWVudC52ZXJoaXN0b3J5PQojY2xpZW50LmltZWk9ODY1OTA0MDMzNzQ5Nzk0CiNhY2NpbmZvLnJldmlzaW9uPTEyMjhkYTJkNWVjNDhmNjgwNTA3OTQ0MWZhYzlhNTZlMzc5ZDRlODgKI2FjY2luZm8udWluPTExMzI2MjEyMjAKI2FjY2luZm8uZGV2PUFhNjhhZDc1OWYzMTZmYWYKI2FjY2luZm8ucnVudGltZT00OShjb20udGVuY2VudC5tbTpwdXNoKQojYWNjaW5mby5idWlsZD0yMDE4LTA4LTI3IDIxOjUzOjEyOjQ1ZWE4NzY1Y2YzMzowCiNxYnJ3b3Nlci5jb3JldmVyPTQ0MjA3CiNxYnJvd3Nlci52ZXI9NDM2MTMKI2FjY2luZm8uZW52PWI6bWFpbjp1bmtub3cKI2FjY2luZm8uZGF0YT0xOTJNQiAzODRNQiAvZGF0YTo0MDk2OjYzMTE3OTY6O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TQwY2EyZSAgL2RhdGEvZGF0YS9jb20udGVuY2VudC5tbS9hcHBfeHdhbGtfMTU1L2V4dHJhY3RlZF94d2Fsa2NvcmUvbGlieHdhbGtjb3JlLnNvICg/Pz8pCgo=


最后一次编辑于  2018-09-03  (未经腾讯允许,不得转载)
邀请回答
复制链接收藏关注问题回答

8 个回答

  • 是柿子啊
    是柿子啊
    2018-09-03

    你好,请问是什么操作导致的的闪退

    2018-09-03
    赞同
    回复 6
    • Sir   贺🤓
      Sir 贺🤓
      2018-09-05

      点击小程序页面注释掉图片加载就不会闪退


      2018-09-05
      赞同
      回复
    • Sir   贺🤓
      Sir 贺🤓
      2018-09-05

      主要是在华为P20手机出现的比较多

      2018-09-05
      赞同
      回复
    • 是柿子啊
      是柿子啊
      2018-09-05回复Sir 贺🤓

      麻烦提供一下可复现问题的代码片段

      2018-09-05
      赞同
      回复
    • Sir   贺🤓
      Sir 贺🤓
      2018-09-05回复是柿子啊

      'use strict';


      Object.defineProperty(exports, "__esModule", {

      value: true

      });



      var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();


      var _dec, _class;

      // 引入地址供图片使用


      // 引入组件

      //首页城市信息

      //首页菜单

      // 引入请求


      // 引入状态管理



      var _wepy = require('./../../npm/wepy/lib/wepy.js');


      var _wepy2 = _interopRequireDefault(_wepy);


      var _api = require('./../../API/api.js');


      var _login = require('./../../components/origin/login/login.js');


      var _login2 = _interopRequireDefault(_login);


      var _chengyintop = require('./../../components/homepage/cityMassage/chengyintop/chengyintop.js');


      var _chengyintop2 = _interopRequireDefault(_chengyintop);


      var _firestPageMenu = require('./../../components/origin/firstPageMenu/firestPageMenu.js');


      var _firestPageMenu2 = _interopRequireDefault(_firestPageMenu);


      var _request = require('./../../libs/request.js');


      var _wepyRedux = require('./../../npm/wepy-redux/lib/index.js');


      function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }


      function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }


      function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }


      function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }


      // 页面所需状态

      var origin = (_dec = (0, _wepyRedux.connect)({

      openid: function openid(state) {

      return state.counter.openId;

      },

      city: function city(state) {

      return state.counter.city;

      }

      }, {}), _dec(_class = function (_wepy$page) {

      _inherits(origin, _wepy$page);


      function origin() {

      var _ref;


      var _temp, _this, _ret;


      _classCallCheck(this, origin);


      for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {

      args[_key] = arguments[_key];

      }


      return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = origin.__proto__ || Object.getPrototypeOf(origin)).call.apply(_ref, [this].concat(args))), _this), _this.config = {

      backgroundTextStyle: 'light',

      backgroundColor: '#eeeeee',

      navigationBarBackgroundColor: '#5e76ff',

      navigationBarTitleText: '成因分析', //本页名称

      navigationBarTextStyle: 'white'

      //页面组件

      }, _this.$repeat = {}, _this.$props = { "cityMassage": { "xmlns:v-bind": "", "v-bind:result.sync": "result" } }, _this.$events = {}, _this.components = {

      loginView: _login2.default,

      cityMassage: _chengyintop2.default

      // 页面数据

      }, _this.data = {

      // 登陆状态

      loginType: false,

      // 城市信息

      result: new Object(),

      // 菜单结果

      menuResult: new Array(),

      // 用户登陆后的ID

      userId: null

      // 页面方法

      }, _this.methods = {

      // 获取菜单

      getAllMenu: function getAllMenu() {

      var header = { 'Cookie': wx.getStorageSync('cookieKey'), 'Content-Type': 'application/x-www-form-urlencoded' };


      wx.request({

      url: _api.SYSTEM_ORIGIN_MENU,

      data: {},

      method: 'GET',

      header: header,

      success: function (res) {

      // that.setData({ goodslist: res.data.data });

      for (var index in res.data.menu) {

      for (var item in res.data.menu[index].childMenu) {

      res.data.menu[index].childMenu[item].icon = _api.BASE_PATHS + '/' + res.data.menu[index].childMenu[item].icon;

      }

      }

      _this.menuResult = res.data.menu;

      _this.$apply();

      },

      });


      // (0, _request.requireOriginMenu)().then(function (res) {

      //   for (var index in res.menu) {

      //     for (var item in res.menu[index].childMenu) {

      //       res.menu[index].childMenu[item].icon = _api.BASE_PATHS + '/' + res.menu[index].childMenu[item].icon;

      //     }

      //   }

      //   _this.menuResult = res.menu;

      //   _this.$apply();

      // });

      },

      // 跳转到城市选择页面

      selectCity: function selectCity() {

      wx.navigateTo({

      url: '../selectCity/selectCity'

      });

      },

      // 获取城市信息

      getCityMs: function getCityMs(city) {

      (0, _request.requireCityMs)({ city: city }).then(function (res) {

      if (res.data.primary_pollutant == undefined) {

      res.data.primary_pollutant = "无";

      }

      _this.result = res;

      _this.$apply();

      });

      },

      // 自动登陆

      loginauto: function loginauto() {

      (0, _request.requireLoginAuto)({}).then(function (res) {

      if (res.result == 432) {

      wx.setStorage({

      key: "userId",

      data: res.user.userId

      });

      _this.userId = res.user.userId;

      _this.loginType = false;

      _this.methods.getAllMenu();

      _this.methods.getCityMs(_this.$data.city);

      } else {

      _this.loginType = true;

      }

      _this.$apply();

      });

      },

      check: function check(res) {

      res.userId = _this.userId;

      //如果有childMenu不为undefined,说明它下面还有菜单,跳转到子菜单页面

      if (res.childMenu != undefined) {

      wx.navigateTo({

      url: '../subMenu/subMenu?ms=' + JSON.stringify(res) + ''

      });

      } else {

      // 不为undefined跳转展示模块界面

      wx.navigateTo({

      url: '../imgShow/imgShow?ms=' + JSON.stringify(res) + ''

      });

      }

      },

      moreMenu: function moreMenu(res) {

      wx.navigateTo({

      url: '../moreMenu/moremenu?ms=' + JSON.stringify(res) + ''

      });

      }

      // 组件调用父级页面事件

      }, _this.events = {

      'loginSuccess': function loginSuccess() {

      _this.loginType = false;

      _this.methods.getAllMenu();

      _this.methods.getCityMs(_this.$data.city);

      }

      }, _temp), _possibleConstructorReturn(_this, _ret);

      }

      // 页面数据



      _createClass(origin, [{

      key: 'onShow',

      value: function onShow(e) {

      this.methods.loginauto();

      }

      }, {

      key: 'onLoad',

      value: function onLoad() {

      // this.methods.loginauto();

      }

      }]);


      return origin;

      }(_wepy2.default.page)) || _class);


      Page(require('./../../npm/wepy/lib/wepy.js').default.$createPage(origin, 'pages/origin/origin'));






      2018-09-05
      赞同
      回复
    • Sir   贺🤓
      Sir 贺🤓
      2018-09-05回复Sir 贺🤓

      <!-- 菜单 -->

      <view class="originView originMenu" hidden="{{loginType}}">

      <view class="firestPageMenu">

      <view class="menulist"  wx:for="{{menuResult}}" wx:for-index="idx" wx:for-item="itemName" wx:if="{{itemName.select}}" wx:key="idx">

      <view class="title">

      <view>

      {{itemName.name}}

      </view>

      <view bindtap="moreMenu" data-wpymoremenu-a="{{itemName}}">

      <image src="{{renderingImage[0]}}" class="imgright"/>

      </view>

      </view>

      <scroll-view scroll-x="true" class="menuScroll">

      <view class="clear" style="width:{{itemName.childMenu.length * 95*2}}rpx">

      <view class="menu" wx:for="{{itemName.childMenu}}" wx:for-index="itm" wx:for-item="idxName" wx:key="itm" wx:if="{{idxName.select}}" bindtap="check" data-wpycheck-a="{{idxName}}">

      <image src="{{idxName.icon}}"/>

      <view class="menuName">{{idxName.name}}</view>

      </view>

      </view>

      </scroll-view>

      </view>

      </view>

      </view>

      <!-- 菜单 -->


      2018-09-05
      赞同
      回复
    查看更多(1)
  • Sir   贺🤓
    Sir 贺🤓
    2018-09-05

    点击小程序里面的应用菜单出现的,少部分手机会出现这样的闪退情况

    2018-09-05
    赞同
    回复